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
相关推荐
潜龙95271 小时前
第4.3节 iOS App生成追溯关系
macos·ios·cocoa
qiqiqi(^_×)8 小时前
卡在“pycharm正在创建帮助程序目录”
ide·python·pycharm
小妖6668 小时前
vscode 源码编译
ide·vscode·编辑器
张人玉9 小时前
Visual Studio 的常用快捷键
ide·visual studio
玄辰星君10 小时前
【MAC】nacos 2.5.1容器docker安装
macos·docker·nacos
focksorCr11 小时前
在VsCode上使用开发容器devcontainer
ide·vscode·编辑器
Lum110411 小时前
PyCharm高效入门指南大纲
ide·python·pycharm
atwdy15 小时前
MacOS安装linux虚拟机
linux·运维·ubuntu·macos·utm
郭尘帅66615 小时前
IDEA中删除多余的jdk选项 【IDEA2024版】
java·ide·intellij-idea
慌糖15 小时前
IDEA报错“资源找不到”?重启就好了!!?
java·ide·intellij-idea