AppStoreへファイルをアップロードさせてくれない?
2023/5/15 MON突然事件は起きた!
いつものように、AppStoreへFlutter iOSアプリをアップロードしようとしたら、意味不明のエラーが出てきた!
すいませんスクリーンショット撮り忘れてしまいました🙇♂️
でも同じエラーで困ってる人を見つけました!
エラーログは残ってたので、貼っておきます。
showing recent messages phasescriptexecution [cp]\ embed\ pods\ frameworks /users/hashimoto junichi/library/developer/xcode/deriveddata/runner-cqfohiqyzeeufygxktqpnvwuyvsc/build/intermediates.noindex/archiveintermediates/runner/intermediatebuildfilespath/runner.build/release-iphoneos/runner.build/script-46920f5cb0d0d28d723733ca.sh (in target 'runner' from project 'runner') cd /users/jj_app/flutter-university/20230515-bpm-prod/music_memory/ios /bin/sh -c /users/hashimotojunichi/library/developer/xcode/deriveddata/runner-cqfohiqyzeeufygxktqpnvwuyvsc/build/intermediates.noindex/archiveintermediates/runner/intermediatebuildfilespath/runner.build/release-iphoneos/runner.build/script-46920f5cb0d0d28d723733ca.sh mkdir -p /users/hashimotojunichi/library/developer/xcode/deriveddata/runner-cqfohiqyzeeufygxktqpnvwuyvsc/build/intermediates.noindex/archiveintermediates/runner/buildproductspath/release-iphoneos/runner.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/openssl_grpc.framework" "/users/hashimotojunichi/library/developer/xcode/deriveddata/runner-cqfohiqyzeeufygxktqpnvwuyvsc/build/intermediates.noindex/archiveintermediates/runner/installationbuildproductslocation/applications/runner.app/frameworks" building file list ... rsync: link_stat "/users/jj_app/flutter-university/20230515-bpm-prod/music_memory/ios/../../../intermediatebuildfilespath/uninstalledproducts/iphoneos/openssl_grpc.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/97f6331a-ba75-11ed-a4bc-863efbbaf80d/library/caches/com.apple.xbs/sources/rsync/rsync/main.c(996) [sender=2.6.9] command phasescriptexecution failed with a nonzero exit code mkdir -p /users/hashimotojunichi/library/developer/xcode/deriveddata/runner-cqfohiqyzeeufygxktqpnvwuyvsc/build/intermediates.noindex/archiveintermediates/runner/buildproductspath/release-iphoneos/runner.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/openssl_grpc.framework" "/users/hashimotojunichi/library/developer/xcode/deriveddata/runner-cqfohiqyzeeufygxktqpnvwuyvsc/build/intermediates.noindex/archiveintermediates/runner/installationbuildproductslocation/applications/runner.app/frameworks" building file list ... rsync: link_stat "/users/jj_app/flutter-university/20230515-bpm-prod/music_memory/ios/../../../intermediatebuildfilespath/uninstalledproducts/iphoneos/openssl_grpc.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/97f6331a-ba75-11ed-a4bc-863efbbaf80d/library/caches/com.apple.xbs/sources/rsync/rsync/main.c(996) [sender=2.6.9] command phasescriptexecution failed with a nonzero exit code
試したこと
この方法が影響しているかわかりませんが、やってみました。
arm64を追加
Podfileを修正
flutter_ios_podfile_setup
target 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
end
ChtaGPTの回答
以下の手順で問題を解決できるか試してみてください。
Flutterプロジェクトのルートディレクトリに移動します。
flutter clean コマンドを実行します。
flutter pub get コマンドを実行します。
iOSディレクトリ (cd ios) に移動します。
pod deintegrate コマンドを実行します。これによりCocoaPodsのインテグレーションが削除されます。
pod install コマンドを実行します。これによりCocoaPodsが再度インストールされます。
cd .. コマンドを実行して、プロジェクトのルートディレクトリに戻ります。
flutter build ios コマンドを実行します。
上記の手順で問題が解決しない場合は、以下の手順も試してみてください。
ios/Pods ディレクトリを手動で削除します。
Podfile.lock ファイルを手動で削除します。
ios/.symlinks ディレクトリを手動で削除します。
ios/Flutter/Flutter.framework ディレクトリを手動で削除します。
ios/Flutter/App.framework ディレクトリを手動で削除します。
flutter clean コマンドを実行します。
flutter run コマンドを実行します。
これらの手順が問題を解決しない場合は、Flutter SDKのバージョンを最新に更新するか、またはFlutter SDKを再インストールすることを検討してみてください。
解決方法はおそらくQiitaと同じはず?
x-codeを開いて、左のメニューから、 source="
こちらで検索
source="$(readlink "${source}")"
こちらのコードに修正する
source="$(readlink "${source}")" // before
source="$(readlink -f "${source}")" // after
まとめ
なんとファイルのアップロードができたのですが、解決するまで2時間ぐらい使いました。まさか以前からやっているエラー文の検索で救われるとは思っていませんでした。

Flutter大学はFlutterエンジニアに特化した学習コミュニティです! 初心者から中上級者まで幅広く在籍し、切磋琢磨しています! 入会をご希望の方はこちらから→ flutteruniv.com
Discussion