iphone 项目中添加 libxml2 的xcode设置

yihaoxue 2011-02-17

1.添加 libxml2 frameworks

   xcode中右击 "FrameWorks" ->Add->Add existing FWrameorks ,选择 "DyLibs",在其中选取libxml2 的dylib包,我选取的是 libxml2.2.7.3.dylib ,Add 即可

2.设置"Header Search Paths"

  在xcode中project->edit project settings->build 找到 "search paths",然后在Header Search Paths中添加

/usr/include/libxml2

 这样添加也可以:

/Developer/Platforms/iPhoneOS.platform/Develope/SDKs/iPhoneOS4.0.sdk/usr/include/libxml2
 

相关推荐