Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get Staging code push to work #976

Closed
adam-jr opened this issue Aug 24, 2017 · 8 comments
Closed

Unable to get Staging code push to work #976

adam-jr opened this issue Aug 24, 2017 · 8 comments

Comments

@adam-jr
Copy link

adam-jr commented Aug 24, 2017

RN v. 0.44
React Native Code Push v. 5.0.0-beta
iOS 10.3

When I initiate a code push, TestFlight builds with the corresponding version number (1.1.1) do not download the Staging update. They will, however, download an update after it has been promoted to Production. This is despite changing my configuration setting in XCode from Release to Staging.

This is after following the instructions for multiple configurations seen here:
https://github.com/Microsoft/react-native-code-push#multi-deployment-testing

I've double checked that I'm using the correct key for a build configured for Staging.

While debugging, I also set the Debug configuration to use the Staging key (running a react native app on the simulator uses the Debug configuration). I confirmed that the simulator was seeing Staging versions and downloaded them successfully.

It seems like when I create an archive in XCode, it thinks that it is building a Release configuration, no matter if I change the XCode setting from Release to Staging.

I'm considering trying a react native upgrade, as I'm wondering if it's related to 0.44. Hoping someone here might have some suggestions before I go down that path, though.

@RomanISWG
Copy link

Same or similar issues at my side with rn 0.47.2. I have followed multi-deployment-testing guide. However only Debug scheme (with Staging deployment key) does work. Release and Staging scheme do not download any updates. Any ideas to solve this?

@sergey-akhalkov
Copy link
Contributor

Hey guys, thanks for getting in touch!

Have you changed your Build Configuration to Staging here: Product -> Scheme -> Edit Scheme -> Archive -> Build Configuration

screenshot 2017-08-28_13-20-59

?

@RomanISWG
Copy link

RomanISWG commented Aug 28, 2017

I have changed this for Run as I'm not trying to get any ipa yet.

@sergey-akhalkov
Copy link
Contributor

sergey-akhalkov commented Aug 29, 2017

Hi @RomanISWG, please take a look at demo I've prepared - rncp976 copy.zip

And try to Run it with Release and Staging configurations and let me know if it works or if you see any issues.

@adam-jr
Copy link
Author

adam-jr commented Aug 29, 2017

@sergey-akhalkov That seems to have been my problem -- i.e., not setting the Archive scheme to 'Staging'.

I suspect it will work if I can get a build to succeed. Currently troubleshooting getting a custom configuration to build successfully for a Cocoapods React-Native project, which is outside the scope of this issue.

Thank you for your help.

@sergey-akhalkov
Copy link
Contributor

sergey-akhalkov commented Aug 29, 2017

@atom-r, take a look at #893 (comment) - there you can find CodePushified react-native app that uses cocoapods and multi-deployment testing feature.

I'm closing this issue, please feel free to ask questions or reopen if needed.

@sibelius
Copy link

@sergey-akhalkov tks for your help

I think it's better to have a different scheme/target on xcode to be easy to build for Staging

what do you think?

@sergey-akhalkov
Copy link
Contributor

Hi @sibelius, it's totally up to you, but I think that it would be more convenient to have different schemes for Staging and Release.

Please let me know if you have any other questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants