博览会上传:具有发布渠道的iOS

时间:2019-08-18 17:54:13

标签: javascript ios reactjs react-native expo

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

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

2 个答案:

答案 0 :(得分:0)

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

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

expo publish --release-channel prod-v1

答案 1 :(得分:0)

正如您在wxGTK帮助中所看到的,它默认为该应用程序/插件的最新/最新版本。因此,如果您仅使用expo upload:ios进行构建,那么您应该很好。但是,如果您最新的构建指向另一个发布渠道,则可以转到https://expo.io上的构建历史记录,并获取指向expo build:ios --release-channel prod-v1或您想要的任何发布渠道的构建ID ,并将其作为prod-v1命令的--id选项的参数传递。看起来像这样:

expo upload:ios

我希望这会有所帮助。