Avoid thinning frameworks in iOS extensions #65198
Conversation
There was a problem hiding this comment.
There was a problem hiding this comment.
nit. Maybe a comment to explain why we have to pod install even if it doesn't have plugins?
There was a problem hiding this comment.
I wish that original line could be DeMorgan rewritten 😂
That isModule part is definitely weird. I can see the argument for just generally not running pod install when there's only a user Podfile without plugin. Since at that point, it doesn't have much to do with Flutter's build pipeline. When a user changes his own Podfile, the user should run pod install themselves. Our customers did complain back in beta days about pod install always running for no changes and being slow.
I can't think of why isModule + has Podfile means pod instead has to run. Removing isModule from this consideration altogether seems reasonable. "'Cause if you like it, then you shoulda put a test on it"
There was a problem hiding this comment.
I reverted this, and instead added a Flutter plugin to the integration test so the tool runs pod install for us and I don't need to call it manually.
|
What's the status of this PR? |
|
When I get back from vacation I am going to revert the changes to |
Reland #64674
Always run the
pod installfingerprint check if there is aPodfile, even if there are no Flutter plugins.Description
Watch extensions are embedded in iOS apps. Avoid lipo'ing those frameworks to iOS architectures. Stick to the app frameworks.
Related Issues
Fixes #60351
Tests
Updated
ios_app_with_extensions_testto include a watch framework. Check the build succeeds, and that the watch extension frameworks have the expected watch architectures.Checklist
///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change