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

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

    If you havent run npm install you are likely to encounter this issue.

    0 讨论(0)
  • 2020-12-04 06:57

    Make sure that the path to your project don't have any spaces. Just renaming folders and deleting spaces solves the problem for me.

    0 讨论(0)
  • 2020-12-04 06:59

    I ran into this problem after my first try running a React build in XCode, and all I had to do was actually build and run to make the error go away (after picking a team and proper provisioning). Sometimes XCode shows errors that aren't really errors until it compiles and links things the first time.

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

    I solved this problem by following steps:

    1. In xcode choose project root.
    2. Drag React.xcodeproj from Libraries to the root of the project.
    3. Click on project name (in my case it name SaleKit) in TARGETS
    4. Choose Build Phases
    5. In dropdown of Target Dependencies add React
    6. Rebuild or re-run

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

    Run npm install in your project directory to install react-native resolving this error.

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

    xcode Product->Scheme->Manage Schemes click '+' at the Target to select "React" and set the React is shared.

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