Swift 2 / iOS 9 - libz.dylib not found

前端 未结 8 1167
小蘑菇
小蘑菇 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:14

    You can add libz.1.dylib from location:/usr/lib/

    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.1.dylib

    It worked for me.

提交回复
热议问题