更新Xcode版本到14.3后所有項目編譯Archive打包報錯Command PhaseScriptExecution failed with a nonzero exit code
error below:
Xcode Version 14.3 ?(14E5207e)
PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users//Library/Developer/Xcode/DerivedData//Build/Intermediates.noindex/ArchiveIntermediates/Staging/IntermediateBuildFilesPath/.build/Release-iphoneos/*.build/Script-887C37B6C54D972D35131B16.sh (in target '' from project '**')
/bin/sh -c /Users/***/Library/Developer/Xcode/DerivedData/......./Script-887C37B6C54D972D35131B16.sh
Symlinked...
rsync --delete -av --filter P ..?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Alamofire.framework" "/Users//Library/Developer/Xcode/DerivedData/-fhmnysqlfziamdezcdnckgrfgtgn/Build/Intermediates.noindex/ArchiveIntermediates/Staging/InstallationBuildProductsLocation/Applications/**.app/Frameworks"
building file list ... rsync: link_stat "/Users/***/***App/iOSRelease/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Alamofire.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
在網(wǎng)上查了很多資料各種解決辦法都有安接,比如:
1惩阶、將?~/Library/Developer/Xcode/DerivedData/?目錄下的工程緩存刪除掉即可樟蠕,然后重啟工程編譯厘擂。
2、服務(wù)器端日志將出現(xiàn)錯誤提示:
2005/08/23 06:32:01 [8388] secrets file must not be other-accessible (see strict modes option)
2005/08/23 06:32:01 [8388] continuing without secrets file
2005/08/23 06:32:01 [8388] auth failed on module from documentserver
服務(wù)器端rsyncd.secrets (用戶:密碼)<用戶必須是系統(tǒng)用戶,密碼盡量不要為系統(tǒng)用戶密碼>
客戶端rsyncd.secrets (密碼)<服務(wù)器端密碼>
服務(wù)器和客戶端的帳戶密碼都不可以有空格,否則會出現(xiàn)
@ERROR: auth failed on module
注意:
如果改變了端口號,一定要在/etc/services中把對應(yīng)的端口改變才能正常運行
如rsync 873/tcp改成
rsync 3334/tcp即可
我全部都試了一遍济锄,都沒有解決問題绒净,最后查閱國外網(wǎng)站發(fā)現(xiàn)有我遇到的類似的問題并提供了相應(yīng)的解決辦法
解決方法:
Workaround is to update all the generated?...-frameworks.sh?files to add the?-f?flag to the call to?readlink. In other words, replace
source="$(readlink "${source}")"
with
source="$(readlink -f "${source}")"
我嘗試了一下,哎洽议!果然有效宗收,只是沒有說清楚是什么原因?qū)е碌模也麓蟾攀?4.3版本Xcode和cocoapods出現(xiàn)了兼容性問題