-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Not working with staging environment #893
Comments
Hi @jinxac, thanks for reaching us. Could you please take a look at #840 and verify if you have the same issue and if #840 (comment) resolves it? |
@sergey-akhalkov doesnt look the like the same issue but my |
@jinxac, got it, please let me know if any updates. |
Hey @sergey-akhalkov i tried changing that |
@sergey-akhalkov Can you please me tell me what do you need from my end? Logs/More Info would love to share the necessary info |
@sergey-akhalkov looks like there is something wrong with the staging environment itself. So here is what I tried doing:-
In this case I was able to see the changes. Can you please let me know if I am missing something |
Hi @jinxac, could you please share with me the minimal version of the app where the issue is reproduces? |
@sergey-akhalkov I have shared some piece of code above. Can you please tell me once what other information is required? I will share accordingly :) |
@jinxac, do I get it right if your app does not receiving any updates in case it has been archived/build with Staging scheme or you are experiencing some compile issues while trying to follow this steps? |
@sergey-akhalkov setup works fine the steps linked you shared above. Yes you are right that it is not receiving updates when built with staging schemes with Pods. When I change Now, When I change |
Hi @jinxac, sorry for the delayed response, do you still experiencing the issue? |
@sergey-akhalkov thanks for the reply.. yeah still experiencing the same issue |
@sergey-akhalkov any updates? |
Hi @jinxac, sorry for the delayed reply. I've investigated the problem you have and faced with linking issue while archiving. But I've successfully configured my project with Production and Staging schemes - CodePush updates work as expected. Also, I'm using the latest version of react-native and react-native-code-push, so the issue with linking could probably be here. Please also take a look at my project here: rncp893 copy.zip Thanks for the patience. |
@jinxac, I've found out the root cause of linker issue - we need to change
Please let me know if it helps. |
Hi @jinxac, please take a look at rncp893 copy.zip Please let me know if it helps or if you have any questions or see any issues. |
@sergey-akhalkov Thanks a lot for your response. Let me try this out once. |
Hi @jinxac, do you have any updates on this? I'm closing this for now, please feel free to reopen if needed. |
Thanks @sergey-akhalkov your solution of editing build locations for project and pods worked for me. Now I wonder how to make those changes in ci 😢 |
Hi @brookemitchell, thanks for the feedback. By CI do you mean appcenter.ms? |
Yeah no luck changing the project settings on appcenter.ms if I setup a staging scheme. Not really your problem though, thanks for your help. |
@sergey-akhalkov thanks a ton for sharing.. i am finally back to integrating this to my project again :D .. I tried the exact configuration you mentioned but when i upload the binary to itunes after building with staging scheme it throws error on itunes saying that the build is invalid (Invalid Bundle - One or more dynamic libraries that are referenced by your app are not present in the dylib search path.) . It works fine release scheme though. Have u faced this issue? |
Hi @jinxac, thanks for reaching us again!
I believe not, so I don't sure how exactly I can help you here, did you tried the working sample above? Does it work for you? |
@sergey-akhalkov looks like the pod libraries are getting copied into Staging folder instead of release which leads to facebook/react-native#11813 (comment)
I am pretty aware that this is not code push issue but any help would really be appreciated :) . Thanks in advance |
@jinxac, we are very "backlogged" and have no ability and time to manage such kind of issues, but please feel free to create a CodePush related issue - we'll take a look at it in order of priority. |
@sergey-akhalkov i tried using https://github.com/blargity/react-native-schemes-manager for first creating a staging environment and then a taking a beta build with staging configuration. Looks like its working fine now :). Let me give a try now by changing code push keys |
@sergey-akhalkov with |
Hi @jinxac, I'm trying to fix this bug on my app and can't seem to make it work. I'm using CocoaPods and my XCode workspace looks exactly like the demo, but whenever I build my project my files end up scattered across both Staging/Production build folders. I'm now trying to use the schemes-manager module like you said but still am having the same issues. Keen to hear how you got this to work with CocoaPods. |
@rodperottoni i too have cocoapods in my project, but it is working fine. What error are using exactly? |
If anybody is still struggling with this issue - there is a simple way to differentiate between Codepush staging and release keys using the same "Release" configuration if you already do your builds with Fastlane. You basically need to have these lines in your Info.plist:
and then, assuming you already have different Fastlane lanes for staging and release, add appropriate Codepush key for each lane in form of a gym param:
The key will be inserted during build process and that's about it! |
Description
Hi, we have a react native application and we recently planned to add codepush to our application.
I went through the documentation and followed the exact steps mentioned there. I create a staging profile and added staging key there but I am witnessing something strange here. Its working fine on my local device with Debug as well as Release build(staging profile).
I can see following in my xcode logs when I try to run it locally with release option:-
Now when i create a beta build using archive and export to app store(using same staging profile), the codepush part does not work at all. In firebase I can see that an
app_update
event is getting fired but I am not really sure whats going on there because I cannot see result of API call anywhere. I am pretty sure mystaging
key is correct because same is working on device locally.Reproduction
Following is my JS code:-
Following is my code present in
AppDelegate.m
:-Can someone please help me?
Additional Information
The text was updated successfully, but these errors were encountered: