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:
- Created 7 years ago
- Reactions:8
- Comments:28 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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…