react-native/local-cli/runIOS
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
..
__tests__ Added `react-native run-ios` 2016-01-05 17:18:49 -08:00
findXcodeProject.js Added `react-native run-ios` 2016-01-05 17:18:49 -08:00
parseIOSSimulatorsList.js Added `react-native run-ios` 2016-01-05 17:18:49 -08:00
runIOS.js fix runIOS: appPath is hardcoded, read from log 2016-06-22 03:43:33 -07:00