-
Notifications
You must be signed in to change notification settings - Fork 28.5k
Build App.framework directly to build directory #69699
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
'BUILT_PRODUCTS_DIR': path.join( | ||
flutterProject.rootPath, | ||
'build', | ||
'ios', | ||
'Release-iphoneos', | ||
), |
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.
This has been added to #69612.
This test fakes out some Xcode build settings to directly test xcode_backend. We can always rely on BUILT_PRODUCTS_DIR
being present when run directly in Xcode.
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!
#69612 with updated
ios_content_validation_test
.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 --simulator
will build to/build/ios/Debug-iphonesimulator/App.framework
.Additionally, this sets us up to no longer need to
lipo
the 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
lipo
will fail since the simulator and real device frameworks will both containarm64
.Also stop copying the
.DS_Store
directories, 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
Updated
ios_content_validation_test
. Already many many integration tests that will blow up in the compiled dart code or flutter_assets are missing.