0

我运行有问题

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

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

任何人都可以帮忙吗?

4

1 回答 1

0

您需要在调用 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

于 2017-08-07T13:10:21.107 回答