最近升級Xcode惩琉,打包出錯腹泌,在網(wǎng)上找資料解決了膜眠,于是記錄一下,參考地址https://blog.csdn.net/hengsf123456/article/details/129936483
building file list ... rsync: link_stat "/Users/xxx/.../AFNetworking.framework" failed: No such file or directory (2)
done
sent 29 bytes received 20 bytes 98.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]
Command PhaseScriptExecution failed with a nonzero exit code
解決方案一
1.假如電腦上還有Xcode 14.2烈评,則把 Command Line Tools中改為Xcode 14.2編譯,點擊右上角的Xcode-Settings-Locations犯建,如下圖:
解決方案二
將
source="$(readlink "${source}")"
替換為
source="$(readlink -f "${source}")"