React-Native (Build-Failed)
I am trying to build a react native app but I seem to always run across the same problem that a lot of developers are facing at the moment. After creating the app
- react-native init HelloWorld
- cd HelloWorld
- react-native run-ios (into the terminal)
an error such as this pops up and terminals the run:
** BUILD FAILED **
The following commands produced analyzer issues:
Analyze /Users/JemmaMarie/Documents/CareerCenter/Exercises/Ex_Files_Learning_React_Native/Exercise\ Files/Ch02/start/HelloWorld/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c
Analyze /Users/JemmaMarie/Documents/CareerCenter/Exercises/Ex_Files_Learning_React_Native/Exercise\ Files/Ch02/start/HelloWorld/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c
(2 commands with analyzer issues)
The following build commands failed:
PhaseScriptExecution Install\ Third\ Party /Users/JemmaMarie/Documents/CareerCenter/Exercises/Ex_Files_Learning_React_Native/Exercise\ Files/Ch02/start/HelloWorld/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/HelloWorld.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/HelloWorld.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
I have tried these solutions from stack overflow with no luck: Environment:
node: 8.2.1 Watchman: 4.7.0 xcode: 8.3.3 react-native-cli: 2.0.1 react-native: unknown
Upgraded xCode Now version 8.3.2
upgraded react native and ran react native run-ios again
went to system preferences and selected the xcode version on the xcode IDE
ive removed node_modules to look for the "typo" that another had found and ran react-native run-ios but still does not work
tried removing the build folder ios/build by using rm -r and ran react-native run-ios
tried another boilerplate create-react-native-app HelloWorld following the steps of https://github.com/facebookincubator/create-react-app
but get this error:
module.js:487
throw err;
^
Error: Cannot find module 'semver'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/unsupported.js:2:14)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
Did anyone find a pretty solid solution so far?
Thanks in advance.
ok i got same error, here i have post my anwser enter link description here
Before going to solution you should read the comments also ,So may be this can help you
So I decided to skip the Xcode route and use a different boilerplate and its corresponding Expo App.
https://github.com/react-community/create-react-native-app
open the file on your favorite IDE
and run: npm run ios on your terminal
you are still able to use the Xcode simulator though. it should automatically open :)
thanks for the time and the input for my prior issue!
Got a similar issue after having upgraded to watchman 4.7.0 using brew
.
Looks like there's an issue in this new version of watchman: watchman issues 358.
At the end I solved my issue removing the content of the /usr/local/var/run/watchman/
folder.
I've met that error, I passed these steps and finally succeeded to build.
1) delete 'ios' and 'android' folder.
2) delete 'node_module'
3) npm i
4) react-native eject
5) react-native-git-upgrade #this step is important
6) react-native run-ios
Comments
Post a Comment