react-native: init build failure with ANY new react-native project halp

** BUILD FAILED **


The following build commands failed:

	CompileC /Users/Rachel/TestRN/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/TestRN.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/TestRN.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

— Please use this template, and delete everything above this line before submitting your issue —

Description

My react-native init Build failure with ANY new project. I made a new project called TestRN which seemed to go fine until i tried to build it and get the typical welcome to react native screen. On: react-native run-ios I got the error above. I uninstalled and reinstalled react native, node, watchman and killed all processes on port 8081.

Please help me fix and understand what is going wrong.

Reproduction

https://github.com/RBazelais/TestRN.git

Solution

I have no idea

Additional Information

  • react-native-cli: 1.3.0

  • react-native: 0.39.0

  • watchman --v 4.7.0

  • xCode: 7.2

  • Platform: IOS

  • Operating System: MacOSX Yosemite 10.10.5

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 8
  • Comments: 28 (6 by maintainers)

Commits related to this issue

Most upvoted comments

Alright, I got it to work. Simply patch it by removing lines 26 and 27 from node_modules/react-native/React/Base/RCTPlatform.m:26. Then try and build again. No idea why that enum value was not defined, according to Apple it’s SDK 9.0 which should be supported on XCode 7.2.

I also tried changing the project build target to 9.2, but that didn’t help.

I agree with mentioning what XCode version should be used with each version of react-native. Couldn’t find the information anywhere while facing the bug on this issue. Updating my macOS + Xcode now…

hi Same issue to me. But after I upgrade to Xcode 8.2., everything is OK

same problem when i use space in folder name

Same xCode, same OS, installed node/npm/react native just today, same error. Happens both in CLI and when running the build in xCode.

Here is what I get in xCode:

[MyProject]/node_modules/react-native/React/Base/RCTPlatform.m:26:10: Use of undeclared identifier ‘UIUserInterfaceIdiomCarPlay’; did you mean ‘UIUserInterfaceIdiomPad’?

Seems like a compatibility problem with xCode 7.2?