Perfect
Perfect copied to clipboard
Perfect-XML -> Redefinition of module 'libxml2'
Hello,
thanks for the great work!
I have an issue when I use PerfectXML with Swift Package Manager.
When I build the project with "swift build" everything compiles perfect. When I generate a XCode project and compile the project I get this error:
/usr/include/libxml2/module.modulemap:1:8: Redefinition of module 'libxml2'
Some more information:
OS: macOS 10.13.4 XCode: 9.3 Swift compiler: 4.1
Any help is welcome!
PS. If I rename in Perfect-libxml (module.modulemap):
module libxml2 [system] { to module perfectlibxml2 [system] {
everything is compiling under XCode.
I just had the same problem because I'm using the Postgres database. You may be using some other database, so this may not solve it for you.
Here is a recent commit related to libxml here: https://github.com/SwiftORM/Postgres-StORM/commit/002c045b21a4719d97269cdb6f3c6d4ee2d39901
I made my project compile again by making this change to my Package.swift
.
Change from
.package(url: "https://github.com/SwiftORM/Postgres-StORM.git", "3.0.0"..<"4.0.0"),
Change to
.package(url: "https://github.com/SwiftORM/Postgres-StORM.git", "3.1.0"..<"4.0.0"),