前言
Xcode14.3升級后,運行以前舊項目出現如下報錯:
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)
從錯誤日志來看是缺少libarclite_iphonesimulator.a
文件片排。
問題解決
在【訪達-應用程序-Xcode】點擊右鍵,顯示包內容硝枉,根據一下路徑一直到最后目錄导盅。
Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/
沒有arc
文件的話,自己創(chuàng)建一個净响,并下載下面這些.a
文件少欺,放到arc
文件夾中。
文件下載地址:https://github.com/wnkpzzz/CZLibarclite-Files/tree/main