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

后端 未结 26 1345
遇见更好的自我
遇见更好的自我 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:19

    you need to install react native, in terminal run

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    

    then

    brew install node
    brew install watchman
    npm install -g react-native-cli
    

    source:
    https://facebook.github.io/react-native/docs/getting-started.html

    0 讨论(0)
  • 2020-12-04 07:20

    I found that my fix to this issue after upgrading React was to change the declaration of #import "RCTBundleURLProvider.h" to #import <React/RCTBundleURLProvider.h>

    0 讨论(0)
提交回复
热议问题