1

We have integrated libxml in a swift project following the instructions mentioned in this link by creating module.modulemap file.

Code in module.modulemap file is

module libxml [system] {
    header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/libxml2/libxml/tree.h"
    export *
}

Now with Xcode 9.3 we are getting following errors:

import libxml --- Could not build Objective-C module 'libxml'

struct _xmlEnumeration {
    struct _xmlEnumeration    *next;    /* next one */
    const xmlChar            *name; /* Enumeration name */
}; 

Error :

Type 'struct _xmlEnumeration' has incompatible definitions in different translation units

Has anyone face this issue after migrating to Xcode 9.3. Please help.

picciano
  • 22,341
  • 9
  • 69
  • 82
AppleBee
  • 1,199
  • 12
  • 26

0 Answers0