我跑步有问题
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
也可以放在文件的顶部,或者只是其中的一个,或者没有。没什么。
有人能帮忙吗?
发布于 2017-08-07 13:10:21
在调用pilot之前,您需要在外部设置两个环境变量。例如,你可以在你的贝塔车道之前拥有一个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请注意,将DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS设置为环境变量而不是FASTLANE_ITUNES_TRANSPORTER_USE_SHELL_SCRIPT变量,并注意在调用pilot()之前设置了该变量和。
https://stackoverflow.com/questions/45189547
复制相似问题