fastlaneでAppStore Connectへアップロードする方法を検索すると、AppStore Connect APIを使う方法ばかり出てきますが、Apple IDのアプリ用パスワード(Application Specific Password)のみを使ってアップロードする方法があります。
まあドキュメントに書いてあるんですが…。
Use an Application Specific Password to upload
pilot/upload_to_testflight can use an Application Specific Password via the FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD environment variable to upload a binary if both the skip_waiting_for_build_processing and apple_id options are set. (If any of those are not set, it will use the normal Apple login process that might require 2FA authentication.)
- 環境変数
FASTLANE_USER
とFASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD
を設定 apple_id
を設定skip_waiting_for_build_processing
を true にする
で、AppStore Connect APIを使わずにアップロードできます。