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
相关推荐
hero_heart6 小时前
vscode中c_cpp_properities.cpp文件生成和作用
ide·vscode·编辑器
Naiva6 小时前
【小技巧】Python+PyCharm IDE 配置解释器出错,环境配置不完整或不兼容。(小智AI、MCP、聚合数据、实时新闻查询、NBA赛事查询)
ide·python·pycharm
花王江不语9 小时前
android studio 配置硬件加速 haxm
android·ide·android studio
喝可乐的布偶猫10 小时前
韩顺平之第九章综合练习-----------房屋出租管理系统
java·开发语言·ide·eclipse
DO ITNOW12 小时前
Cursor/VScode ,点击运行按钮,就打开新的终端,如何设置为在当前终端运行文件而不是重新打开终端----一招搞定篇
ide·vscode·编辑器
小妖66612 小时前
若 VSCode 添加到文件夹内右键菜单中显示
ide·vscode·编辑器
freshman_y12 小时前
VSCode遇到的一些小毛病(自动保存、运行后光标不再处于编辑区)
ide·vscode·编辑器
小溪彼岸15 小时前
【XCode】Copilot for XCode AI编程助手
xcode
youngqqcn15 小时前
VSCode-Copilot的系统提示词
ide·vscode·copilot
木头没有瓜16 小时前
idea离线安装插件
java·ide·intellij-idea