I'm using Xcode 9.1 and Swift 3.2 for my current project.
I tried using 1024jp's GzipSwift library but I kept getting clang: error: linker command failed with exit code 1 (use -v to see invocation)
.
So I decided to give the Objective C version a try.
Here's GZIP written in Objective C library https://github.com/nicklockwood/GZIP.
Alternatively you can use Carthage, or if you prefer to install manually, drag the GZIP.xcodeproj into your project or workspace and include GZIP.framework under the linked libraries in your target.
I couldn't figure out how to use Carthage nor drag the GZIP.xcodeproj (where exactly in the project should I drag it?) and I couldn't find the GZIP.framework file anyways.
I'm trying to avoid Cocoapods as much as possible bec it's proven to be troublesome in the past where I work.