Can't generate declarations of iOS native library

ios

#1

Hi, I’m having trouble creating a plugin that uses a native library on iOS (Vuforia). I’ve been successful with other libs before, but with this one I get an error during metadata generation:

In file included from umbrella.h:523:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/libxml2/libxml/HTMLparser.h:15:10: fatal error: ‘libxml/xmlversion.h’ file not found
#include <libxml/xmlversion.h>

I’ve checked that the “missing” file is there actually. The library in the end doesn’t work, as it fails to generate the metadata for it.

Has anyone experiences something like this before? And what other information would you need to help? I’ve been banging my head against this for about a week now.

Thanks!


#2

Solved this myself.

I had a class with this in the header:

`@interface ImageTargetsViewController : NSObject {

Vuforia::DataSet* dataSetCurrent;

}

@end`

I moved changed these to @property syntax and synthesised them. That resolved the issue.