1. Missing file libarclite_iphoneos.a (Xcode 14.3) 解決方法 ?
Xcode升級到14.3后編譯失敗,完整錯誤日志:
File not found: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
原因:
xcode 14.3更新后arc路徑缺失導(dǎo)致pod的引用路徑全部無法正常找到。這里需要重新創(chuàng)建該路徑及文件即可。
解決方法:
添加缺失的文件即可,當然也有人取巧,限定導(dǎo)出歸檔的版本到iOS13規(guī)避這個問題。等待XCode14.3+的修復(fù)版本出來解決這個問題。
準備
- 安裝Git,用于下拉缺失的文件資源;
- 訪問GitHub內(nèi)的文件資源,確??梢栽L問(https://github.com/kamyarelyasi/Libarclite-Files)
具體步驟:
- 跳轉(zhuǎn)到存放文件的目錄
cd /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/
2.創(chuàng)建arc目錄
(可能會出現(xiàn)創(chuàng)建目錄失敗的情況:mkdir: arc: Operation not permitted,解決辦法參照:解決問題:Mac OS遇到 Operation not permitted 問題_123qwer456的博客-CSDN博客)
-
#執(zhí)行第一個命令后需要輸入Mac用戶的登錄密碼以獲取root權(quán)限
-
sudo mkdir arc
-
cd arc
3.下載資源文件
-
#命令的最后一個點不能遺漏,這是git clone后的解壓目錄(當前目錄),否則創(chuàng)建目錄/Libarclite-Files
-
sudo git clone https://github.com/kamyarelyasi/Libarclite-Files.git .
4.修改文件權(quán)限
sudo chmod +x *
5.修改編譯腳本文件(這一步我并沒有做)
-
文件目錄:
-
原生App:Pods\Target Support Files\Pods-App\Pods-App-frameworks.sh
-
Flutter App:Pods\Target Support Files\Pods-Runner\Pods-Runner-frameworks.sh
-
搜索(CMD+F):source="$(readlink "${source}")"
-
替換成:source="$(readlink -f "${source}")"
2. xcode 14?報錯 That command depends on command in Target 'xxx' (project 'xxx') ?
'/Users/xxx/Library/Developer/Xcode/DerivedData/xxx/Build/Products/Debug-iphoneos/xxx.app/Assets.car':
1) Target 'xxx' (project 'xxx') has compile command with input '/Users/xxx/Desktop/workSpace/xxx/Assets.xcassets'
2) That command depends on command in Target 'xxx' (project 'xxx'): script phase “[CP] Copy Pods Resources”
解決方法:
找見如下路徑刪除,報錯消除。
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Snip20211019_1.png
?文章來源地址http://www.zghlxwxcb.cn/news/detail-659196.html文章來源:http://www.zghlxwxcb.cn/news/detail-659196.html
?
到了這里,關(guān)于xcode14.3更新一系列問題 1. Missing file libarclite_iphoneos.a (Xcode 14.3) 解決方法 ?的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!