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
相关推荐
FungLeo2 小时前
Swift macOS 游戏开发实战|空当接龙 19|Swift 应用如何打包为 macOS App、DMG 和 ZIP
macos·swift·软件发布·dmg·应用打包
Digitally2 小时前
Mac 电脑上能否使用三星 Smart Switch?
macos·电脑
Liekkas Kono3 小时前
VSCode 中如何使用 Astral 的 ty 类型检查器
ide·vscode·编辑器
2501_915918415 小时前
Windows 用 CocoaPods 开发 iOS,KXBuild 自带 Ruby,pod install 直接跑
windows·vscode·ios·个人开发·swift·敏捷流程·cocoapods
2501_9160074717 小时前
Windows 怎么开发 Swift iOS App?SwiftUI 编译与真机调试和打包 ipa
ide·windows·vscode·ios·个人开发·swift·敏捷流程
你疯了抱抱我1 天前
【自用】SKTOOL samkoon显控云组态软件在高分辨率屏幕下的字体、界面过小问题解决办法
macos·虚拟机·工控
threerocks1 天前
还要什么 UU 远程?Ghostty 作者新作 Rex 让手机丝滑控全套 AI Harness,旅游办公真落地了
macos
iOS_MingXing1 天前
iOS导航栏左上角显示一块白色圆角/圆形
macos·ios·cocoa
FungLeo1 天前
Swift macOS 游戏开发实战|空当接龙 20|Swift macOS 项目复盘,从规则实现到桌面产品
macos·软件工程·swift·游戏开发·项目复盘
MounRiver_Studio1 天前
MRS Agent 开发实战(一):CH32V307 USB转8路串口方案
ide·ai·agent·risc-v