“RCTBundleURLProvider.h” file not found - AppDelegate.m

后端 未结 26 1452
遇见更好的自我
遇见更好的自我 2020-12-04 06:29

I am trying to run my React Native app in XCode and I keep getting this error. I cannot figure out how to resolve the issue. Any suggestions?

Screen Shot of Error in

26条回答
  •  不知归路
    2020-12-04 07:03

    For my case, I couldn't delete node_modules and re-install and I also couldn't do react-native-git-updgrade or react-native upgrade because I wanted to stay on RN-0.59 because .60 causes problems for my dependencies.

    Anyway my situation was that I was missing 'React/RCTBundleURLProvider.h' file. I already had React available in my schemas. It was not in my libraries directory. I checked my target's build settings.

    Inside target dependencies, I also had React in there.

    I deleted 'React' target dependency, then re-added. cleaned build folders, re-built project. it worked.

提交回复
热议问题