Launching tools from Xcode project on iPhone using libxml2 fails

I am getting a crash when launching an iPhone application that uses libxml2 in tools from Xcode. Ideas for a cause? Ultimately, this reason is given:

Reason: Incompatible library version: Foundation requires version 10.0.0 or later, but libxml2.2.dylib provides version 9.0.0

      

+1


a source to share


3 answers


I have confirmed that if you are referencing version 3.0 or 3.1 versus SDK-relative libxml2.dylib the tools work fine.



I am left to believe that the glitch in 2.2.1 is just a bug in this version that should have been a one-time bug.

0


a source


For me, this happens when I compile a 2.2.1 app for the Simulator, then switch the Simulator version to 3.0, then launch the app from the Simulator. My application crashes with the same error as yours.



[Update] Finally, this only happens on the simulator, not the iPhone.

0


a source


Same behavior here. A touch of the tool on the simulator, but not on the iPhone, so this is not a solution, but at least a work around.

And it works on both simulator and iPhone if I compile to 3.0 SDK

0


a source







All Articles