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
Pass in runtime to ios_app_with_watch_companion simctl create #54899
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
for (final String runtime in LineSplitter.split(availableRuntimes)) { | ||
// These seem to be in order, so allow matching multiple lines so it grabs | ||
// the last (hopefully latest) one. | ||
final RegExpMatch iOSRuntimeMatch = iOSRuntimePattern.firstMatch(runtime); |
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.
I thought we wanted to grab the last one?
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.
never mind, i forgot how loops work.
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.
LGTM, with one nit.
} | ||
} | ||
if (iOSSimRuntime == null) { | ||
return TaskResult.failure('No iOS Simulator runtime found, available runtimes:\n$availableRuntimes'); |
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: can we wait to return until after we've also checked for the watchOS runtime, to optimize for the situation where the user has to install both?
Description
The versions of
simctl
installed on the devicelab machines require a runtime argument.Parse the output of
simctl list runtimes
and pass intosimctl create
when creating iOS and watchOS simulators.Related Issues
#54892
Checklist
///
).flutter analyze --flutter-repo
) does not report any problems on my PR.Breaking Change