mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-11 08:04:23 +08:00
readme: improved “Multi-Deployment Testing” chapter for iOS (#690)
After RN 0.40 it is not possible to use other configurations than Debug and Release (https://github.com/facebook/react-native/issues/11813) As workaround we could make Staging’s Build Products Path value the same as for Release configuration. Fix https://github.com/Microsoft/react-native-code-push/issues/688
This commit is contained in:
12
README.md
12
README.md
@@ -721,17 +721,23 @@ To set this up, perform the following steps:
|
||||
|
||||
6. Select the `Build Settings` tab
|
||||
|
||||
7. Click the `+` button on the toolbar and select `Add User-Defined Setting`
|
||||
7. Go to `Build Location -> Per-configuration Build Products Path -> Staging` and change `Staging` value from `$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)` to `$(BUILD_DIR)/Release$(EFFECTIVE_PLATFORM_NAME)`
|
||||
|
||||

|
||||
|
||||
*NOTE: Due to https://github.com/facebook/react-native/issues/11813, we have to do this step to make it possible to use other configurations than Debug or Release on RN 0.40.0 or higher.*
|
||||
|
||||
8. Click the `+` button on the toolbar and select `Add User-Defined Setting`
|
||||
|
||||

|
||||
|
||||
8. Name this new setting something like `CODEPUSH_KEY`, expand it, and specify your `Staging` deployment key for the `Staging` config and your `Production` deployment key for the `Release` config.
|
||||
9. Name this new setting something like `CODEPUSH_KEY`, expand it, and specify your `Staging` deployment key for the `Staging` config and your `Production` deployment key for the `Release` config.
|
||||
|
||||

|
||||
|
||||
*NOTE: As a reminder, you can retrieve these keys by running `code-push deployment ls <APP_NAME> -k` from your terminal.*
|
||||
|
||||
9. Open your project's `Info.plist` file and change the value of your `CodePushDeploymentKey` entry to `$(CODEPUSH_KEY)`
|
||||
10. Open your project's `Info.plist` file and change the value of your `CodePushDeploymentKey` entry to `$(CODEPUSH_KEY)`
|
||||
|
||||

|
||||
|
||||
|
||||
Reference in New Issue
Block a user