我遇到问题
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
也位于文件的顶部,或者只是其中一个或没有。什么都没有。
任何人都可以提供帮助吗?
答案 0 :(得分:0)
您需要在调用pilot之前(之前)设置两个环境变量。例如,你可以在你的beta版之前有一个before_all。
你似乎正在给飞行员打三次电话。为什么呢?
我会这样做:
# 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