【问题标题】:Expo upload:ios with Release Channels世博会上传:带有发布渠道的 ios
【发布时间】:2019-12-24 02:24:41
【问题描述】:

如果一个 Expo iOS 应用程序是使用 Expo 构建的,带有指定的发布渠道prod-v1

expo build:ios --release-channel prod-v1

我们如何告诉expo upload:ios 上传这个配置为从发布频道prod-v1 拉取更新的版本?

使用 Expo SDK 34、expo-cli@3.0.9、节点 v12.6.0、Mac OS X Mojave 10.14.5


expo upload:ios似乎没有任何指定发布通道的参数

expo upload:ios --help的输出:

$ expo upload:ios --help

  Usage: upload:ios|ui [options] [projectDir]

  Uploads a standalone app to Apple TestFlight (works on macOS only). Uploads the latest build by default.

  Options:

    --latest                                 uploads the latest build (default)
    --id <id>                                id of the build to upload
    --path <path>                            path to the .ipa file
    --apple-id <apple-id>                    your Apple ID username (you can also set EXPO_APPLE_ID env variable)
    --itc-team-id <itc-team-id>              App Store Connect Team ID (optional if there is only one team available)
    --apple-id-password <apple-id-password>  your Apple ID password (you can also set EXPO_APPLE_ID_PASSWORD env variable)
    --app-name <app-name>                    the name of your app as it will appear on the App Store, this can't be longer than 30 characters (default: expo.name from app.json)
    --sku <sku>                              a unique ID for your app that is not visible on the App Store, will be generated unless provided
    --language <language>                    primary language (e.g. English, German; run `expo upload:ios --help` to see the list of available languages) (default: English)
    --public-url <url>                       The URL of an externally hosted manifest (for self-hosted apps)
    --config [file]                          Specify a path to app.json
    -h, --help                               output usage information

【问题讨论】:

    标签: javascript ios reactjs react-native expo


    【解决方案1】:

    正如您在expo upload:ios 帮助中所见,它默认为该应用程序/slug 的最后/最新构建。因此,如果您只是使用 expo build:ios --release-channel prod-v1 构建的,那么您应该很高兴。但是,如果您的最新构建指向不同的发布渠道,那么您可以转到 https://expo.io 上的构建历史记录并获取指向 prod-v1 或您可能想要的任何发布渠道的构建 ID,然后传递它作为expo upload:ios 命令的--id 选项的参数。它看起来像这样:

    expo upload:ios --id {id-of-target-build-here}
    

    我希望这会有所帮助。

    【讨论】:

      【解决方案2】:

      如果您在“prod-v1”频道上构建iOS,它将在该频道上使用最新版本的iOS 构建。

      如果您想更新您的 iOS 应用,可以将其发布到频道。

      expo publish --release-channel prod-v1
      

      【讨论】:

      • @Nyxynyx 如果我的回答有帮助,你会选择我的回答吗?
      猜你喜欢
      • 1970-01-01
      • 2023-03-14
      • 1970-01-01
      • 2023-04-09
      • 1970-01-01
      • 1970-01-01
      • 2018-09-14
      • 2022-11-02
      • 2020-03-17
      相关资源
      最近更新 更多