【发布时间】:2019-04-05 14:44:33
【问题描述】:
设置 2FA 以将测试版上传到 iTunesConnect/TestFlight 的正确方法是什么?
有很多链接和论坛答案,但没有一个能解决问题。
目前我已将环境变量添加到 CircleCI 中,包括在 AppleID 上生成的应用程序特定密码。
我在 Fastlane 中有一条看起来像这样的车道
desc "Alpha build"
lane :alpha do
match(type: "adhoc")
gym(export_method: "ad-hoc")
upload_to_testflight(skip_submission: true)
end
我在 alpha 通道之前运行下面的 preauth 命令
- run:
name: Spaceship pre-auth for 2FA
command: bundle exec fastlane spaceauth -u [redacted].com
即使密码正确,Fastlane 似乎也无法通过身份验证
Please check your credentials and try again.
This could be an issue with App Store Connect,
Please try unsetting the FASTLANE_SESSION environment variable
如果我删除 spaceauth 命令 circleci 因等待 2FA 超时而失败。
Fastlane 网站说没有必要使用 spaceauth,除非正在使用额外的应用商店连接 API,例如上传元数据等。它指出,对于上传到 testflight,只有应用程序特定密码就足够了,尽管这不起作用要么。
有没有人解决过这个问题,可以指教一下吗?
【问题讨论】:
-
使用 Fastlane 对 App Store Connect API 的新支持在大多数情况下不再需要 2FA 箍;见stackoverflow.com/a/65416345/1836776