1

I am trying to add an Obj C cocoapod into my Swift plugin.

However there isn't any bridging header file that flutter auto-generates when I make a new plugin with -i swift.

I tried adding it in my .h file but that didn't seem to work in my case.

I get the following error:

Include of non-modular header inside framework module

burnsi
  • 6,194
  • 13
  • 17
  • 27
Arnav
  • 1,404
  • 2
  • 19
  • 38
  • Does this answer your question? https://medium.com/@florentmorin/integrating-swift-framework-with-non-modular-libraries-d18098049e18 – grow4gaurav May 19 '20 at 18:40
  • @grow4gaurav my file is already public as it is a dependency on Cocoapods, however I don't know how do I add an Obj-c header file in a swift flutter plugin? – Arnav May 24 '20 at 09:12
  • [This duplicate question](https://stackoverflow.com/questions/52932436/how-to-add-bridging-header-to-flutter-plugin) may be useful – James Allen Aug 23 '23 at 16:56
  • Does this answer your question? [How to add bridging header to Flutter Plugin](https://stackoverflow.com/questions/52932436/how-to-add-bridging-header-to-flutter-plugin) – James Allen Aug 23 '23 at 16:58

0 Answers0