陈斌彬的技术博客

Stay foolish,stay hungry

Swift 2 / iOS 9 - libz.dylib Not Found

在 iOS9 中现在找不到 libz.dylib 了,替换的是 libz.tbd,如果要用到 libz.dylib,可以用下面的办法,来自 Stack Overflow。

  1. Go to Build Phases >Link Binary with Librairies > + > Add other
  2. Once in the file selection window do “CMD”+Shift+G (Go to folder) and type /usr/lib/
  3. From /user/lib you can add : libz.dylib and more…
  4. Compile and have fun