LibXML2.dylib and Xcode4

前端 未结 11 798
执念已碎
执念已碎 2020-12-05 01:14

I just downloaded Xcode 4 and I cant seem to run my application as the MGTwitter... classes are complaining of a non inclusion error of LibXML2. I have imported it into the

相关标签:
11条回答
  • 2020-12-05 01:43

    I think the selected answer is better. However this one worked for me: enter image description here

    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.

    0 讨论(0)
  • 2020-12-05 01:48

    You need to add also the framework libxml2.dylib

    0 讨论(0)
  • 2020-12-05 01:52

    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.

    0 讨论(0)
  • 2020-12-05 01:54

    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

    0 讨论(0)
  • 2020-12-05 01:54

    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.

    0 讨论(0)
  • 2020-12-05 01:57

    Make User Header Search paths empty and write

    $(SDK_DIR)"/usr/include/libxml2

    in Header Search paths which is above the Library Search Paths

    0 讨论(0)
提交回复
热议问题