VSTS Task Apple App Store asks for 2FA code, but Fastlane Session and App-Specific are set

437 Views Asked by At

I have created an Apple App Store task, and created an Endpoint with username/passowrd/App-Specific password and Fastlane Session. My username has 2FA enabled (requirement for fastlane to upload the ipa)

enter image description here

When running the task I get the following:

enter image description here

As you can see it still asks for a 2FA code. It seems that the Fastlane Session is not being read. If I enter an invalid token in the Fastlane Session, I get the same result.

Do you know what could this be?

1

There are 1 best solutions below

0
milch On

To me it looks like the CI system you are using might be escaping the \n in the fastlane session cookie incorrectly. Instead of using the environment variable, try copying over the ~/.fastlane/spaceship/[email]/cookie file from your main computer to your CI system