Skip to content

Fail ios workflow when simctl does not work - #15628

Merged
jonahwilliams merged 3 commits into
flutter:masterfrom
jonahwilliams:simctl_fix
Mar 17, 2018
Merged

jonahwilliams merged 3 commits into
flutter:masterfrom
jonahwilliams:simctl_fix

Conversation

@jonahwilliams

Copy link
Copy Markdown
Contributor

Fixes #13063 by

  • Partial failure of IOS workflow if xcrun simctl list does not exit successfully. This prints a message that the user must open xcode and install required components.
  • Don't display connected devices if simctl is not enabled

@yjbanov

yjbanov commented Mar 16, 2018

Copy link
Copy Markdown
Contributor

lgtm

if (!xcode.isSimctlInstalled) {
xcodeStatus = ValidationType.partial;
messages.add(new ValidationMessage.error(
'Xcode requires additional components to be installed in order to run. Launch Xcode and install '

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I'd add a linebreak after the period.

_isSimctlInstalled = false;
} else {
_isSimctlInstalled = true;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shorter: _isSimctlInstalled = result.stderr == null;

@cbracken

Copy link
Copy Markdown
Member

lgtm modulo comments.
lgtm

@tvolkert

Copy link
Copy Markdown
Contributor

This has been identified as the culprit of #15697 - @jonahwilliams sounds like you're rolling this back?

@jonahwilliams

Copy link
Copy Markdown
Contributor Author

Rollback failed, I have a forward fix ready to go

DaveShuckerow pushed a commit to DaveShuckerow/flutter that referenced this pull request May 14, 2018
* fail ios workflow when simctl does not work

* missed rename commit

* address comments
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Confusing Flutter error message when Xcode installation is incomplete

5 participants