-
Notifications
You must be signed in to change notification settings - Fork 36
feat: add run:ios command
#41
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
Conversation
53e17b6 to
a8dba3e
Compare
packages/plugin-platform-apple/src/lib/commands/run/createRun.ts
Outdated
Show resolved
Hide resolved
| * - iPhone 11 | ||
| */ | ||
|
|
||
| const fallbackSimulators = [ |
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.
for me it rarely worked because the names are iPhone 14 (iOS version). maybe our fallback logic can just get the first simulators from the command's output?
| const device = args.interactive | ||
| ? await promptForDeviceSelection(devices) | ||
| : args.udid | ||
| ? devices.find((d) => d.udid === args.udid) | ||
| : args.device | ||
| ? matchingDevice(devices, args.device) | ||
| : args.simulator | ||
| ? await matchingSimulator(devices, platformName, args.simulator, args.udid) | ||
| : undefined; |
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.
a lot simpler, nice
a7fff98 to
9c8b83a
Compare
b9a03cf to
4b93420
Compare
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.
![]()
4b93420 to
5bbd4a7
Compare
Summary
Initial support for
run:ioscommand ported from RNC CLI. Changes compared to reference implementation:--terminal,--packager,--list-devicesflagsxcdevicecall todevicectlfor faster lookup--catalystflag for running apps in Mac Catalyst modeScreen.Recording.2024-12-09.at.14.07.58.mov
Test plan
Ported tests. Integration tests to be added in a separate PR