React/RCTBridgeDelegate.h' file not found

2020-08-13 04:57发布

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条回答
祖国的老花朵
2楼-- · 2020-08-13 05:50

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.

查看更多
登录 后发表回答