Description
Description
in XCode we can duplicate the default build Configurations by navigating to our Project -> info tab -> click on the plus symbol and duplicate any of the existing configs (debug, Release). Set a new name. Now when edit our scheme and tell XCode to use our new config the build process won't finish. Most probably you'll end up with this error:
fatal error: 'React/RCTBundleURLProvider.h' file not found
After staring at the screen for a day I think that the issue is that the build script is copying the React files to either debug-iphoneos or release-iphoneos instead of using the "newconfig"-iphoneos directory.
REPROPDUCTION
Steps to reproduce:
- create a new RN project:
react-native init test
-
Now open the project in XCode, click on your project in the folder tree. Then select the project -> your project and navigate to the Info tab. Duplicate one of the configurations and give it whatever name you like.
-
Edit your current scheme and select the new configuration in the "build configuration" option. Now run the project. It should fail.
-
You can repeat the same steps on RN 0.39 and it works...
Here a few screenshots of the proper screens in XCode:
And on this screen you can see that RTCBundleURLProvider.h is being copied, but to the wrong path
Solution
Don't have one yet, most probably the issue happens somewhere in runIOS.js
Additional Information
- React Native version: 0.40
- Platform: iOS
- Operating System: MacOS