Mark Oswald 5276db492a fix runIOS: appPath is hardcoded, read from log
Summary:
The runIOS command currently assumes the path to the `xcodebuild` product - it's hardcoded

```
  const appPath = `build/Build/Products/Debug-iphonesimulator/${inferredSchemeName}.app`;
```
https://github.com/facebook/react-native/blob/master/local-cli/runIOS/runIOS.js#L87

This can be a problem, when you e.g. install a release version of the app to the simulator using the cli. We use a separate schema for that, which can be selected with `--scheme`.

This fix reads the output of the `xcodebuild` call and searches for the path and the name of the *.app file. If it's found, then it will be used to spawn in the simulator. If not, the default (as before) is used.
Closes https://github.com/facebook/react-native/pull/8250

Differential Revision: D3469074

Pulled By: javache

fbshipit-source-id: b10c7e6f48268b0c71dfcbfa661f8e5960c3aaa6
2016-06-22 03:43:33 -07:00
..
2015-11-12 07:05:01 -08:00
2016-06-17 04:13:29 -07:00
2016-04-29 05:27:28 -07:00
2016-06-04 16:43:41 -07:00
2016-06-21 11:09:24 -07:00
2016-06-03 02:43:57 -07:00
2016-06-03 02:43:57 -07:00
2016-04-29 09:25:32 -07:00
2016-06-03 09:13:20 -07:00
2015-10-28 21:36:07 -04:00