1024jp / GzipSwift

Swift package that enables gzip/gunzip Data using zlib
MIT License
544 stars 134 forks source link

xcode 9 iOS11 GzipSwift/zlib/module.modulemap:1:8: note: previously defined here module zlib [system] #19

Closed quanliangswift closed 7 years ago

quanliangswift commented 7 years ago

/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]

1024jp commented 7 years ago

Please try the latest GzipSwift 4.0. ref. #14

krze commented 7 years ago

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

  1. Check out this repo
  2. Run swift build -c release
  3. Note the errors for the redeclaration of zlib

The issue is fixed if you remove zlib from Gzip's depdendencies (fork here: https://github.com/krze/GzipSwift)

1024jp commented 7 years ago

Aha, sorry, I forgot about SPM + Apple devices. I have to update Package.swift somehow...

danramteke commented 7 years ago

@krze @1024jp checkout my fork here https://github.com/danramteke/GzipSwift which fixes this problem using Swift Package Manager on Mac and Linux.

1024jp commented 7 years ago

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.