fastlane/fastlane#13833
This script may be useful to you if you use fastlane
for iOS CI builds and your Apple developer portal account uses 2-factor authentication. There is reason to suppose that Apple may not be persisting these sessions for as long as they used to, and hence you might find yourself needing to update FASTLANE_SESSION
for your CI projects more often than usual.
This script is a way to mostly automate the process of updating FASTLANE_SESSION
if you use CircleCI as your CI provider. It expects to find your Apple username in env as FASTLANE_USER
, your Apple password as FASTLANE_PASSWORD
, and your CircleCI API token as CIRCLE_API_TOKEN
. It then executes fastlane spaceauth
and waits for you to put in your 2FA code. From there, it parses out the session data and then uses the CircleCI API to populate the specified projects with the newly updated FASTLANE_SESSION
. You'll