【发布时间】:2017-11-29 11:29:13
【问题描述】:
我在当前项目中使用 Xcode 9.1 和 Swift 3.2。
我尝试使用 1024jp 的 GzipSwift 库,但我不断收到clang: error: linker command failed with exit code 1 (use -v to see invocation)。
所以我决定试试 Objective C 版本。
这是用 Objective C 库 https://github.com/nicklockwood/GZIP 编写的 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.
我不知道如何使用 Carthage,也不知道如何拖动 GZIP.xcodeproj(我应该将它拖到项目的哪个位置?),而且我也找不到 GZIP.framework 文件。
我尽量避免使用 Cocoapods,因为过去我工作的地方证明它很麻烦。
【问题讨论】:
标签: objective-c swift xcode gzip carthage