Im releasing my app to firebase distribution throw Fastlane while using CI machine. Im facing an issue with the 2FA.
Im using Match to retrieve my certificates. This is what I have under "Appfile"
app_identifier "com.example.example" # the bundle
apple_id "appleAcount@gmail.com" # Your Apple
team_id "abcd..." # Developer Portal Team ID
ENV["FASTLANE_USER"] = "appleAcount@gmail.com"
ENV["MATCH_PASSWORD"] = ""
ENV["FASTLANE_PASSWORD"] = ""
ENV["FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD"] = ""
This is the error I'm receiving:
Two-factor Authentication (6 digits code) is enabled for account 'appleAcount@gmail.com' More information about Two-factor Authentication: https://support.apple.com/en-us/HT204915
If you're running this in a non-interactive session (e.g. server or CI) check out https://github.com/fastlane/fastlane/tree/master/spaceship#2-step-verification
(Input
sms
to escape this prompt and select a trusted phone number to send the code as a text message)(You can also set the environment variable
SPACESHIP_2FA_SMS_DEFAULT_PHONE_NUMBER
to automate this) (Read more at: https://github.com/fastlane/fastlane/blob/master/spaceship/docs/Authentication.md#auto-select-sms-via-spaceship_2fa_sms_default_phone_number)Please enter the 6 digit code:
I have read this "https://docs.fastlane.tools/best-practices/continuous-integration/" but with no luck. can anyone help me solve this issue?