react-native: Suddenly "CFBundleIdentifier" Does Not Exist
The following build commands failed:
CompileC /Users/mars/code/mobile-apps/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTPlatform.o Base/RCTPlatform.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/ulabox.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/ulabox.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Versions:
- Tried node: boron and 7.4.0
- react-native 0.40.0
- watchman 4.1.0
Tried:
watchman watch-del-all
npm start -- --reset-cache
rm -rf project/ && git clone project && yarn
- This: https://github.com/facebook/react-native/issues/11265
- This: https://github.com/facebook/react-native/issues/10545
- And aaaaall of this: https://github.com/facebook/react-native/issues/7308
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 3
- Comments: 18 (4 by maintainers)
I had the same error, using Xcode 7.2.1.
I had to comment out these lines causing build failures, to run my SimpleApp.xcodeproj in Xcode:
case UIUserInterfaceIdiomCarPlay: return @"carplay";
in RCTPlatform.mself.barItem.badgeColor = badgeColor;
in RCTTabBarItem.m_tabController.tabBar.unselectedItemTintColor = unselectedItemTintColor;
in RCTTabBar.mactivityViewController.completionWithItemsHandler = ...
in RCTProfile.mNow the app also opens in the virtual device with
react-native run-ios
in Terminal.Versions: “react”: “16.0.0-alpha.12”, “react-native”: “0.45.1”
@sospartan sir, what xcode version are you using right now? I’m having the same issue.
I found how to solve the issue: do NOT use space in your project path! 🎉 😄
So it looks like this issue can be resolved by updating Xcode?
Closing for now, but if anybody has a complete description of the issue, and repro steps, please file it as a new issue