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
相关推荐
天庭鸡腿哥7 小时前
IOS上收费的软件,Android上免费!
macos·visual studio·everything
天庭鸡腿哥8 小时前
大小不足1M,干翻Windows!
microsoft·macos·visual studio·everything
怎么没有名字注册了啊17 小时前
(Mac)Visual Studio Code 配置 C/C++运行环境
c++·vscode·macos
耘田17 小时前
一块移动硬盘支持Mac备份和通用文件存储
macos
怪力左手1 天前
vscode扩展离线下载
ide·vscode·编辑器
quanyechacsdn1 天前
Android Studio创建库文件用jitpack构建后使用implementation方式引用
android·ide·kotlin·android studio·implementation·android 库文件·使用jitpack
larance1 天前
jupyter 服务端扩展开发
ide·python·jupyter
Juskey iii1 天前
Android Studio Electric Eel | 2022.1.1 Patch 2 版本下载
android·ide·android studio
我要用代码向我喜欢的女孩表白2 天前
对象存储路径文件1TB以上文件比对,go语言
ios·golang·xcode
杂货铺的小掌柜2 天前
MAC版IDEA常用快捷键
java·macos·intellij-idea