objective c - Import Cordova CDVPlugin.h in iOS framework's umbrella header -


firstly explain context of situation: created objective-c ios framework has embedded cordova framework project (cordovalib) trying emulate cordova app does, using ios framework instead of application. have ios native application uses framework. (i've attached image @ bottom understand better structure).

since don't have cordova app, cannot use cordova plugin add command install plugins, when want use new plugin copy files manually , change other files depending on plugin in order install plugin manually. has been working alright plugins have installed, until tried same process iosrtc plugin (https://github.com/eface2face/cordova-plugin-iosrtc). plugin has bridging header import objective-c files swift files, when plugin used in “normal” application objective-c bridging header build setting has used specifying bridging header file path.

this works alright in “normal” application, problem i'm not installing in application, i'm “installing” in ios framework tries work cordova application. when tried specify bridging header path in objective-c bridging header build setting, got error:

“using bridging headers framework targets unsupported”.

then in other words cannot use bridging header in framework.

first question: how handle imports in bridging header file, without using bridging header?

researching found move imports bridging header framework's umbrella header changing visibility of files want import, public. worked imported files this: cordova/cdvplugin.h

this file's visibility public, problem is in cordovalib project i'm getting error:

include of non-modular header inside framework module 'mymodule'.

second question: how import file in umbrella header?

see directories structure here


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -