-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Avoid thinning frameworks in iOS extensions #65198
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.
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, done.
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
christopherfujino
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
|
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