React/RCTBridgeDelegate.h' file not found
The issue is related to cocoapods
dependency manager. Do the following to fix this:
- Open the terminal and go to your project
ios
directory - Type in
pod init
(If it doesn't exist) and thenpod install
- Open the workspace project and delete the build from ios folder
- Run
react-native run-ios
from terminal.
It should work now.
In my case the libPods-FOO.a
library had somehow become unlinked when I did a pod update && pod install
. To see if this applies to you:
In Xcode, check under Project Navigator:
[Your Project Name] --> Targets --> [Your target name] --> General
Scroll down to
Frameworks, Libraries and Embedded Content
If you don't have a
libPods-XXXX.a
in there (where XXXX is your project name) then add it:- Click the '+' sign to add the libPods library
- Search for
libPods
in the search box - Choose the
libPods-XXXX.a
and clickAdd
.