報錯內(nèi)容:
File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
閑話不表拴事,直接出解決方案
步驟一
cd /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/
步驟二
sudo mkdir arc
cd arc
sudo git clone https://github.com/kamyarelyasi/Libarclite-Files.git .
步驟三 開放執(zhí)行權(quán)限
sudo chmod +x *
注意募逞,git clone 后要把 與libarclite_iphoneos.a 同級的文件放在src目錄下
至此越败,項目可以正常運行拆祈,不過如果打包,還是會有問題放坏,繼續(xù)
步驟四
找到Pods-Runner-frameworks.sh 或者Pods-App-frameworks.sh 文件
它們的路徑在 /Pods/Target Support Files/Pods-Runner下
步驟5
找到這一行: source="$(readlink "${source}")"
替換為: source="$(readlink -f "${source}")"
參考博文 stactoverflow
Missing file libarclite_iphoneos.a (Xcode 14.3)
2023年04月26日13:54:19 更新
最近開發(fā)插件項目,遇到如下報錯
rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/97f6331a-ba75-11ed-a4bc-863efbbaf80d/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]
解決方案與上面類似
找到宿主項目的pods/Targets Support Files/Pods-YourProject/Pods-YourPoroject-frameworks.sh 其中 YourProject 為你自己的項目名稱
找到這一行: source="$(readlink "${source}")"
替換為: source="$(readlink -f "${source}")"
再次打包钧敞,就正常了
參考博文 掘金
rsync error: some files could not be transferred (code 23) Command PhaseScriptEx