cezheng / Fuzi

A fast & lightweight XML & HTML parser in Swift with XPath & CSS support
MIT License
1.06k stars 151 forks source link

Swift Compiler Error: No such module "libxml2" #85

Closed candeladiao closed 6 years ago

candeladiao commented 6 years ago

Description:

Header Search Paths: $(SDKROOT)/usr/include/libxml2 Other Linker Flags: -lxml2

Environment

How to reproduce:

candeladiao commented 6 years ago

import paths: $(SRCROOT)/libxml2

/libxml2/ libxml2.h module.modulemap

/libxml2.h/

import <libxml2/libxml/xmlreader.h>

import <libxml2/libxml/xpath.h>

import <libxml2/libxml/xpathInternals.h>

import <libxml2/libxml/HTMLparser.h>

import <libxml2/libxml/HTMLtree.h>

/module.modulemap/ module libxml2 [system] { link "xml2" umbrella header "libxml2-fuzi.h" export module { export * } }

cezheng commented 6 years ago

Please use the latest Xcode(9.3) for latest Fuzi(2.0.2).

For Xcode 9.2 please use Fuzi 2.0.1