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
相关推荐
AA陈超3 小时前
JetBrains Rider ‘IntelliJ‘ 快捷键映射表
ide·intellij-idea·idea·intellij idea
天勤量化大唯粉4 小时前
枢轴点反转策略在铜期货中的量化应用指南(附天勤量化代码)
ide·python·算法·机器学习·github·开源软件·程序员创富
charlie1145141915 小时前
深入解构:MSVC 调试机制与 Visual Studio 调试器原理
c++·ide·windows·学习·visual studio·调试·现代c++
Lv11770085 小时前
Visual Studio 中的密封类和静态类
ide·笔记·c#·visual studio
JobDocLS5 小时前
VScode使用方法
ide·vscode·编辑器
转战英雄枫8 小时前
Mac上打开安卓虚拟机BlueStacks Air闪退问题解决
macos·bluestacks
阿华田5128 小时前
如何基于Jupyter内核自研NoteBook
ide·python·jupyter·自研notebook
Huanzhi_Lin10 小时前
常用IDE快捷键备忘
ide·快捷键
lingzhilab10 小时前
零知IDE——基于零知ESP32S3部署AI 小智,轻量化智能交互终端
ide·人工智能
lpfasd12311 小时前
一次 IDE Agent 死循环问题的架构复盘
ide·架构