Swift 2 / iOS 9 - libz.dylib not found

前端 未结 8 1183
小蘑菇
小蘑菇 2020-12-04 10:49

I\'m using some external codes from google in my new Swift 2.0 project that required \"libz.dylib\" in earlier versions. After updating to the new Xcode / the new SDK.

8条回答
  •  被撕碎了的回忆
    2020-12-04 11:35

    I had the same problem. I found some kind of way around.

    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 /usr/lib you can add : libz.dylib and more...
    4. Compile and have fun

提交回复
热议问题