question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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??

Issue Analytics

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

github_iconTop GitHub Comments

91reactions
Pau1fitzcommented, Oct 3, 2018

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.

6reactions
shaneosullivancommented, Sep 9, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AppDelegate.m:12:9: 'React/RCTBundleURLProvider.h' file ...
I am facing the same issue. DemoProject/ios/DemoProject/AppDelegate.m:12:9: 'React/RCTBundleURLProvider.h' file not found is there any solution?
Read more >
"RCTBundleURLProvider.h" file not found - AppDelegate.m
I am trying to run my React Native app in XCode and I keep getting this error. I cannot figure out how to...
Read more >
iOS : "RCTBundleURLProvider.h" file not found - AppDelegate.m
iOS : "RCTBundleURLProvider. h " file not found - AppDelegate.m [ Gift : Animated Search Engine : https://bit.ly/AnimSearch ] iOS ...
Read more >
how to get the app delegate file on Xcode - Apple Developer
ive been working to integrate admobs to Xcode through the use of a tutorial online but ive noticed that when I open a...
Read more >
@mattlisiv/reactnative-splashscreen - npm
To fix 'RNSplashScreen.h' file not found , you have to select your project → Build Settings → Search Paths → Header Search Paths...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found