升级到Xcode 15,直接模拟器编译,发现报错如下
SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a'; try increasing the minimum deployment target
如果你和我一样只需要支持iOS 13以上可以直接在pod里面加如下代码试试,我的使用解决了
post_install do |installer|
# 解决xcode 15 报错 xcode SDK does not contain ‘libarclite‘
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
end
end
注意:如果是M1,应该需要工程先支持模拟器排除arm64
如果还需要支持低版本请看连接
Xcode 模擬器打不開 SDK does not contain ‘libarclite’ at the path
引用:
如果都不想试,估计用Xcode Rosetta是最快的0.0