Command PhaseScriptExecution failed with a nonzero exit code
xcode14.3とcocoapod1.12.0でビルドは通るがArchiveで、
"rsync error"、"Command PhaseScriptExecution failed with a nonzero exit code"というエラーが出て途方に暮れた。
どうも、xcode14.3からsymlinkで相対パスを使うことになったからとのこと。
以下で解決したのでメモ。
\アプリのフォルダ\Pods\Target Support Files\Pods-アプリ名\Pods-アプリ名-frameworks.shファイルの下記の箇所に-fを追加
if [ -L "${source}" ]; then
echo "Symlinked..."
source="$(readlink -f "${source}")"
cocoapodがアップデートされたら直ると思いますが・・・
ソースはこちらです。
https://stackoverflow.com/questions/75928909/command-phasescriptexecution-failed-with-a-nonzero-exit-code-when-archiving