-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Compile snapshot_assembly with sdk root set in Xcode #69731
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
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 class is almost dead: b/172093077
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.
We take the architecture from the build settings instead.
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 will be used in the next PR when the debug App.framework is migrated.
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 is actually wrong and isn't building anything for the simulator, but that's what it was doing before this PR. Will fix in the next PR.
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
|
😮 TIL you can quote multiple code lines' permalinks |
Description
With the upcoming support for Apple Silicon ARM simulators, App.framework can no longer contain architectures for both
iphoneosandiphonesimulatorsince they need to be build against different SDKs, but they can no longer belipod together (lipocomplains both binaries contain arm64 and fails).Primarily this is a problem when building the debug stub framework:
flutter/packages/flutter_tools/lib/src/build_system/targets/ios.dart
Lines 106 to 111 in cb67513
And in
flutter build ios-frameworkthat smush together plugin frameworks.iphoneosandiphonesimulatordirectories - done with Build App.framework directly to build directory #69699.iphoneosandiphonesimulatorSDK from Xcode instead of trying to guess from the architectures (to stop assuming x86 == simulator). Use it foraot(this PR).lipoing from debug stub framework step and only use the requestediphoneosoriphonesimulatorSDK, not for both. Refactorflutter build ios-frameworkas needed (next PR).flutter build ios-framework --universal- Deprecate build ios-framework --universal #69720flutter build aot- Deprecate and replace build aot #49562This PR actually doesn't change any behavior, but I did steps 2 and 3 at the same time and the patch is too large to easily review. Some of this will make more sense on the next PR.
Related Issues
Support #69334