2017-07-19 139 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的试点()

任何调用之前设置