我的appleid开启了双因素认证。对于持续集成,我们使用 Fastlane 工具。
Available session is not valid any more. Continuing with normal login.
Two-factor Authentication (6 digits code) is enabled for account '[email protected]'
我能做些什么来解决这个问题?
在 CI 运行时在你的机器上,转到终端并键入以下命令:
fastlane spaceauth -u [email protected]
然后fastlane会问你密码:
Please enter 6 digits code:
。从另一个受信任的设备获取它并在此处输入它。Settings > CI/CD > Variables
。然后定义FASTLANE_SESSION
变量,输入值并保存。来自 fastlane 2.173.0 - 只需使用 SPACESHIP_SKIP_2FA_UPGRADE=1 https://github.com/fastlane/fastlane/releases/tag/2.173.0