My appleid has two factor authentication turned on. For continuous integration we use Fastlane tool.
Available session is not valid any more. Continuing with normal login.
Two-factor Authentication (6 digits code) is enabled for account '[email protected]'
What can I do to fix that?
On yout machine when CI is running, go to the terminal and type the following command:
fastlane spaceauth -u [email protected]
Then fastlane will ask you about the code: Please enter 6 digits code:
. Get it from another trusted device and type it here.
Settings > CI/CD > Variables
. Then define FASTLANE_SESSION
variable, type the value and save.