-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added react-native run-ios
#5119
Conversation
By analyzing the blame information on this pull request, we identified @martinbigio, @mkonicek and @frantic to be potential reviewers. |
@frantic updated the pull request. |
This is awesome! +1 to opening xcode as little as possible. |
This is awesome! @vjeux and I were talking about this a few days ago :) |
* Parses the output of `xcrun simctl list devices` command | ||
*/ | ||
function parseIOSSimulatorsList(text: string): Array<IOSSimulatorInfo> { | ||
var devices = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: const
@frantic updated the pull request. |
This is great! 😍 |
The implementation looks good to me, @frantic feel free to merge it. |
@facebook-github-bot shipit |
Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/1688959801386516/int_phab to review. |
Summary: Works the same way as `react-native run-android`, but targets iOS simulator instead. Under the hood, it uses `xcodebuild` to compile the app and store it in `ios/build` folder, then triggers `instruments` and `simctl` to install and launch the app on simulator. Since Facebook relies on BUCK to build and run iOS app, we probably won't use `run-ios` internally. That's why I'm putting this as public PR instead of internal diff. To test this, I hacked global `react-native` script to install react native from my local checkout instead of from npm, cd into the folder and ran `react-native run-ios`. Closes facebook#5119 Reviewed By: svcscm Differential Revision: D2805199 Pulled By: frantic fb-gh-sync-id: 423a45ba885cb5e48a16ac22095d757d8cca7e37
Summary: Works the same way as `react-native run-android`, but targets iOS simulator instead. Under the hood, it uses `xcodebuild` to compile the app and store it in `ios/build` folder, then triggers `instruments` and `simctl` to install and launch the app on simulator. Since Facebook relies on BUCK to build and run iOS app, we probably won't use `run-ios` internally. That's why I'm putting this as public PR instead of internal diff. To test this, I hacked global `react-native` script to install react native from my local checkout instead of from npm, cd into the folder and ran `react-native run-ios`. Closes facebook/react-native#5119 Reviewed By: svcscm Differential Revision: D2805199 Pulled By: frantic fb-gh-sync-id: 423a45ba885cb5e48a16ac22095d757d8cca7e37
Works the same way as
react-native run-android
, but targets iOS simulator instead. Under the hood, it usesxcodebuild
to compile the app and store it inios/build
folder, then triggersinstruments
andsimctl
to install and launch the app on simulator.Since Facebook relies on BUCK to build and run iOS app, we probably won't use
run-ios
internally. That's why I'm putting this as public PR instead of internal diff.To test this, I hacked global
react-native
script to install react native from my local checkout instead of from npm, cd into the folder and ranreact-native run-ios
.