I am trying to build my project for iOS
- react-native:
0.68.2
- react:
17.0.2
But I get this error on iOS: 'react/bridging/Bridging.h' file not found
in Pods/Development Pods/React-Codegen/FBReactNativeSpec.JSI
My minimum iOS deployment target is 12.4
2
Answers
I encountered the exact same issue, and it turned out that the contents of the
ios/build/generated
folder were in an inconsistent state.By removing the contents of the
ios/build
folder and thePods
folder, followed by runningpod install
, I managed to fix the error.Hope this helps!
Your Podfile should look like this:
And than
rm -rf Pods
,rm -rf Podfile.lock
,rm -rf build
,pod cache clean --all
and finallypod install
After all of them it worked for me. I hope it works for you.