iOS6 没有 libxml2.2.7.3.dylib.有没有替代品? [英] iOS6 does not have libxml2.2.7.3.dylib.are there any substitutes?

查看:21
本文介绍了iOS6 没有 libxml2.2.7.3.dylib.有没有替代品?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 xcode4.2 中创建了一个项目,当我使用 xcode4.5 打开它时,iOS 6 SDK 出现错误 255,原因似乎是缺少 libxml2.2.7.3.dylib.

I have made a project in xcode4.2 and when i opened it with xcode4.5 ,iOS 6 SDK it gives error 255 and the reason seems to be absence of libxml2.2.7.3.dylib.

我有哪些选择,还有其他替代品吗?

What are my options is there any other substitute provided?

谢谢

推荐答案

Xcode 4.5,或者更准确地说是 iOS6 SDK(因为可用的库依赖于 SDK,而不是 Xcode 版本)仍然有 libxml2.2.dylib.

Xcode 4.5, or more precisely the iOS6 SDK (because the libraries available are dependent of the SDK, not the Xcode version) still has libxml2.2.dylib.

这可能不是 2.2.7.3 版本,而是现在嵌入 SDK 中的更新的最新 2.2.x.y 版本.

It is just probably not the version 2.2.7.3 but a newer, up-to-date 2.2.x.y version that is embedded in the SDK now.

您通常不应该将您的应用程序与此类库的特定版本链接,而最好使用诸如 libxml2.dyliblibxml2.2.dylib 之类的通用版本代码>.

You should generally not link your application with a specific version of libraries like that, but better with a generic version like libxml2.dylib or libxml2.2.dylib.

通常库尊重语义版本控制,这意味着:

Generally libraries respect the semantic versionning, meaning that:

  • 仅当 API 与以前的主要版本不向后兼容时,它们的主要版本才会更改,
  • 次要版本仅在 API 中引入新方法时才会更改,但仍与以前的 API 兼容,
  • 补丁版本意味着已经修复了一些错误,但 API 没有改变.

因此,如果 libxml 尊重这种语义版本控制(我猜是这样,就像几乎每个标准库一样),libxml 的每个版本 2.2.xycode> 与任何其他 2.2.xy 版本的 API 兼容,并将继续与您的程序一起使用.假设的新版本 libxml2.2.x.z 将简单地修复错误,但不会对其 API 进行任何更改.并且当 libxml2.3.xy 的一个版本出现时,它仍然会向后兼容 2.12.2(只是添加新功能但不会删除现有的).

So if libxml respect this semantic versioning (and I guess is does, like quite every standard library), every version 2.2.x.y of libxml is API-compatible with any other 2.2.x.y version and will continue to work with your program. A hypothetic new version libxml2.2.x.z will simply fix bugs, but won't introduce any change in its API. And when a version of libxml2.3.x.y will arise, it will still be backward compatible with 2.1 and 2.2 too (just adding new features but not dropping the existing ones).

因此,您可以安全地将您的应用程序与通用库版本 libxml2.dylib 链接,后者将自动指向可用的最新 2.xyz 版本 在当前 SDK 中.或者与 libxml2.2.dylib 链接,后者将指向最新的 2.2.xy 版本(这些是最新版本的符号链接,因为所有类 UNIX 操作系统都使用做)

Thus, you can safely link your application with the generic library version libxml2.dylib, which will automatically point to the latest 2.x.y.z version available in the current SDK. Or link with libxml2.2.dylib which will point to the latest 2.2.x.y version (these are symbolic links to the latest versions, as all UNIX-like OSes use to do)

这篇关于iOS6 没有 libxml2.2.7.3.dylib.有没有替代品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆