title: Fastlane Testflight from CircleCI
body: <p>I'm trying to upload a Testflight build whenever tests pass on my develop branch using Fastlane and CircleCI.</p>
  
  <p>Everything goes smoothly until it gets here:</p>
  
  <pre><code>Login to App Store Connect (*******************)
  The login credentials for '*******************' seem to be wrong
  The password was taken from the environment variable
  Please make sure it is correct
  </code></pre>
  
  <p>The password I believe comes from the FASTLANE_PASSWORD environment variable that I've entered in Circle's project settings, and the password is an app specific password I created for this purpose. </p>
  
  <p>Running it locally with an app specific password stored in FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD works just fine. Setting that as an env var on Circle has no effect, only FASTLANE_PASSWORD seems to be used.</p>
  
  <p>I tried setting <code>upload_to_testflight(skip_waiting_for_build_processing: true)</code> but no change. Trying to set <code>apple_id</code> as well results in an error (apple id shouldn't be defined here).</p>
  
  <p>It reports prior to trying to login that it successfully builds and signs the IPA file. Here's the Fastfile lane:</p>
  
  <pre><code>desc "Push a new beta build to TestFlight"
  lane :beta do
    increment_build_number(xcodeproj: "[project].xcodeproj")
    match(type: "appstore")
    build_app(workspace: "[project].xcworkspace", scheme: "[scheme]")
    upload_to_testflight(skip_waiting_for_build_processing: true)
  end
  </code></pre>
  
  <p>Is there a step I'm missing? All the other questions about this seem to be outdated.</p>