Zlib in Xcode 7.0

I am trying to implement "NSDate + GZIP" in Xcode 7.0 using Swift 2.0. Without success, it is not yet possible to find the "zlib" module (Error: "There is no such" zlib "module).

This is what I tried to do so far:

  • Add libz.tbd to "Link Binary with Libraries" in the build phases> "There is no such module" zlib ""

  • Add "-lz" to "Other linker flags" in the build settings> "There is no such module" zlib ""

    • Go to Phase Building> Binding Binary Files with Librairies +> Add Another
    • Make "CMD" + Shift + G (go to the folder) and type / usr / lib /
    • Adding libz.dylib> "There is no such module" zlib ""

The same error occurs in version 7.1. Any additional suggestions?

+5
source share
1 answer

Please check:

Speedy compiler import paths in build settings, like here: build options

zlib folder yellow (added as a group): folder

you have libz.tbd in related fw and libs: tied fw

Also try creating a project before trying to use the module.

0
source

Source: https://habr.com/ru/post/1232108/


All Articles