Build App.framework directly to build directory#69612
Merged
fluttergithubbot merged 2 commits intoflutter:masterfrom Nov 3, 2020
Merged
Build App.framework directly to build directory#69612fluttergithubbot merged 2 commits intoflutter:masterfrom
fluttergithubbot merged 2 commits intoflutter:masterfrom
Conversation
jmagman
commented
Nov 2, 2020
|
|
||
| # Prefer the hidden .ios folder, but fallback to a visible ios folder if .ios | ||
| # doesn't exist. | ||
| local flutter_ios_out_folder="${project_path}/.ios/Flutter" |
Member
Author
There was a problem hiding this comment.
Removed flutter_ios_out_folder. flutter_ios_engine_folder initialization was moved down a few lines to where it's used.
jmagman
commented
Nov 2, 2020
| AssertExists "${flutter_ios_engine_folder}" | ||
|
|
||
| # Copy Xcode behavior and don't copy over headers or modules. | ||
| RunCommand rsync -av --delete --filter "- .DS_Store/" --filter "- Headers/" --filter "- Modules/" "${flutter_ios_engine_folder}/Flutter.framework" "${xcode_frameworks_dir}/" |
Member
Author
There was a problem hiding this comment.
Here's where .DS_Store is already being filtered out of Flutter.framework rsync.
Contributor
There was a problem hiding this comment.
We probably need to also filter this out of the asset detection logic too, separate issue though
jmagman
commented
Nov 2, 2020
| /// No longer compiled to this location. | ||
| /// | ||
| /// Used only for "flutter clean" to remove old references. | ||
| Directory get deprecatedCompiledDartFramework => _flutterLibRoot |
Member
Author
There was a problem hiding this comment.
Open to naming suggestions here.
Contributor
There was a problem hiding this comment.
Seems reasonable to me. Might want to TODO removal after a stable release cycle or so
jmagman
commented
Nov 2, 2020
| logger.printError('Your Xcode project requires migration. See https://flutter.dev/docs/development/ios-project-migration for details.'); | ||
| logger.printError(''); | ||
| logger.printError('You can temporarily work around this issue by running:'); | ||
| logger.printError(' rm -rf ios/Flutter/App.framework'); |
jonahwilliams
pushed a commit
that referenced
this pull request
Nov 3, 2020
This reverts commit b770883.
jonahwilliams
pushed a commit
that referenced
this pull request
Nov 3, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Since #51453 we no longer need to build the App.framework to a known directory like
project/ios/Flutter/App.framework. Instead, build the frameworks directly to the build products directory. For example,flutter build ios -v --simulatorwill build to/build/ios/Debug-iphonesimulator/App.framework.Additionally, this sets us up to no longer need to
lipothe simulator and non-simulator frameworks together since they will build to different directories.flutter/packages/flutter_tools/lib/src/build_system/targets/ios.dart
Lines 103 to 112 in cb67513
When Apple Silicon ships and ARM simulators are supported, this
lipowill fail since the simulator and real device frameworks will both containarm64.Also stop copying the
.DS_Storedirectories, while we're at it (already done withFlutter.framework). These files shouldn't be copied, and it adds spew during the installation phase:Related Issues
#60118
Tests
No direct tests of the new location. Already many many integration tests that will blow up in the compiled dart code or flutter_assets are missing.