Perfect icon indicating copy to clipboard operation
Perfect copied to clipboard

Perfect-XML -> Redefinition of module 'libxml2'

Open vasil-boshnyakov opened this issue 6 years ago • 1 comments

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.

vasil-boshnyakov avatar Apr 02 '18 19:04 vasil-boshnyakov

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"),

neoneye avatar May 07 '18 20:05 neoneye