-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Add recommended Xcode version to doctor #73808
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
| // Messages used in XcodeValidator | ||
| String xcodeLocation(String location) => 'Xcode at $location'; | ||
| String xcodeOutdated(int versionMajor, int versionMinor, int versionPatch) => | ||
| 'Flutter requires a minimum Xcode version of $versionMajor.$versionMinor.$versionPatch.\n' |
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 figured there's no point mentioning the minimum required if they are out of date: just download the recommended one.
| const int kXcodeRequiredVersionMinor = 0; | ||
| const int kXcodeRequiredVersionPatch = 0; | ||
|
|
||
| const int kXcodeRecommendedVersionMajor = 12; |
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.
Can we replace these with our existing Version class?
| class Version implements Comparable<Version> { |
Then you can just if (currentVersion >= recommendedVersion) { ... }
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.
Good idea, done.
| } | ||
|
|
||
| bool get _xcodeVersionSupportsScreenshot { | ||
| return _xcode.majorVersion > 8 || (_xcode.majorVersion == 8 && _xcode.minorVersion >= 2); |
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 just noticed we don't need this anymore, the minimum version has been > 8 for awhile.
jonahwilliams
left a comment
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
* Update engine hash to 1.25.0-8.3.pre * Fix dateAndTime and time modes of CupertinoDatePicker. (#73276) * Fix cupertino icons mapping which was misaligned by 1 (#72384) * Add recommended Xcode version to doctor (#73808) * Remove unnecessary Xcode version check Co-authored-by: YeungKC <[email protected]> Co-authored-by: xster <[email protected]> Co-authored-by: Jenn Magder <[email protected]>
Add concept of minimum recommended Xcode version (analogous to minimum recommended CocoaPods version) to give users warning that they should start upgrading their environments.
Rename
isVersionSatisfactory->isRequiredVersionSatisfactoryfor clarity.Set minimum recommended to Xcode 12.0.1 (released 9/29/20).
Fixes #73801
flutter doctor:flutter doctor -v: