swift - iOS: "Include of non-modular header" with libxml -
i'm trying build own framework 'vbl' uses touchxml based on libxml.dylib
the framework building fine, whenever i'm trying use in project, got following error:
"include of non-modular header inside framework module vbl.cxmlnode"
and that's because in header cxmlnode.h inside framework, have include libxml follows:
#include <libxml/tree.h>
is safe set following property inside build settings yes?
allow non-modular included in framework modules
but not work swift anyways, other suggestions?
you can try hide #include <libxml/tree.h>
in private header or in .m file if can.
you can try create module.modulemap
file libxml root header inside fool swift compiler:
module libxml [system] { header "/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos.sdk/usr/include/libxml2/libxml/tree.h" export * }
then place file inside folder, -module/module.modulemap- example.
once did should link in import paths
within swift compiler search path
section of target build setting
, , target's header search path
:
$(srcroot)/module
then in code, can use @import libxml;
Comments
Post a Comment