Skip to content

Swift plugin support #10968

@collinjackson

Description

@collinjackson

In #9694 we commented out use_frameworks! in the new project template.

I would like to bring it back so that Swift plugins will be supported.

The problem is CocoaPods/CocoaPods#3289 - plugins that have third-party dependencies (e.g. Google Sign In) don't work properly and get errors of this form:

[!] The 'Pods' target has transitive dependencies that include static binaries

use_frameworks! will happily coexist with static transitive dependencies if you override the static framework verification:

pre_install do |installer|
    # workaround for https://github.com/CocoaPods/CocoaPods/issues/3289
    def installer.verify_no_static_framework_transitive_dependencies; end
end

However, the header files don't get copied into the right place.

I think we need to understand this further and see if we can get the header to be right.

Metadata

Metadata

Assignees

Labels

p: toolingAffects the flutter_plugin_tools packagepackageflutter/packages repository. See also p: labels.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions