Xcode 14.3 崩溃 File not found: libarclite_iphonesimulator.a

~ pod install

之后运行项目提示,

File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a

访达 -> 前往 -> 前往文件夹 -> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib

在lib 之后的arc 文件夹以及下面的文件已经不存在.

没有亲测, 从网上找了下资料 arc 应该是在14.2 还存在的,14.3 被移除了.

另外我去查看了一下有关 Arc文件的信息,论坛上有一个靠谱的解释, 因为ARC已经被内置所以,额外的链接是没有必要的,因此删除.

如何解决,

项目中 Podfile 文件增加语句,

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|            
	    config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
        end
    end
end

我的项目目标是14.0, 你可以根据你的来设置比如 11.0.

记得更改后从新执行

~ pod install

-----------

当然你还有其他办法可以解决,找到旧的Xcode 版本复制一份arc文件以及里面的内容, 或者下载更低的Xcode版本.

不过, 我建议使用新版本并在 Podfile 文件中增加部署. 

感谢阅读,

学以致用更感谢.

猜你喜欢

转载自blog.csdn.net/siwen1990/article/details/130344409