【Xcode】アーカイブ時にエラー(some files could not be transferred (code 23))

環境

Xcode 14.3.1

現象

ビルドは成功するが、Archive時に以下のエラーでアーカイブできない

Command PhaseScriptExecution failed with a nonzero exit code
Showing All Messages rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]

対策

Pods-[プロジェクト名]-frameworks.sh というファイルの一部を改変すればよい

「echo “Symlinked…”」で検索して

  if [ -L "${source}" ]; then
    echo "Symlinked..."
    source="$(readlink "${source}")"
  fi

 if [ -L "${source}" ]; then
    echo "Symlinked..."
    source="$(readlink -f "${source}")"
  fi

にする

(“-f”を追加)

そして再度アーカイブすればOKだった

 

コメント

タイトルとURLをコピーしました