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