-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Methods in build_ios_framework for universal and XCFrameworks #69736
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
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
0dafdeb to
a3ac81f
Compare
| podProduct as Directory, | ||
| if (mode == BuildMode.debug) | ||
| simulatorBuildConfiguration | ||
| .childDirectory(builtProduct.basename) |
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 pull request has been changed to a draft. The currently pending flutter-gold status will not be able to resolve until a new commit is pushed or the change is marked ready for review again.For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
| continue; | ||
| } | ||
| final String binaryName = globals.fs.path.basenameWithoutExtension(podFrameworkName); | ||
| if (boolArg('universal')) { |
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 logic is now in _produceUniversalFramework.
| } | ||
| } | ||
|
|
||
| if (boolArg('xcframework')) { |
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 logic is now in _produceXCFramework
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
Description
#69731 and the next "Remove lipoing from debug stub framework step" PR were too big to review together.
Refactoring part of
build_ios_frameworkto keep the reviews for #69334 small._produceXCFrameworkto_produceXCFrameworkFromUniversal. This existing method took a universal (fat) framework, split it intoiphoneosandiphonesimulatorframeworks, then turned them into an xcframework._producePlugins, combine with logic from_produceNonDebugXCFramework, and call the new method_produceXCFramework. This method will be used in the next PR.lipotogether non-fat frameworks into a universal framework out of_producePluginsand call it_produceUniversalFramework. This method will also be used in the next PR.Related Issues
Fixes #63508, will supersede #66541
Tests
build_ios_framework_module_testthoroughly tests the output bundles. My test suggestion in #66541 (review) wasn't a great one and it didn't work.build_ios_framework_module_testwill confirm it doesn't regress the more normal case that the module and framework are named the same thing.