Xcode 14.3 Archive 失败
2023-04-07 本文已影响0人
Mr_Zhou
今天打包项目时遇到个问题,如下 :
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
大概意思说你的sh文件执行过程中遇到错误,开始真是一脸茫然,之前一直好着,这次升级怎么就出错了呢,想了下估计是因为升级了14.3的xcode,没办法就去问度娘了,还好找到了答案,在此自己做一个记录。解决办法如下:
1.假如电脑上还有Xcode 14.2,则把 Command Line Tools中改为Xcode 14.2编译,点击右上角的Xcode-Settings-Locations,如下图:
修改Command Line Tools- 如果没有,那么你就按照我的方法,打开应用,右键Xcode,显示包内容,再点击右上角的搜索按钮,搜索 frameworks.sh
更改里面的内容
将
source="$(readlink "${source}")"
替换为
source="$(readlink -f "${source}")"
然后再重新Archive,打包成功!