kmcgill88 / admob_flutter

Admob Flutter plugin that shows banner ads using native platform views.

Home Page:https://pub.dartlang.org/packages/admob_flutter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Needs Swift-based flutter project. Default Objective C won't build

daneed opened this issue · comments

Hi!
I generated my flutter project with default settings. This generates objective-c source and xcode project files for ios. If I try to use admob_flutter in my project, the result is compile error, which is related to Swift, and unresolved symbols (this is a linking error).
If I regenerate my project's ios part with the -i swift flag: admob_flutter works well.

Is It a known issue? It is easily reproducable.
daneed

This is a known issue. If you could PR a fix so this is compatible with Obj-C & Swift based projects that would be great. I don't use Obj-C anymore so I don't really have the energy to support it.

Hi!
OK, thank you. I just wrote this, because Flutter's default behavior is (as i know), that it creates obj-C project, instead of Swift!
So, maybe this would be good to emphasize, that with such kind of project, this admob_flutter won't work. Like, it would be clever to be put into README. This would spare time for users like me.
Thanks for the answer!
Best regards, Daniel