React/RCTBridgeDelegate.h' file not found

你。 提交于 2019-12-07 07:51:18

问题


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.



来源:https://stackoverflow.com/questions/56916798/react-rctbridgedelegate-h-file-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!