ld: library not found for -lz.1.2.3

↘锁芯ラ 提交于 2019-12-03 10:45:30

问题


When trying to compile the software for iOS 5, XCode 4.2 throws an error:

ld: library not found for -lz.1.2.3

I found this post that tells me to replace 1.2.3. with 1.2.5

https://github.com/dbloete/ioctocat/issues/107

After doing what the link has suggested, it worked for XCode 4.2 but fails for older versions for XCode with the error

 ld: library not found for -lz.1.2.5

Has anyone encountered the above situation? How can I resolve this so that it will not fail between the different versions of SDK?


回答1:


Just use -lz, there's no need to use the versioned link to it. So remove libz-1.2.5.dylib from frameworks and add libz.dylib.



来源:https://stackoverflow.com/questions/7815174/ld-library-not-found-for-lz-1-2-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!