-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
React pod has been deprecated and build fails #414
Comments
Addendum: this causes builds to fail with RN 0.48.3, RNFirebase 2.2.0, and pods:
The react native packager produces
I'm confident that this issue is tied to the deprecation of the React pod, etc. but I cannot be entirely certain, and others' insights here would of course be appreciated. |
Ah, so the pod deprecation warning is because I am a fool and forgot the pod "Yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'BatchedBridge', # Required For React Native 0.45.0+
'Core',
# Add any other subspecs you want to use in your project
] section in my Podfile. However, the ambiguous resolution errors persist. |
Further edit: I was having build issues, but I was able to resolve them by adding pod 'React', :path => '../node_modules/react-native', :subspecs => [
'BatchedBridge', # Required For React Native 0.45.0+
'Core',
'DevSupport'
# Add any other subspecs you want to use in your project
] Now the
|
Seeing same issue as @samuela |
For some reason the install process also creates a React folder under /ios/Pods, deleting it fixes the issue: |
@olivierlesnicki My understanding is that the /ios/Pods/React/ folder is brought into existence because of the
bit in the Podfile. Are you sure it's safe to delete it? |
Hi guys I had a similar issue with you but it was to do with archiving try adding this at the bottom of your pod file: post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
end
end |
Docs have been updated with @JackThomson2's fix above which has been confirmed to work in certain situations. Please re-open if this is still an issue. With v3.x we are looking at getting |
Hi, I've added the fix described by @JackThomson2 for this in my Podfile, and I've confirmed that
I've also made sure my Any ideas? EDIT:I was able to resolve this issue by clearing the react packager cache. |
Referencing software-mansion/react-native-svg#463 |
If anyone else is seeing there, it may be because the block of code in the Podfile (see the post a few above this one) which removes React was added after running |
Had the same issue. Running all typical sh*tfix-commands ( Restarting my Mac eventually fixed it for me |
I added the code snippet commented above and it fixed the issue, however I am getting 3 new warnings that I think are related to this:
I've tried the following:
None of those helped. Is anyone else seeing these warnings, or has any idea how to make them go away? Thanks in advance! |
I have the same problem and fixed it yet.
And I removed them.
|
I have fixed this issue by 'npm start -- --reset-cache' command. |
I fixed it by adding below lines to the pod file, to make sure CocoaPod gets React dependency from node_modules instead of creating a new directory and pulling from other repo.
And in my case, I make sure that I also DON'T have the above suggested:
so that the libs can be properly linked to my project. |
@allanjsx is the only solution that fix the problem for me after I have spent 2 days searching around... Anyway I'm struggling understand why on another machine (Mac osx) with same project configuration and same cocoapod version (1.40) the pod install command does not generate the React dependency and all works perfectly... |
pod 'React', :path => '../node_modules/react-native' If someone can not build even though try this, |
@MobileWojciec as you say, |
I am also having the same issue. bundling failed: ambiguous resolution: module
Can you please help me out |
@mahendrathotakura Can you show the detailed environment of your app? |
Thanks for your response! I fixed the issue, it is due to Pods. |
The complete solution to solve this, your Podfile should look likes that example below. After alter the file you have to do a
|
I was getting the "Multiple commands produce ..." for libRNFirebase.a and seem to have solved it based on this facebook/react-native#20492 (comment) |
Omg I was struggling with this for two days. I did what @allanjsx said in his comment but I deleted the Pod directory and then |
You guys might like the addition I just made to react-native-clean-project - after you install that module you just run |
|
Issue
The React pod, which is one of RNFirebase's dependencies, has been deprecated. A minimal Podfile looks something like
and running
pod update && pod install
, produces a warningEnvironment
The text was updated successfully, but these errors were encountered: