Closed quanliangswift closed 7 years ago
Please try the latest GzipSwift 4.0. ref. #14
I'm having this issue as well, even with GzipSwift 4.0. I'm on Xcode 9 with Swift 4. I can reproduce this issue within xcode or compiling on command line with this swift package:
https://github.com/krze/GzipIssue
swift build -c release
The issue is fixed if you remove zlib from Gzip's depdendencies (fork here: https://github.com/krze/GzipSwift)
Aha, sorry, I forgot about SPM + Apple devices. I have to update Package.swift somehow...
@krze @1024jp checkout my fork here https://github.com/danramteke/GzipSwift which fixes this problem using Swift Package Manager on Mac and Linux.
I suppose this issue was fixed on GzipSwift 4.0.3, which I've just released, thanks to #23. Please tell me if the matter still exists.
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/usr/include/module.modulemap:1872:8: error: redefinition of module 'zlib' module zlib [system] [extern_c] { ^ /Pods/GzipSwift/zlib/module.modulemap:1:8: note: previously defined here module zlib [system]