I am having this problem with the libxml2 framework for at least 2 days. Even though there are plenty solutions on the web, none of them seem to work for me. This is what I have attempted so far.
1) Right click Frameworks and add existing Frameworks. Located the libxml2/libxml2.2 and added it into the Frameworks.
2) Clicked Projects -> Edit Project Settings and locate 2 sections: Search Paths and Linking.
3) In Search Paths I typed this in the following line: Header Search Paths: $(SDKROOT)/usr/include/libxml2
4) In Linking I typed this in the following line: Other Linker Flags: -lxml2
I have done all these steps as seen online. I am still getting errors. My Xcode version is 3.2.6. Do you think I have to re-install Xcode again and try again?
Thanks in advance!
Ok guys, I solved this problem already partly thanks to Jano as well.
So this is what I did.
And it is solved! The weird experiment I tried again was to install Xcode 3.2.6 only to find the same 16 errors on the libxml2.2.dylib. So Xcode 4 works, Xcode 3 failed. Therefore, time to get use to Xcode 4!