从2021年2月开始,所有用户登录到App (https://developer.apple.com/support/authentication/)时都需要双因素认证或两步验证。
目前,我们按照 install4j 文档的描述进行公证,其中install4j被配置为为我们完成整个公证过程:在配置中启用公证,在配置中提供codeSigning证书和apple id,在CI环境中由-apple-id- password命令行参数提供用于身份验证的密码。
为我们的帐户启用两个因素现在会导致问题,当我们的CI构建试图通过身份验证上传本机dmg进行公证,因为一个验证代码SMS现在被传送到我们的手机。
我们如何配置install4j做公证使用一个2因素的苹果Id帐户?
生成输出:
[INFO] install4j: compilation failed. Reason: We are unable to create an authentication session. (code -22016)
[INFO] Uploading my-app.dmg for notarization
Failed to execute goal org.sonatype.install4j:install4j-maven-plugin:1.1.2:compile (compile-installers) on project native-installer: null returned: 1发布于 2021-02-09 07:51:25
当您使用双因素身份验证时,您必须使用特定于应用程序的密码,如https://support.apple.com/en-us/HT204397中所解释的。
https://stackoverflow.com/questions/66104950
复制相似问题