When I try to create the Swift package that I created that uses the LLVM module map to enable libxml2 from /usr/include/libxml2/ , I get the following error:
Compiling Swift Module 'foo' (1 sources) <module-includes>2:9: note: in file included from <module-includes>:2:
This is my module map:
module Clibxml2 [system] { umbrella "/usr/include/libxml2" export * }
My dummy main.swift file is only trying to import the module now:
import Clibxml2
It compiles when I try to use a different header path / umbrella (e.g. /usr/include/CommonCrypto ). I checked that xmlversion.h exists in /usr/include/libxml2/libxml . Did I miss something?
source share