`React` pod dependency causes build to fail
See original GitHub issueGetting:
... tries to require `react-native`, but there are several files providing this module. You can delete or fix them:
* `<project_path>/ios/Pods/React/package.json`
* `<project_path>/node_modules/react-native/package.json`
Any workaround for this issue?
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Flutter build ios failing with: Error running pod install
Your cocoapods installation was broken. So try removing the brew version first via "brew uninstall cocoapods" Then install cocoapods via sudo ...
Read more >Troubleshooting
These are some common issues you may run into while setting up React Native. If you encounter something that is not listed here, ......
Read more >Common Build Problems
If that build suddenly fails too, there's a good chance, that a dependency was updated and is causing the breakage. Check the list...
Read more >Trouble with installing cocoapods
ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. ... Could not create Makefile due to some reason, probably lack of...
Read more >React Native SDK Troubleshooting - App Center
One possible cause is when running react-native link without CocoaPods installed. ... If you see that error, make sure the pod command from ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For history, I fixed my issue by manual linking
react-native-fast-image
(since pod is a real mess with react-native but I need it for firebase…).After
npm install
pod update
I had this issue like in stack overflow
To finally fix it I had to:
Developer/xcode/DereivedData
contentNOW IT WORKS ✌️
@MacKentoch @n1ru4l – thanks! I was eventually able to make it work using by following the example:
https://github.com/DylanVann/react-native-fast-image/blob/master/ReactNativeFastImageCocoaPodsExample/ios/Podfile
But it was very hard… Had a long struggle! 😃
Using
React
has a pod dependency was the source of pain on my case