我可以为仅在构建机器中使用的帐户关闭双因素身份验证吗?

Can I turn off two-factor authentication for an account that is used only in build machine?

我们想为 iOS 帐户禁用双因素身份验证,该帐户仅由我们的构建机器用于编译、测试和上传构建到 Apple。

然后我们意识到根据文档不再可能了:

Can I turn off two-factor authentication after I’ve turned it on?

If you already use two-factor authentication, you can no longer turn it off. Certain features in the latest versions of iOS and macOS require this extra level of security, which is designed to protect your information. If you recently updated your account, however, you can unenroll for a period of two weeks. Just open your enrollment confirmation email and click the link to return to your previous security settings. Keep in mind, this makes your account less secure and means that you can't use features that require a higher level of security. ref

我们在 Fastlane 的文档中读到了这一点。看起来我们可以进行一个月的有效会话。但这也不理想,因为我们不想每个月手动进行 2 因素身份验证。

The session should be valid for about one month, however, there is no way to test this without actually waiting for over a month. ref

我想知道其他人是怎么做到的?是否有一种以某种方式禁用 2 因素身份验证的 hacky 方法?


2020 年 6 月 8 日更新:启用 2FA 后仍然无法禁用它。我们最终创建了一个新的 apple 帐户,但没有首先启用 2FA。

不幸的是,一旦打开它就无法更改它。我也很烦

您无法关闭双因素身份验证,但您应该可以使用应用专用密码。

  1. 转到 https://appleid.apple.com 并登录
  2. 在“安全”部分,单击 "Generate password..."
  3. 为您的密码命名
  4. 复制显示的密码;关闭对话框后,您将无法再看到它。
  5. 在您的构建机器上配置该密码。