The apk build by do "Build => Generate signed apk => Choose releaseStaging" in Android Studio can not run in device. And I don't know how to build releaseStaging apk in command line, the release apk can be build using command "./gradlew assembleRelease".
By the way, code push already worked for our release apk.
Run app ok.
App crash.

And build iOS staging package also failed. I'm using pods, it's ok to build with release config.



Hi @jaggerwang, thanks for reaching us.
To build your app in releaseStaging build type do the following:
android folder ./gradlew assembleReleaseStaging command. It will produce /android/app/build/outputs/apk/app-releaseStaging-unsigned.apk file./android/app/app-releaseStaging.apk fileHere is Android sample app I've configured: rncp991.zip
For iOS please take a loot at this https://github.com/Microsoft/react-native-code-push/issues/893#issuecomment-317648454
@sergey-akhalkov For android, your solution is not working for me. And I found another solution, set releaseStaging config to the same with release, except the code-push key.

For iOS, I'm already did as your screenshot, and it not work for me. The staging config is copy from release, and config exactly as the "Multi-Deployment Testing" in README doc.
Hi @jaggerwang,
@sergey-akhalkov For iOS, it is still not working.
The "Build Locations" config.


And there is no staging config in the sample app.

@jaggerwang, I've not changed Per-configuration Intermediate Build Files Path option, but Per-configuration Build Products Path, the same I've done for Pods project, please pay attention to the second screenshot from my comment. You could also try to download the sample app I've provided in the comment or share with me minimum version of your app so I could try to spend some time on it and probably fix the issue you have.
@sergey-akhalkov Sorry, I'm not noticed than the config is against Pods project. I modified the config as follow, but still got error.




@jaggerwang, it's really hard to say what goes wrong here with the charts.framework you are using in your project without the real app. If you could share it with me - I could spend some time on it and try to fix the issue.
Closing this, please feel free to reopen if you have source code or exact repro steps that could help me to reproduce the issue.
Most helpful comment
@sergey-akhalkov For android, your solution is not working for me. And I found another solution, set releaseStaging config to the same with release, except the code-push key.

For iOS, I'm already did as your screenshot, and it not work for me. The staging config is copy from release, and config exactly as the "Multi-Deployment Testing" in README doc.