最近升級Xcode 14.3之后,執(zhí)行repo push 命令的時候,遇到了下main的錯誤
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)
如圖
但是網上翻了好久,發(fā)現(xiàn)下面這句話才是關鍵
解決方法,
進入該路徑下
/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/
沒有acr文件的話,自己創(chuàng)建一個,并下載下面這些.a文件,放到arc文件夾中
下載鏈接 link
還有注意的一點,這次報錯也報了下面的錯誤
xcodebuild: Returned an unsuccessful exit code.文章來源:http://www.zghlxwxcb.cn/news/detail-520180.html
但是這句話是一句很籠統(tǒng)的報錯,我們一定要耐心的往上面翻log ,有時候要翻很多才能找到,一定要往上翻, 一定要往上翻,一定要往上翻文章來源地址http://www.zghlxwxcb.cn/news/detail-520180.html
到了這里,關于ld: file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!