Ткань Fastlane Pilot Upload Сбой iTMSTransporter

У меня проблема с бегом

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

Я пытался поставить эти 2 строки

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

также в верхней части файла, или только один из тех или ни одного. Ничего такого.

Кто-нибудь может помочь?

1 ответ

Вам нужно установить две переменные окружения вне (перед) вызова пилота. Вы можете, например, иметь 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, и обратите внимание, что оба параметра, и DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS, установлены перед любым вызовом pilot()

Другие вопросы по тегам