I am unable to build iOS App because of the issue - 'React/RCTBridgeModule.h' file not found
"react": "^16.13.1",
"react-native": "^0.63.4",
"react-native-document-picker": "^4.2.0"
iOS target -- 10.0
I already tried a few of the suggested solutions including this. Though, unable to follow the following step, as there was no React.xcodeproj file available
Add react as a project dependecy
Xcode Project Navigator -> drag React.xcodeproj from Libraries to root tree Build Phases Tab -> Target Dependencies -> + -> add React
Also tried https://stackoverflow.com/a/52425997/1479511 and https://stackoverflow.com/a/41664041/1479511
but still no luck yet :(
UPDATE
Tried following the steps suggested by @Muhammad Numan in the answer.
- Check that I have React in my pods (pod 'React', :path => '../node_modules/react-native/'). If not, add it.
- Uninstall reinstall pods (pod deintegrate && pod clean && pod install in the ios folder, I believe the pod deintegrate command needs to be downloaded and isn't available by default)
So, modified contents of React.podspec
from
s.dependency "React-Core", version
s.dependency "React-Core/DevSupport", version
s.dependency "React-Core/RCTWebSocket", version
s.dependency "React-RCTActionSheet", version
s.dependency "React-RCTAnimation", version
s.dependency "React-RCTBlob", version
s.dependency "React-RCTImage", version
s.dependency "React-RCTLinking", version
s.dependency "React-RCTNetwork", version
s.dependency "React-RCTSettings", version
s.dependency "React-RCTText", version
s.dependency "React-RCTVibration", version
to
s.dependency "React/Core", version
s.dependency "React/Core/DevSupport", version
s.dependency "React/Core/RCTWebSocket", version
s.dependency "React/RCTActionSheet", version
s.dependency "React/RCTAnimation", version
s.dependency "React/RCTBlob", version
s.dependency "React/RCTImage", version
s.dependency "React/RCTLinking", version
s.dependency "React/RCTNetwork", version
s.dependency "React/RCTSettings", version
s.dependency "React/RCTText", version
s.dependency "React/RCTVibration", version
followed by the command pod repo update
Then, afterwards, getting this error
pod update
too @HGK – Narendra Singh