react-native/local-cli
David Gröger 48ab5eb436 cli run-ios on device
Summary:
At the moment the run-ios command from the react-native cli does only work for simulators.
The pull request adds a new option to the existing command: **"--device 'device-name'" which installs and launches an iOS application on a connected device.**
This makes it easier to build a test environment using react-native for connected devices.

I've tested my code with the following commands:
react-native run-ios --device "Not existing device"
react-native run-ios --device
react-native run-ios --device "name-of-a-simulator"
react-native run-ios --device "name-of-connected-device"

Output of the first three commands:
![example_error_output](https://cloud.githubusercontent.com/assets/9102810/17669443/f53d5948-630d-11e6-9a80-7df2f352c6a3.png)

Additional to the manual command tests i've added a test file 'parseIOSDevicesList-test.js'.

I used **ios-deploy** In order to launch and install the .app-bundle on a connected device.
ios-deploy on github:
Closes https://github.com/facebook/react-native/pull/9414

Differential Revision: D3821638

Pulled By: javache

fbshipit-source-id: c07b7bf25283a966e45613a22ed3184bb1aac714
2016-09-06 08:13:41 -07:00
..
__mocks__ Fix more tests 2015-09-16 13:05:30 -07:00
__tests__ Temporarily disable cli tests 2015-11-12 07:05:01 -08:00
android Bring back missing android command 2016-08-23 04:28:36 -07:00
bundle Fix building without writing a source map 2016-08-09 09:43:26 -07:00
core Update to Jest 15 2016-09-02 05:58:34 -07:00
dependencies Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
generate Revert "Add folders to attempt to unblock sync" 2015-10-26 22:48:10 +00:00
generator Mention double tapping R to reload in the app template 2016-06-23 06:43:27 -07:00
generator-android Add missing character into BUCK android template 2016-06-24 17:28:30 -07:00
generator-ios Update React Native minimum OS version to iOS8 2016-09-01 19:43:47 -07:00
init Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
install Further RNPM integration 2016-08-22 08:58:37 -07:00
library Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
link Update React Native minimum OS version to iOS8 2016-09-01 19:43:47 -07:00
logAndroid Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
logIOS Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
runAndroid Add `checkAndroid` back 2016-08-17 17:43:53 -07:00
runIOS cli run-ios on device 2016-09-06 08:13:41 -07:00
server Add values to JSC heap capture visualizaion 2016-09-01 17:29:05 -07:00
upgrade Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
util Add `--config` option to CLI to allow passing a path to an `rn-cli.config.js` 2016-08-12 11:58:33 -07:00
cli.js Use a separate babel config for the local-cli and the packager 2016-05-21 06:58:26 -07:00
cliEntry.js Attach origin of a 3rd party command 2016-08-29 08:43:49 -07:00
commands.js Attach origin of a 3rd party command 2016-08-29 08:43:49 -07:00
default.config.js Further RNPM integration 2016-08-22 08:58:37 -07:00
generate-android.js Add license headers to local-cli 2015-10-20 09:55:21 -07:00
generator-utils.js flowconfig adds flow/ folder 2016-03-21 06:26:34 -07:00
setup_env.bat Fix comments on .bat file 2015-10-28 21:36:07 -04:00
setup_env.sh Change ulimit to 2048 for non root Mac users 2016-02-06 11:45:37 -08:00
wrong-react-native.js Fix usage of react-native cli inside package.json scripts 2016-04-26 15:42:35 -07:00