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
相关推荐
秋雨梧桐叶落莳1 小时前
【iOS】Block底层详解
macos·ios·cocoa
2601_967980113 小时前
世界上最好的Python编辑器是什么?我投PyCharm一票
ide·python·pycharm·数据科学·jupyter notebook
高调的涵涵2 天前
café 和 café 不是一个文件名
macos
拼图2092 天前
VSCode 正则表达式使用指南
ide·vscode·正则表达式
#六脉神剑3 天前
myBuilder 11 月新版本:AI辅助设计
ide·人工智能·低代码·ai·mybuilder
小李不困还能学3 天前
VSCode_RemoteSSH_一直卡在下载服务器_解决教程
服务器·ide·vscode
独隅4 天前
WebStorm macOS 安装部署与高效调优完全指南
ide·macos·webstorm
独隅5 天前
WebStorm macOS 安装调优与实战效能全景
ide·macos·webstorm
2601_967987375 天前
安装 Redis 或 Redis Stack
linux·windows·redis·macos·安装
高调的涵涵5 天前
1GB 文件,df 说没占地方
macos