When uploading your builds to iTunes Connect using your CI platform (Jenkins CI or Bamboo, for instance), you will need to generate an application-specific password from Apple, as you won't be able to handle prompts to enter a dynamic code each time.
To generate an application-specific password, do the following:
- Go to appleid.apple.com/account/manage.
- Select the
Generate Password
link in theSecurity
section. - Enter a name for the new application-specific password and note down the password. Refer to the following screenshot:
- Set the application-specific password using the
FASTLANE_PASSWORD
environment variable. - Generate a login session for your CI machine by running the following:
fastlane spaceauth -u user@;email.com
- Set the generated token from the previous step to the
FASTLANE_SESSION
environment variable.