I have upgrade react-native to 0.64 and I’m getting this error after I run pod install.
No podspec found for `FBReactNativeSpec` in `../node_modules/react-native/Libraries/FBReactNativeSpec`
I have tried to remove the node_module, remove the pod file, deintegrate, but still got this issue.
Any help?
4
Answers
Try npx react-native-clean-project
Input ‘Y’ for all the prompts asked.
I had the same question these days and found out it was because of the command
npm audit fix
i ran. It automatically updated react native version, which made podfile somehow confused. Downgrade your rn package or reset your version control should workWhile I am updating to the new react-native version 0.64.1,then I got the above-mentioned error when I tried pod install.I have fixed the issue by replacing the content on my podfile like the following
https://raw.githubusercontent.com/react-native-community/rn-diff-purge/release/0.64.1/RnDiffApp/ios/Podfile
I changed my podfile like the above.Then I tried pod install on my terminal.Its working fine.
The newer version of ReactNative (starting from 0.64) store FBReactNativeSpec in another folder.
You will need to replace the legacy FBReactNativeSpec path with the new one in the Pod declaration.
Open your Podfile and find this line :
And fix the path by replacing with this one :