Friday, April 1, 2011

Add libXML2 into iPhone Project in Xcode 4

XCode 4 changed a lot, I'm kind of blind in its new UI. I cannot find where to add framework, even cannot figure out how to change newly added group's name. After some google, finally find the way.

Step 1: add libxml2.dylib

1. Click your project (XmlTest) in the left navigator bar.
2. Select the target (XmlTest), then select "Build Phases" tab.
3. Expand "Link Binaries With Libraries"
4. Click "+", select libxml2.dylib





Step 2: add libxml2 in header search path
1. still in thie page, select "Building Setting".
2. Expand "Search Path", find "Header Search Paths", add"usr/include/libxml2"


1 comments:

cmar said...

Thanks, this is exactly what I was looking for