关于l ibrary not found for -lz.1.2.3 编译错误
生活随笔
收集整理的這篇文章主要介紹了
关于l ibrary not found for -lz.1.2.3 编译错误
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
今天在下載一個Demo編譯時,提示如下錯誤
ld: library not found for -lz.1.2.3 collect2: ld returned 1 exit status Command /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
lz.1.2.3指的是libz.1.2.3.dylib動態庫文件,這是因為iOS5以后,也就是xcode4.2以后就沒有libz.1.2.3.dylib了,取而代之是libz.1.2.5.dylib;
解決辦法:刪除libz.1.2.3.dylib,添加libz.1.2.5.dylib,運行成功,如果直接在原來工程上添加libz.1.2.5.dylib,仍會編譯錯誤,所以要刪除libz.1.2.3.dylib;
轉載于:https://blog.51cto.com/duxinfeng/1208685
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的关于l ibrary not found for -lz.1.2.3 编译错误的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 计算机视觉整理
- 下一篇: 数据交互智能终端设想