SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolcha...

电脑版本
image.png
Xcode 版本
image.png

新配的MacBook Pro 下载Xcode,打开以前项目报错,对应错误信息如下

模拟器错误日志
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

真机错误日志
SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a'; try increasing the minimum deployment target

原因是因为 对应的SDK 没有包含 libarclite ,该文件的具体路径为
'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc

有的时候可能没有arc这个文件夹,我这边是新电脑就没有,如下图所示(前面路径部分没有截图,lib之后的截图)


image.png

如果没有arc文件夹,需要手动在上面目录下创建arc文件夹,将下面对应库下载 放入arc 文件夹下

上面的日志可以看出,libarclite 有模拟器版,真机版,这个libarclite 早一些的Xcode应该是有的,这个简单查了下,用的其他小伙伴提供的 libarclite,自己留了一个备份,如下图:

image.png

链接: https://pan.baidu.com/s/19P3detK_8rBK7KT1XUmZlg 提取码: s9x3

最终对应目录截图如下


image.png

Xcode 重新编译,运行 模拟器,真机都正常了 。。。


image.png

相应参考链接 (内容都差不多)
https://blog.csdn.net/lyh1083908486/article/details/135339068
https://blog.csdn.net/wumu_love/article/details/136729326

以上内容均来自亲身经历,简单做此记录。。。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容