Helder De Baere
Helder De Baere

Reputation: 450

file not found #import <React/RCTBundleURLProvider.h>

I'm trying to integrate MapBox-GL into a react native project. The problem is that when I run react-native run-ios --device the build fails with the error:

AppDelegate.m:12:9: fatal error: 'React/RCTBundleURLProvider.h' file not found
   #import <React/RCTBundleURLProvider.h>

But when I run the same project on an emulator, all works fine. Anyone else has experience with this? A simple Google on this is not giving the specific result.

    "react": "^15.4.2",
    "react-native": "^0.39.2",
    "react-native-mapbox-gl": "^5.1.0"

I edited the build scheme to include React but nothing helps...

Upvotes: 1

Views: 3035

Answers (1)

suther
suther

Reputation: 13628

Do the following: XCode Product ⇒ Scheme ⇒ Manage Schemes ⇒ Click '+' At the Target Dropdown choose "React" and after saving this, scroll down and check the shared checkbox

enter image description here

Upvotes: 5

Related Questions