'Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one -22938

While I'm trying to send my application via Fastlane I face with this error:

Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com (-22938)

Transporter transfer failed.Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com (-22938)Your account has 2 step verification enabled. Please go to https://appleid.apple.com/account/manage and generate an application specific password for the iTunes Transporter, which is used to upload builds. To set the application specific password on a CI machine using an environment variable, you can set the FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD variable.

Please provide your Apple Developer Program account credentials The login information you enter will be stored in your macOS Keychain Password (application-specific for [email protected])



Solution 1:[1]

Here is a screnshot of the error enter image description here

and here is where to create the app-specific password enter image description here

Solution 2:[2]

I met the issue, but set the FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD environment variables at .zshrc (I'm using ZSH) didn't work.

Instead, I set that var in Fastfile:

before_all do
  ...
  ENV['FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD']= 'xxxx-xxxx-xxxx-xxxx'
  ...
end

Solution 3:[3]

I had issues trying to use pilot/upload_to_testflight along side FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD. It was always giving me error on the 2FA step. Turns out that in order for pilot to use that env variable 2 arguments must to be passed on, apple_id and skip_waiting_for_build_processing, otherwise normal username and password auth will be used.

pilot(apple_id: ENV["YOUR_ID"],
        skip_submission: true,
        skip_waiting_for_build_processing: true)

Note that this only works only for upload, for any other interactions the recommended approach is to use api_key.

Solution 4:[4]

Easy way to fix this issue
Question: enter image description here Answer:
step1
enter image description here step2
enter image description here step3
enter image description here
step4
enter image description here

  1. https://appleid.apple.com
  2. create App-Specific Password
  3. enter a string like an example
  4. got your App-Specific Password

Done:
enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jonathan Sanchez
Solution 2 Dharman
Solution 3 SergioM
Solution 4 Willie Cheng