SDK does not contain ‘libarclite‘ at the path ‘/Applications/Xcode.app/Contents/Developer/Toolchains

最近在 iOS 模拟器上运行一个 Flutter 项目报错:

clang: error: 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

意思很明显:那个路径下缺少 libarclite_iphonesimulator.a

解决方案就是把这个缺少的文件给它加进去。

先去 https://github.com/kamyarelyasi/Libarclite-Files
把需要的文件下载下来。

前往文件夹:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc

把下载的文件弄进去就可以了。

如果你发现你的电脑里没有/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc这个目录,那你要去它的上一级/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib自己建一个文件夹arc,然后把下载的文件弄进去。

猜你喜欢

转载自blog.csdn.net/m0_59449563/article/details/142883627