Skip to content
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

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

Closed
daneed opened this issue Jan 14, 2020 · 5 comments
Closed

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

daneed opened this issue Jan 14, 2020 · 5 comments
Labels
bug Something isn't working iOS Only effects iOS wontfix This will not be worked on

Comments

@daneed
Copy link

daneed commented Jan 14, 2020

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

@kmcgill88 kmcgill88 added bug Something isn't working iOS Only effects iOS wontfix This will not be worked on labels Jan 14, 2020
@kmcgill88
Copy link
Owner

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.

@daneed
Copy link
Author

daneed commented Jan 14, 2020

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

@ZhangPingFan
Copy link
Contributor

https://stackoverflow.com/questions/52244346/how-to-enable-swift-support-for-existing-project-in-flutter

@kmcgill88
Copy link
Owner

https://stackoverflow.com/questions/52244346/how-to-enable-swift-support-for-existing-project-in-flutter

@ZhangPingFan could you please PR this link to the README under FAQ please

@kmcgill88
Copy link
Owner

Thanks @ZhangPingFan !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working iOS Only effects iOS wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants