【问题标题】:Fabric Fastlane Pilot Upload iTMSTransporter failureFabric Fastlane Pilot 上传 iTMSTransporter 失败
【发布时间】:2017-12-24 15:58:18
【问题描述】:

我运行有问题

fastlane pilot upload

我得到这个错误:

对 iTMSTransporter 的调用以非零退出状态完成:1。这表示失败

我在网上查了一下,他们说要添加的地方

ENV['DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS'] = '-t DAV' FASTLANE_ITUNES_TRANSPORTER_USE_SHELL_SCRIPT=1

但我还是遇到了同样的错误。 这是我的 FastFile

# More documentation about how to customize your build
# can be found here:
# https://docs.fastlane.tools
fastlane_version "1.109.0"

# This value helps us track success metrics for Fastfiles
# we automatically generate. Feel free to remove this line
# once you get things running smoothly!
generated_fastfile_id "MyNumber"

default_platform :ios

# Fastfile actions accept additional configuration, but
# don't worry, fastlane will prompt you for required
# info which you can add here later
lane :beta do
  # build your iOS app
  gym(
    # scheme: "MyScheme",
    export_method: "app-store"
  )

pilot(
    app_identifier "myAppIdentifier"
    apple_id "MyAppleId"  # Your Apple email address
    team_id "MyTeamId"     #  Developer Portal Team ID
    groups ""
    ENV['DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS'] = '-t DAV'
  FASTLANE_ITUNES_TRANSPORTER_USE_SHELL_SCRIPT=1

)

  pilot(ipa: "./MyIpaFile.ipa")

  # upload to Testflight
  pilot(skip_waiting_for_build_processing: true)

  # slack(
  #   slack_url: "https://hooks.slack.com/services/IDS"
  # )
end

我试着把这两行

ENV['DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS'] = '-t DAV' FASTLANE_ITUNES_TRANSPORTER_USE_SHELL_SCRIPT=1

也位于文件的顶部,或者只是其中之一或没有。什么都没有。

有人可以帮忙吗?

【问题讨论】:

    标签: ios fastlane google-fabric fastlane-pilot


    【解决方案1】:

    您需要在调用 Pilot 的外部(之前)设置两个环境变量。例如,您可以在 beta 通道之前有一个 before_all。

    你似乎给飞行员打了 3 次电话。为什么?

    我会这样做:

    # More documentation about how to customize your build
    # can be found here:
    # https://docs.fastlane.tools
    fastlane_version "1.109.0"
    
    # This value helps us track success metrics for Fastfiles
    # we automatically generate. Feel free to remove this line
    # once you get things running smoothly!
    generated_fastfile_id "MyNumber"
    
    default_platform :ios
    
    # Fastfile actions accept additional configuration, but
    # don't worry, fastlane will prompt you for required
    # info which you can add here later
    
    before_all do
      ENV['DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS'] = '-t DAV'
      ENV['FASTLANE_ITUNES_TRANSPORTER_USE_SHELL_SCRIPT'] = '1'
    end
    
    lane :beta do
      # build your iOS app
      gym(
        # scheme: "MyScheme",
        export_method: "app-store"
      )
    
      # upload to Testflight
      pilot(
        app_identifier: "myAppIdentifier",
        apple_id: "MyAppleId",  # Your Apple email address
        team_id: "MyTeamId",     #  Developer Portal Team ID
        groups: "",
        ipa: "./MyIpaFile.ipa",
        skip_waiting_for_build_processing: true
      )
    end
    

    请注意,FASTLANE_ITUNES_TRANSPORTER_USE_SHELL_SCRIPT 设置为环境变量而不是 Ruby 变量,并注意在调用 Pilot() 之前设置了该变量和 DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS

    【讨论】:

      猜你喜欢
      • 2021-05-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多