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/Anpm ls react-native:0.45.1npm ls expo:N/Anode -v:v6.11.0npm -v:3.10.10yarn --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
- create a new app using create-react-native-app@0.0.6
- eject without expo
- Open Xcode project
- 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
- Update Installing.md Some extra help concerning a common issue that occurs with fresh install of Xcode + react native 0.56. https://github.com/react-community/create-react-native-app/issues/316#issue... — committed to spencerkingman-niche/react-native-navigation by spencerkingman-niche 6 years ago
- Update Installing.md (#3870) Some extra help concerning a common issue that occurs with fresh install of Xcode + react native 0.56. https://github.com/react-community/create-react-native-app/issues/3... — committed to wix/react-native-navigation by spencerkingman-niche 6 years ago
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:
N.B. Some people were not seeing the React option, nor was I until I ran
npm install -g react-native-git-upgradefollowed byreact-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
+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”