Description
Description
After followed the Getting Started guide, I am unable to run the starter application. When I run the command react-native run-ios
, I receive the following error:
"
Port 8081 already in use, packager is either not running or not running correctly
Command /bin/sh failed with exit code 2
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution Start\ Packager /Users/bodiwals/Documents/Code/Bitbucket/HappyJar/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Script-006B79A01A781F38006873D1.sh
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/HappyJar.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/HappyJar.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
"
I believe that is because my machine is running McAfee in the background on port 8081.
I then tried running the following command:
react-native start --port=8088
, but then my terminal gets stuck on "Loading dependency graph, done."
Reproduction Steps and Sample Code
I followed the Getting Started guide. I've installed nodejs, using version 6.9.4. I've installed watchman, the react-native-cli tool, and used the command react-native init myProject
to create a project. I went into the directory and tried running react-native run-ios and ran into the issue I provided above. I then ran react-native start --port=8088 and got stuck as provided above. I've looked all over stackoverflow, but have not been able to find a solution to this issue.
Solution
Get the demo project up and running.
Additional Information
- React-Native-Cli: 2.0.1
- React-Native: 0.44.0
- Platform: iOS
- Development Operating System: macOS (Sierra - 10.12.3)