create-react-native-app: Xcode won't compile a fresh-ejected app
Please make our job easier by filling this template out to completion. If you’re requesting a feature instead of reporting a bug, please feel free to skip the Environment and Reproducible Demo sections.
Description
Looks like at some point in the eject process when generating the ios project #import <React/RCTDevSettings.h> is being referenced and can’t be found.
Expected Behavior
I was expecting it to run as a normal react-native app.
Observed Behavior
I was expecting it to compile normally as a react-native app would. Both in Xcode and running react-native run-ios but then this happened:
In file included from /Users/patrickbassut/Programming/beebo/.expo-source/ios/ios/Exponent/Versioned/Modules/Internal/EXDevSettings.m:3:
/Users/patrickbassut/Programming/beebo/.expo-source/ios/ios/Exponent/Versioned/Modules/Internal/EXDevSettings.h:3:9: fatal error: 'React/RCTDevSettings.h' file not found
#import <React/RCTDevSettings.h>
^
1 error generated.
** BUILD FAILED **
The following build commands failed:
CompileC /Users/patrickbassut/Programming/beebo/ios/build/Build/Intermediates/Pods.build/Debug-iphonesimulator/ExpoKit.build/Objects-normal/x86_64/EXDevSettings.o /Users/patrickbassut/Programming/beebo/.expo-source/ios/ios/Exponent/Versioned/Modules/Internal/EXDevSettings.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/beebo.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The bundle identifier of the application could not be determined.
Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/beebo.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Environment
Please run these commands in the project folder and fill in their results:
npm ls react-native-scripts: react-native-scripts@0.0.25npm ls react-native: react-native@0.42.3npm ls expo: expo@15.1.2node -v: v7.7.3npm -v: 4.1.2yarn --version: 0.21.3watchman version: { “version”: “4.7.0” }
Also specify:
- Operating system: macOS 10.12.4 (16E195)
- Phone/emulator/simulator & version: Trying to compile to 10.3
Reproducible Demo
create-react-native-app myApp
yarn run eject // Chose to use a Expo account and still have expo SDK
react-native run-ios // breaks
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 22 (9 by maintainers)
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/SampleApp.app/Info.plist Print: Entry, “:CFBundleIdentifier”, Does Not Exist
Hooray!
Hi! Thanks for the report! We discovered this earlier today, and I’m in the process of releasing a fix for it.
Can you try re-installing node_modules (delete n_m, then reinstall) followed by a
pod install?