Update Xcode compatibility version #49654
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Update Xcode compatibility version for iOS app and module templates from 3.2 to 9.2 (the default for new Xcode projects).
This prevents Xcode from dropping into a "legacy build location" state that is incompatible with Swift Package Manager.
Also, generate workspace check files so the user doesn't have new unexpected files to stage and commit after running in Xcode.
I don't think this warrants a migration since most users are not going to be importing Swift packages. The manual migration is to go into the File inspector and swap Project Format from "Xcode 3.2-compatible" to "Xcode 9.3-compatible".
or to solve the Swift package manager sisue directly, swap File > Project Settings > Per-User Project Settings: > Advanced from Legacy to Xcode Default

Related Issues
Fixes #44811.
Tests
Updated create tests.
Checklist
///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change