create-react-native-app: AppDelegate.m:12:9: 'React/RCTBundleURLProvider.h' file not found

Description

Vanilla ejected app without expo iOS build has compilation error and failed to build.

Expected Behavior

It should build out of the box.

Observed Behavior

AppDelegate.m:12:9: 'React/RCTBundleURLProvider.h' file not found

Environment

  • npm ls react-native-scripts: N/A
  • npm ls react-native: 0.45.1
  • npm ls expo: N/A
  • node -v: v6.11.0
  • npm -v: 3.10.10
  • yarn --version: 0.20.3 (this is the one installed by create-react-native-app!)
  • watchman version: 4.7.0
  • Operating system: Sierra 10.12.5
  • Phone/emulator/simulator & version: 10.0

Reproducible Demo

  1. create a new app using create-react-native-app@0.0.6
  2. eject without expo
  3. Open Xcode project
  4. Build

Workaround

Update to latest yarn 0.27.5 makes it run, however the compilation error is still there??

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 6
  • Comments: 40 (3 by maintainers)

Commits related to this issue

Most upvoted comments

potential solution here. https://stackoverflow.com/questions/40368211/rctbundleurlprovider-h-file-not-found-appdelegate-m

this resolved the issue for me -

in Xcode do the following:

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

N.B. Some people were not seeing the React option, nor was I until I ran npm install -g react-native-git-upgrade followed by react-native-git-upgrade. Following this the react option displayed for me.

I’m also running into this problem, and even reverting all changes in Git doesn’t help, my project appears to be permanently borked now.

@brentvatne , any update on this? It’s pretty much a complete development blocker.

why is closed? where is the solution?

@Pau1fitz’s solution worked for me too. How does the create-react-native-app eject tutorial gloss over that?

@Pau1fitz’s solution worked.

@brentvatne you should reopen this issue.

having the same error:

“dependencies”: { “react”: “16.0.0”, “react-native”: “0.50.3” }

+1

Any workaround for this issue?

same issue, RN 0.47…

steps to reproduce, just follow the guide: http://facebook.github.io/react-native/docs/getting-started.html

I am not blocked by this, since I am using an earlier version now. Somebody who is blocked by this, please repo this with a new project and link the created project here.

Same issue, I am using Xcode 8.3.3

“react”: “16.0.0-alpha.12”, “react-native”: “0.47.0”

I am facing the same issue.

DemoProject/ios/DemoProject/AppDelegate.m:12:9: ‘React/RCTBundleURLProvider.h’ file not found is there any solution?

I am following instructions from

https://facebook.github.io/react-native/docs/getting-started.html (Building Projects with Native Code)

I have tried to create project again and again, but no luck.

This is from my package.json

“react”: “16.0.0-alpha.12”, “react-native”: “0.47.1”