Skip to content

Add iOS dependency to Flutter Plugin  #17978

@miguelpruivo

Description

@miguelpruivo

So far I've the plugin (standalone) and the app created. Now I need to (somehow) use and consume a static framework (obj-c) in iOS plugin.

I've the file plugin.h and plugin.m and I added the mylib.framework to the root of iOS folder, next to podspec file. Also tried to add the s.dependency 'mylib' to it. Still, it doesn't seem to work at all. Everytime I try to flutter build ios on my main app (using the plugin) I get the #import <myplugin/myplugin.h> not found

PS: The library works if I add to the iOS project on the Flutter app, but I MUST use it on a plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions