cocos编译clang: error: SDK does not contain ‘libarclite‘ at the path ‘/Applications/Xcode.app/Contents/Develo

出现编译错误原因:缺少arc下的库,需要下载放到xcode指定目录下解决办法:1.https://github.com/strengthen/DeviceSupport/tree/main/Libar

by
江江
on
2026/05/29

出现编译错误

原因:

缺少arc 下的库,需要下载放到xcode指定目录下

解决办法:

1.https://github.com/strengthen/DeviceSupport/tree/main/Libarclite_Files

根据需要下载 相应版本,比如ios只需要下载,libarclite_iphoneos.a和libarclite_iphonesimulator.a。

2.finder跳转到xcode目录/Applications/Xcode.app /Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/

创建arc目录,把下载的库放进去。

3.重新编译程序

 

江江江江于 2026-10-14 22:30:22 修改阅读 122评论 0点赞 0