Commit 08d78809 authored by Dan Rubel's avatar Dan Rubel Committed by GitHub

Prevent "install XCode" dialog when flutter doctor is run (#6164)

fixes https://github.com/flutter/flutter/issues/6163
parent b4e379ad
......@@ -28,6 +28,10 @@ class XCode {
try {
_xcodeSelectPath = runSync(<String>['xcode-select', '--print-path']);
if (_xcodeSelectPath == null || _xcodeSelectPath.trim().isEmpty) {
_isInstalled = false;
return;
}
_isInstalled = true;
_xcodeVersionText = runSync(<String>['xcodebuild', '-version']).replaceAll('\n', ', ');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment