Repository navigation
Move iOS framework thinning into the tool as assemble target - #76665
Conversation
d949ac6 to
40d0c97
Compare
40d0c97 to
e34baec
Compare
|
If we extract in-place, doesn't that remove the possibility of conditionally skipping the thinning in the future? Or would we be relying entirely on xcode to skip |
The existing We could skip thinning in this new target by validating the input framework already only contains the requested archs. I can look into that performance improvement in a follow up PR, I was mostly just trying to refactor this one out of the bash script without changing too much. Actually come to think of it the |
jonahwilliams
left a comment
There was a problem hiding this comment.
LGTM
RIP even more shell scripts
The
xcode_backendscript removed extraneous architectures from the app in debug and profile ("thinned") to reduce install app size.App.frameworkandFlutter.frameworkinstead of all frameworks in the app. CocoaPods handles thinning plugins, and Xcode handles the rest, so don't duplicate the work.lipo -verify_arch, then extract all the requested architectures at the same time in-place to the same binary location.Added unit tests, but this is also already covered by existing tests like
flutter/dev/devicelab/bin/tasks/ios_app_with_extensions_test.dart
Line 307 in d603ee1