最近升级Xcode,打包出错,在网上找资料解决了,于是记录一下,参考地址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,如下图:
image.png
解决方案二
image.png将
source="$(readlink "${source}")"
替换为
source="$(readlink -f "${source}")"
网友评论