使用VSTS的Fastlane发布到TestFlight

时间:2018-05-01 07:23:49

标签: azure-devops testflight azure-pipelines-release-pipeline fastlane fastlane-pilot

我正在尝试使用App Store VSTS扩展程序将一个应用程序版本部署到TestFlight,但在身份验证阶段失败了。

这似乎与iTunes正在挑战帐户安全问题的答案有关:

我不确定如何解决这个问题:

  • 这是我正在尝试使用的帐户的问题吗?
  • 这是我如何配置服务端点的问题吗?

fastlane pilot upload -u ******** -i FrameworkDemoApp.Touch.ipa -q 466996 -r **** -a ***** --skip_submission true --skip_waiting_for_build_processing true

登录iTunes Connect(********)

服务密钥为空

/Users/vsts/.gem-cache/gems/fastlane-2.93.1/spaceship/lib/spaceship/two_step_client.rb:45:in handle_two_step:` [!]无效的2步响应{“securityQuestions”=> {“questions”=> [{“id”=> 134,“问题”=>“你第一次乘坐飞机去哪里了?“,”number“=> 1,”userDefined“=> false},{”id“=> 136,”question“=>”你的梦想工作是什么?“,”数字“=> 2,“userDefined”=> false}]},“crResetEnabled”=> false,“resetSecurityQuestionsSupportLink”=>“http://support.apple.com/kb/HT6170”}

2 个答案:

答案 0 :(得分:0)

这个问题似乎是因为我使用的Apple ID没有启用两步验证。

VSTS文档中未明确说明:https://docs.fastlane.tools/best-practices/continuous-integration/#use-of-application-specific-passwords-and-spaceauth

答案 1 :(得分:0)

如果您使用个人帐户进行此构建和发布过程并且启用了2FA,则可能会遇到问题。

Microsoft's documentation on the App Store VSTS extension的“官方”建议是不启用2FA,但是为了避免要求2FA,用于发布的Apple ID不能为“帐户持有人”类型。

请参见Fastlane文档上的https://docs.fastlane.tools/best-practices/continuous-integration/#separate-apple-id-for-ci,它不仅适用于VSTS,而且可能不仅仅适用于VSTS(这是为什么我很难找到它的原因)。