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?
Comments
Post a Comment