React/RCTBridgeDelegate.h' file not found

2020-08-13 05:35发布

问题:

I have created a new project called auth using react-native init auth at terminal.When i tried to run the project using react-native run-ios. The build failed and gave a error 'React/RCTBridgeDelegate.h' file not found.

Tried to update the react native version

react-native run-ios at terminal in mac

I expect the build to be successful and see the ios simulator The actual result which i got is build failed and hence cant see the simulator

回答1:

The issue is related to cocoapods dependency manager . open the terminal and then go to your project ios director, and then type "pod init" (If it doesn't exist) and then "pod install" and then open the workspace project and delete the build from ios folder and run react-native run-ios. It should work.