akofman / cordova-plugin-add-swift-support

:hammer: Swiftify your Cordova app !
MIT License
117 stars 110 forks source link

Bridging headers not supported #32

Open jamiedust opened 7 years ago

jamiedust commented 7 years ago

Hi, I am trying to build an application using the CLI but am getting the error:

<unknown>:0: error: using bridging headers with framework targets is unsupported

When I remove the SWIFT_OBJC_BRIDGING_HEADER setting I no longer get this error, but get missing framework errors (my plugin includes some Cocoapod dependencies).

I can build and archive in Xcode with no problem, it is only command line builds that error like this (but I would like this to run on a CI server).

I have followed your README and have a bridging header file in my plugin.

mzealey commented 6 years ago

I have this issue too, did you ever get a resolution?

eladnava commented 6 years ago

Exact same issue here. It happens when I include a Swift CocoaPods framework dependency in my plugin.xml.

jamiedust commented 6 years ago

Hi, I never managed to resolve this issue, for a while I just did all my builds manually. The app this was required for was actually retired so in the end I never needed to solve it. I would love to know what the problem was though!

eladnava commented 6 years ago

Hi @jamiedust, I ended up manually including the compiled framework's .swift source files and working around the issue that way.