see more here https://github.com/facebook/react-native/issues/6125

@eugenehp Thanks for the heads up! Do you know if the recommended solution for 3rd party modules is to update their pod spec to reference React via a ":path" dependency similar to how a podfile is expected to reference it?
@lostintangent I'm not sure why you had React dependency in the first place. The RN migrated to different Xcode project template several versions ago.
If you still need it, maybe you can go with this idea – https://github.com/facebook/react-native/issues/6125#issuecomment-188246761
Are you running into an issue using CodePush with CocoaPods or where you just filing this issue as an FYI?
Hey Jonathan,
Just a heads up.
It doesn't break anything big. But I used a manual integration instead of
cocoa pod based one.
So maybe it makes sense to put this migration in your roadmap?
Thanks.
On Sunday, April 10, 2016, Jonathan Carter [email protected] wrote:
Are you running into an issue using CodePush with CocoaPods or where you
just filing this issue as an FYI?—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/Microsoft/react-native-code-push/issues/284#issuecomment-208077470
OK cool. Since the CocoaPods-hosted version of RN is being deprecated, but yet they will still be shipping their pod spec with the NPM package, it seems like we could just simply update the CodePush pod spec to refer to the RN pod within the node_modules folder since it would always be at a fixed location. That way, anyone that wants to use CocoaPods to link their projects can continue to do so, and it will work with their local RN version.
We're working with the RNPM team to simplify our installation with it, but I want to make sure our CocoaPods experience works for the folks being native iOS apps with embedded RN views.
@eugenehp I confirmed this morning that CodePush will use whatever version of React that the host app is configured with, so as long as folks use the recommended solution of pointing the React dependency at the folder in node_modules, then we should be resilient to the deprecation of the React package in the CocoaPods registry.
We definitely want to leave our CocoaPods installation instructions for users building native iOS apps with embedded RN views, so I'm going to close this since I believe there aren't any pending issues with our Podspec or docs.
Please re-open this if I missed something or you had another thought in mind. I wasn't sure if you were thinking we should remove our CocoaPods docs entirely, which I don't think we should do for the aforementioned reason.
Moving forward, we'll be promoting the use of RNPM as the primary installation method for React Native developers, but we want to also maintain interop with native devs using React Native.
Thanks!
Thanks @lostintangent this totally makes sense. Good job!
_Just a note to myself:_
ios/Podfile must contain pod 'React', :path => '../node_modules/react-native'
to avoid
React has been deprecated
@eugenehp I just updated our CocoaPods install docs to reference the need to define the React dependency to point at the local NPM installation. Let me know if you think it should be tweaked.
thanks @lostintangent
I might missed that at the first place. Now it's all good. 👍
pod 'React', :path => '../node_modules/react-native'
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
Most helpful comment
_Just a note to myself:_
ios/Podfilemust containpod 'React', :path => '../node_modules/react-native'to avoid