Building Zlib module fails
bspaulding opened this issue · comments
Sorry if this is totally the wrong place for this issue, but I am a bit out of my depth. :/
Trying to add maxpng to a swift project, and compile on mac os, I am getting some compile errors related to zlib.
Running macOS 10.13, Xcode 9.0.1
Output:
Compile Swift Module 'MaxPNG' (1 sources)
/usr/include/zconf.h:247:14: note: while building module 'Darwin' imported from /usr/include/zconf.h:247:
# include <stddef.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "sys/cdefs.h"
^
/usr/include/sys/cdefs.h:587:10: error: 'sys/_symbol_aliasing.h' file not found
#include <sys/_symbol_aliasing.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/usr/include/zlib.h"
^
/usr/include/zlib.h:34:10: note: in file included from /usr/include/zlib.h:34:
#include "zconf.h"
^
/usr/include/zconf.h:247:14: error: could not build module 'Darwin'
# include <stddef.h>
^
/Users/bspaulding/source/swift-catsdogs/.build/checkouts/maxpng.git-4539351761082512968/Sources/maxpng.swift:1:8: error: could not build Objective-C module 'Zlib'
import Zlib
^
+1
macOS: 10.12.6
Xcode: 9.0.1
Swift 4
/Users/js/github.com/tile-service/.build/checkouts/maxpng.git-4539351761082512968/Sources/maxpng.swift:1:8: error: could not build Objective-C module 'Zlib'
import Zlib
^
i believe this was fixed in master
, see this pr,, can you test with the current branch? i don’t think the fix has been tagged in a release
Thanks @Kelvin13 that does indeed fix it in master, do you mind pushing a version tag so we can use that without manually checking out and using a 'path' dependency? Appreciate your efforts :)
master
is currently a development repository for the 3.0 version of the library, which has not been released, mainly for missing documentation. I would recommend just setting your SPM dependency to trunk instead of a version tag for now.
issue is no longer relevant, as zlib dependency was removed in 4.0.0