ld:找不到 -lz.1.2.3 的库
当尝试为 iOS 5 编译软件时,XCode 4.2 抛出错误:
ld: library not found for -lz.1.2.3
我发现这篇文章告诉我替换 1.2.3。与 1.2.5
https://github.com/dbloete/ioctocat/issues/107
执行链接操作后有人建议,它适用于 XCode 4.2,但对于旧版本的 XCode 则失败,并出现错误
ld: library not found for -lz.1.2.5
有人遇到过上述情况吗?如何解决这个问题,才不会在不同版本的SDK之间失败?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需使用 -lz,无需使用版本链接。因此,从框架中删除 libz-1.2.5.dylib 并添加 libz.dylib。
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.