最近把Xcode 升級到14.3 發(fā)現(xiàn)pod 不是很適配,出現(xiàn)報錯
File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
此處提供兩種解決方案:
1、同樣的代碼在Xcode 14.2 中就沒有問題,通過去查找,發(fā)現(xiàn)barclite_iphoneos.a 在xcode 14.3中并沒有,在Xcode 14.2中是有的;“然后把14.2的目錄文件arc/整個拷貝到14.3的Xcode應(yīng)用目錄里?!蹦軐㈨椖颗芷饋?,有未知風險(不推薦)文章來源:http://www.zghlxwxcb.cn/news/detail-507306.html
2、在pod 文件里添加下面代碼,放在pod 最后一個end前面 ,然后pod install 一下,問題解決(原理:感覺就是Xode版本和pod版本不一致導致,改成一致就可以了)(推薦)文章來源地址http://www.zghlxwxcb.cn/news/detail-507306.html
Showing Recent Errors Only
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
end
end
end
end
到了這里,關(guān)于Xcode 14.3 報錯 ..../XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!