,敢教日月换新天。为有牺牲多壮志

Xcode 15 and iOS 17 - Error: DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead

热烈欢迎,请直接点击!!!

进入博主App Store主页,下载使用各个作品!!!

注:博主将坚持每月上线一个新app!!

Podfile文件添加如下内容后,重新pod install:

复制代码
post_install do |installer|
  # fix xcode 15 DT_TOOLCHAIN_DIR - remove after fix oficially - https://github.com/CocoaPods/CocoaPods/issues/12065
  installer.aggregate_targets.each do |target|
      target.xcconfigs.each do |variant, xcconfig|
      xcconfig_path = target.client_root + target.xcconfig_relative_path(variant)
      IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
      end
  end

  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      if config.base_configuration_reference.is_a? Xcodeproj::Project::Object::PBXFileReference
          xcconfig_path = config.base_configuration_reference.real_path
          IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
      end
    end
  end
end
复制代码

 

posted @   为敢技术  阅读(510)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
历史上的今天:
2018-11-26 [Xcode 实际操作]五、使用表格-(6)UITableView滑动到指定单元格
2018-11-26 [Xcode 实际操作]五、使用表格-(5)设置UITableView的单元格背景颜色
2018-11-26 [Xcode 实际操作]五、使用表格-(4)设置UITableView单元格数据库源
2018-11-26 [Xcode 实际操作]五、使用表格-(3)设置UITableView单元格图标
2018-11-26 [Xcode 实际操作]五、使用表格-(2)设置UITableView单元格高度
2018-11-26 [Xcode 实际操作]五、使用表格-(1)使用UITableView制作简单表格
点击右上角即可分享
微信分享提示
哥伦布
10:09发布
哥伦布
10:09发布
2°
西南风
2级
空气质量
相对湿度
68%
今天
2°/16°
周二
7°/19°
周三
多云
7°/19°