首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >织物快车道引导上传iTMSTransporter失败

织物快车道引导上传iTMSTransporter失败
EN

Stack Overflow用户
提问于 2017-07-19 11:44:09
回答 1查看 2K关注 0票数 0

我跑步有问题

代码语言:javascript
复制
fastlane pilot upload

我知道这个错误:

以非零退出状态完成对iTMSTransporter的调用: 1.这表示失败。

我在网上查过了他们说的每一个地方

ENV'DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS‘= '-t DAV’FASTLANE_ITUNES_TRANSPORTER_USE_SHELL_SCRIPT=1

但我还是会犯同样的错误。这是我的FastFile

代码语言:javascript
复制
# 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

)

代码语言:javascript
复制
  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

也可以放在文件的顶部,或者只是其中的一个,或者没有。没什么。

有人能帮忙吗?

EN

回答 1

Stack Overflow用户

发布于 2017-08-07 13:10:21

在调用pilot之前,您需要在外部设置两个环境变量。例如,你可以在你的贝塔车道之前拥有一个before_all。

你好像给飞行员打了三次电话。为什么?

我会这样做的:

代码语言:javascript
复制
# 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()之前设置了该变量和。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45189547

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档