Reputation: 46579
Probably will need to know how to fix this for Android as well.
I don't see any answers for this in help:
$ react-native run-ios --help
react-native run-ios [options]
builds your app and starts it on iOS simulator
Options:
-h, --help output usage information
--simulator [string] Explicitly set simulator to use
--scheme [string] Explicitly set Xcode scheme to use
--project-path [string] Path relative to project root where the Xcode project (.xcodeproj) lives. The default is 'ios'.
--device [string] Explicitly set device to use by name
--udid [string] Explicitly set device to use by udid
--config [string] Path to the CLI configuration file
I'd like to run my react-packager on a different port because there is an agent listening on 8081 that I probably shouldn't kill.
I'm starting the app with
node node_modules/react-native/local-cli/cli.js start --port 9999
Which results in:
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution Run\ Script /Users/collumj/research/indraEight/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Script-006B79A01A781F38006873D1.sh
And the app won't start (instant crash). Killing the process that is listening on 8081 and starting the app will result in BUILD SUCCEEDED
.
Upvotes: 0
Views: 1361
Reputation: 4322
In order to change that you have to do this:
That's all, good luck
Upvotes: 1