question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

init build failure with ANY new react-native project halp

See original GitHub issue
** 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

Issue Analytics

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

github_iconTop GitHub Comments

13reactions
muellermichelcommented, Dec 8, 2016

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.

4reactions
vincentaudebertcommented, Mar 5, 2017

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…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Init a new project of react native fails - Stack Overflow
Init a new project of react native fails ... I thought it has a problem with ruby, but I have updated my ruby...
Read more >
Troubleshooting - React Native
These are some common issues you may run into while setting up React Native. If you encounter something that is not listed here, ......
Read more >
Addressing common errors in React Native - LogRocket Blog
Explore common React Native errors such as "command not found" and learn about their causes and potential solutions.
Read more >
How to create React Native App for Android, iOS and Web ...
Open command Prompt and go to the path where you want to create the project, In my case the path is C:\Users\shivam\Desktop\React ....
Read more >
Build fails with `npx react-native init MyApp` : r/reactnative
I can not run newly created apps in react-native. If anyone can help a brother out, I'd be forever grateful... This is the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found