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?
thanks
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
.
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.
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:
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).
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With