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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.dyliborlibxml2.2.dylib.Generally libraries respect the semantic versionning, meaning that:
So if
libxmlrespect this semantic versioning (and I guess is does, like quite every standard library), every version2.2.x.yoflibxmlis API-compatible with any other2.2.x.yversion and will continue to work with your program. A hypothetic new versionlibxml2.2.x.zwill simply fix bugs, but won’t introduce any change in its API. And when a version oflibxml2.3.x.ywill arise, it will still be backward compatible with2.1and2.2too (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 latest2.x.y.zversion available in the current SDK. Or link withlibxml2.2.dylibwhich will point to the latest2.2.x.yversion (these are symbolic links to the latest versions, as all UNIX-like OSes use to do)