2017-07-19 141 views
0

我有運行面料FASTLANE試點上傳iTMSTransporter失敗

fastlane pilot upload 

我得到這個錯誤的一個問題:

The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure

我在網上查了,到處他們說加

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

也在文件的頂部,或者只是其中一個或沒有。沒有。

任何人都可以幫忙嗎?

回答

0

您需要在調用試點之外設置兩個環境變量(之前)。例如,你可以在你的貝塔車道之前有一個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的試點()

任何調用之前設置