-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Migrate Runner project base configuration #54691
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
|
@tauu I would love your input on this solution since you diagnosed the original issue, but no pressure at all if you don't have time! |
|
Sounds good :-) Just a small suggestion for an improvement. For the specific use case of adding a watchOS target, it would be convenient to access the settings |
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
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: trailing comma
We could set |
That would be very helpful. I also agree that this migration is the right way to go. :-) |
👍 Created #54769, will track separately. |
Description
Remove Runner project base configuration from existing projects, and from template.
The Runner project was inheriting the build settings from the generated xcconfig file. As of #51453, that includes
OTHER_LDFLAGS=$(inherited) -framework Flutter, which tells the linker to link on the Flutter framework. However, this was being inherited by all targets, not just Flutter or even iOS targets.This migration removes the base configuration for the Runner project. It keeps it for the Runner target and any test targets, which is what actually needs to link on Flutter.
becomes
I ran
flutter build ioson all example and integration test projects to prove this works. Also tested on the new devicelab test at #51126.However, I had to manually migrate the flavors project, since that had custom build configurations. Users with custom build configurations that hit this issue (because they add a watchOS project, for example) will need to manually migrate their project base configuration.
Related Issues
Fixes #54680
Tests
ios_project_migration_tests
Checklist
///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change