Fastlane,Pilot - 自动团队选择

Posted

技术标签:

【中文标题】Fastlane,Pilot - 自动团队选择【英文标题】:Fastlane, Pilot - Automatic Team Selection 【发布时间】:2016-03-17 08:28:11 【问题描述】:

我正在通过 fastfile 使用 Pilot:

  desc "Build and upload a new build to Apple TestFlight"
  lane :betaTest do
      testflight
  end

但每次都让我选队

Multiple teams found, please enter the number of the team you want to use: 
1) "Team 1" (000000) 
2) "Team 2" (111111)

我尝试像下面这样使用testfligh,但它给了我一个错误:

testflight(
          username: "raed@gmail.com",
          team_id: "XXXXXX"
      )

错误:

[20:16:59]: Variable Dump:
[20:16:59]: :DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios betaTest"
[20:16:59]: getaddrinfo: nodename nor servname provided, or not known

    +------+-------------------------------------+-------------+
    |                     fastlane summary                     |
    +------+-------------------------------------+-------------+
    | Step | Action                              | Time (in s) |
    +------+-------------------------------------+-------------+
    | 1    | Verifying required fastlane version | 0           |
    | 2    | default_platform                    | 0           |
    | 3    | testflight                          | 15          |
    +------+-------------------------------------+-------------+

    [20:16:59]: fastlane finished with errors
    Successfully submitted a crash report. If this is a problem with one of the tools specifically,
    please submit an issue on GitHub and attach the following number to it: '4431202597d937abb0026b96ff88698d'
    The crash report has been stored locally '/tmp/sentry_4431202597d937abb0026b96ff88698d.json'
    /Users/raed.rbenv/versions/2.2.3/lib/ruby/2.2.0/net/http.rb:879:in `initialize': [!] getaddrinfo: nodename nor servname provided, or not known (Faraday::ConnectionFailed)

有没有办法自动选择团队 ID?

提前致谢。

【问题讨论】:

【参考方案1】:

我相信您还应该在您的Appfile 中指定itc_team_id

# To select a team for iTunes Connect use
itc_team_name "YOUR TEAM NAME"
itc_team_id "iTunes Connect Team ID"

【讨论】:

如何找到 iTunes 连接团队 ID,因为我发现它与苹果开发者帐户中的团队 ID 不同?

以上是关于Fastlane,Pilot - 自动团队选择的主要内容,如果未能解决你的问题,请参考以下文章

有没有办法在车道上传递 Fastlane Pilot 的详细标志?

Fastlane:将工件发送到外部组

VSTS Task Apple App Store 要求提供 2FA 代码,但设置了 Fastlane Session 和 App-Specific

快车道证书错误

Fastlane 与多个团队的多个捆绑 ID 匹配

使用健身房创建 ipa 时,Fastlane 无法正常工作