Skip to content

Remove dead code checking < Xcode 15 - #189103

Merged
auto-submit[bot] merged 5 commits into
flutter:masterfrom
jmagman:xcode-15-dead
Aug 15, 2026
Merged

auto-submit[bot] merged 5 commits into
flutter:masterfrom
jmagman:xcode-15-dead

Conversation

@jmagman

@jmagman jmagman commented Jul 8, 2026 •

Copy link
Copy Markdown
Member

As of #180531 the Xcode minimum is Xcode 15. Remove dead code that checked < 15.

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

@jmagman jmagman self-assigned this Jul 8, 2026
@jmagman jmagman added the CICD Run CI/CD label Jul 8, 2026
@github-actions github-actions Bot added tool Affects the "flutter" command-line tool. See also t: labels. platform-macos Building on or for macOS specifically a: desktop Running on desktop team-ios Owned by iOS platform team team-macos Owned by the macOS platform team labels Jul 8, 2026
@jmagman

jmagman commented Jul 8, 2026

Copy link
Copy Markdown
Member Author

/gemini review

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

@jmagman
jmagman marked this pull request as ready for review July 8, 2026 20:35
@jmagman
jmagman requested review from a team as code owners July 8, 2026 20:35

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request removes explicit Xcode version checks across various commands, migrations, and project checks, replacing them with simpler checks for whether Xcode is installed. The review feedback highlights a compilation issue in build_swift_package.dart where Dart's flow analysis cannot promote the nullable field _xcode to a non-nullable type, and suggests assigning it to a local variable first.

Comment thread packages/flutter_tools/lib/src/commands/build_swift_package.dart Outdated
@jmagman
jmagman requested a review from okorohelijah July 16, 2026 21:48
@okorohelijah

Copy link
Copy Markdown
Contributor

_xcode.currentVersion!.major < 15 ||

I think this should also be updated

]);
}
return _isDevicectlInstalled ?? false;
return _isDevicectlInstalled ??= _processUtils.exitsHappySync(<String>[

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the currentVersion is needed in cases where the xcode isnt installed. If not, the command triggers a blocking UI dialog prompting the user to install the Command Line Tools, which could cause the tooling to hang

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good to know, thanks for the catch.

okorohelijah
okorohelijah previously approved these changes Aug 11, 2026

@okorohelijah okorohelijah left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Carrying over the LGTM

@cbracken cbracken added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 13, 2026
@auto-submit
auto-submit Bot added this pull request to the merge queue Aug 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Aug 14, 2026
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Aug 14, 2026
@jmagman jmagman added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 14, 2026
@auto-submit
auto-submit Bot added this pull request to the merge queue Aug 15, 2026
Merged via the queue into flutter:master with commit 3cf86e0 Aug 15, 2026
22 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: desktop Running on desktop CICD Run CI/CD platform-macos Building on or for macOS specifically team-ios Owned by iOS platform team team-macos Owned by the macOS platform team tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants