Hello,
I have been facing Apple 2FA issue, I have generated login session token by spaceauth and used it with pipeline successfully, but the problem is that token is valid for only 30minutes while on documentation it is written that session lasts for 30 days.
I have gone through several GitHub issues(posted below) as well but found no help.
So every time I push the commit, it triggers the build and it is getting failed because login session token(generated by spaceauth) is not working anymore !
I have the same problem. It seems like any Apple ID created since sometime in late 2019 will have 2FA enabled and there’s no way to disable it.
Fastlane has some support for using an app specific password, but that’s not working for me - even when I add the FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD environment varaible, I still get prompted for 2FA mid-build.
Anyone using Fastlane successfully with an Apple ID that has 2FA enabled?
We do. At one point we accidently enabled 2FA on the account we use for builds and discovered that 'bundle exec fastlane spaceauth -u ‘ios-dev@…’ gives tokens that last for several hours max. We just created a new account and we were careful to not enable 2FA.
Some of the App Store Connect endpoints will work with an app-specific password, and some won’t. Specifying those options causes upload_to_testflight to only make calls that work with the app-specific password.
None of this is required if your Apple ID doesn’t have 2FA enabled, so when Apple prompts you to do that, look for a “No thanks” button. I wouldn’t be surprised if they made it mandatory at some point.