ios - FaSTLane,Pilot - 自动团队选择

标签 ios app-store-connect testflight fastlane

我正在通过 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?

提前致谢。

最佳答案

我认为您还应该在 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"

关于ios - FaSTLane,Pilot - 自动团队选择,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36055120/

相关文章:

ios - "Fixed leading and trailing constraints may cause clipping"错误?

iOS 版本未显示用于 testflight beta 测试

app-store-connect - 在顶级应用程序包装器下找不到 info.plist 中指定的图标

iOS 应用名称已被占用

ios - 为什么我的应用在 Testflight 中没有下载 dSYM 按钮?

ios - TestFlight Beta 测试 iOS 应用程序

ios - 我可以在 iTunes Connect 中使用应用程序的变体来进行 TestFlight 测试吗

ios - iOS 中使用 parse.com 的帖子评分系统 - 赞成/反对

iOS触摸事件由其他 View 的移动触发

ios - 在 Parse 中使用 "or"进行全文查询