iOS File not found libarclite_ip
2023-07-31 本文已影响0人
Lee坚武
本人亲测有效!更多交流可以家魏鑫:lixiaowu1129,公重好:iOS过审汇总,一起探讨iOS技术!
Xcode 14.3 运行项目报错
File not found libarclite_iphonesimulator.a or libarclite_iphoneos.a
问题描述
升级到 Xcode14.3 后编译报错:
真机运行
ld: file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
模拟器运行:
ld: file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方案
下载arc文件夹 解压缩或者从旧版本 Xcode 复制并将 arc文件夹 拷贝到
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/