XCode14.3にアップデートしてからArchive時、このようなエラーが出るようになったので、解決方法をメモ。
Showing Recent Issues mkdir -p /Users/[path]/Library/Developer/Xcode/DerivedData/Unity-iPhone-hjtgjfxpmcdhyscvufdbvbzumwsi/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/N3Rally.app/Frameworks Symlinked... rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework" "/Users/k3jp/Library/Developer/Xcode/DerivedData/Unity-iPhone-hjtgjfxpmcdhyscvufdbvbzumwsi/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/N3Rally.app/Frameworks" building file list ... rsync: link_stat "/Users/[path]/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.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/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
ちなみに確認した環境は以下。14.3.1でも発生する。
解決方法
まずProject navigatorを開いたらPodsを選択し、
右クリックしてFind in Selected Groups...を選択。
検索バーが出てくるので、source="$(readlink "${source}")"
と記入して検索。
検索すると一つだけ引っかかるはずなので、その箇所の
source="$(readlink "${source}")"
を
source="$(readlink -f "${source}")"
に変更して再度Archive。
Unityで作ったゲームならPods-Unity-iPhone-frameworks
って所が引っ掛かっているはず。
これでArchiveすると、無事にアーカイブが通るようになる。
参考リンク
追記
Unity2021.3.32 がリリースされましたが、こちらにアップデートすると修正された?のか、
podsの検索がかからず、Archiveも特に問題なく通るようになりました。