iOS 编译、运行正常,打包(Archive)出错的解决
报错:
Showing Recent Messages
PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/ky/Library/Developer/Xcode/DerivedData/xxx-bjmyixsbdlauhmfnjmpgupwbdaeg/Build/Intermediates.noindex/ArchiveIntermediates/xxx/IntermediateBuildFilesPath/xxx.build/Release-iphoneos/xxx.build/Script-F34F8DB54FE4BD2140C3208D.sh (in target 'xxx' from project 'xxx')
rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/c2cb9645-dafc-11ed-aa26-6ec1e3b3f7b3/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]
Command PhaseScriptExecution failed with a nonzero exit code
解决:
找到Pod文件下面的Pods-xxx-frameworks.sh 下面的 source="$(readlink "${source}")"
改成 source="$(readlink -f "${source}")"
保存修改,clean一下,重新编译打包