LibXML2.dylib and Xcode4

女生的网名这么多〃 提交于 2019-11-27 18:52:50

Try this:

"$(SDK_DIR)"/usr/include/libxml2

sundsx

LibXML2 library solved

Many confusion around this issue.

SOLUTION

if you have both Xcode 4.3.x & Xcode 4.5 in /Application folder

must add ONLY: /usr/include/libxml2 in Application TARGET > Header search path.

For this double click on the line, on little window click plus sign and write /usr/include/libxml2

nb - need also add libxml2.dylib to the framework. I use 2.2.7.3

hope help you

Chandan
  1. Always search user path mark it yes.
  2. Then, remove all previous paths that you have defined manually.
  3. Clean all target.
  4. Analyze or build again.

This works for me.

If you click on "All" and "Combined" go down to the Search Paths section. Make sure you add $(SDK_DIR)/usr/include/libxml2 to the "Header Search Paths" section and not the "Library Search Paths" section.

You need to add also the framework libxml2.dylib

Ganesh

Make User Header Search paths empty and write

$(SDK_DIR)"/usr/include/libxml2

in Header Search paths which is above the Library Search Paths

I think the selected answer is better. However this one worked for me:

I just drag and drop.

I do not know why it works. It's how the old programmer do it. I suppose there should be a framework we can include and that should be fine?

Also other computers may not have file libxml2.dylib in that exact spot and things may go wrong.

HoNooD

Please try this one:

${SDK_DIR}/usr/include/libxml2
taus-iDeveloper
  1. Get info on the target and go to the build tab
  2. Add -lxml2 to the Other Linker Flags property
  3. Add -I/usr/include/libxml2 to the Other C Flags property

I also faced this issue for xcode4.6 , i added libxml2.dylib in header search path added :: "/usr/include/libxml2" and added "AdSupport.framework" and its work for me.

user991669

You need to add "$(SDK_DIR)/usr/include/libxml2" in "Release" Category rather then in "Debug" Category under "Header Search Path" if you are putting it into a device.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!