Xcode 14.3 新版问题总结

  1. "xxx/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/xxxx" failed: No such file or directory

解决:Pods/Targets Support Files/Pods-App-frameworks.sh中

复制代码
if [ -L "${source}" ]; then
    echo "Symlinked..."
    # source="$(readlink "${source}")"  修改为 source="$(readlink -f "${source}")" 
    source="$(readlink -f "${source}")" 
fi
  1. DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead.

解决:Podfile中添加如下处理:

ruby 复制代码
post_install do |installer|
  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
相关推荐
小桥流水人家丶2 小时前
vscode 格式Prettier配置
ide·vscode·编辑器
Zfox_4 小时前
无缝穿越系统边界:节点小宝4.0如何让我的Mac/iOS像访问本地盘一样操控Windows
windows·macos·ios·节点小宝
攻城狮之路人甲5 小时前
用pycharm写的程序,点击.py无法运行闪退
ide·python·pycharm
Aevget6 小时前
Python开发利器PyCharm v2025.3全新发布——支持主动数据探索
开发语言·ide·python·pycharm
MicJordan6 小时前
macos安装Claude提示command not found
macos
坠金7 小时前
mac电脑网络卡顿解决方法
macos
睡觉待开机7 小时前
vscode+gitee+picgo实现稳定图床教程
ide·vscode·gitee
啃火龙果的兔子7 小时前
vscode中的Gemini CLI Launcher插件作用
ide·vscode·编辑器
写点啥呢8 小时前
MacOS远程桌面报错0x207解决方法
macos
思成Codes8 小时前
Gin路由:构建高效RESTful API
golang·restful·xcode·gin