Binding libxml2.dylib error in Xcode 3.2.5 and SDK 4.2

I am trying to connect to twitter using oauth library. The library needs to add libxml2.dylib. When you add this to the SDK 4.1 or less, the project completes successfully. But when I use this with xcode 3.2.5 and SDK 4.2, I got errors about missing headers.

I just add libxml2.dylib to the frameworks, then from the target configuration I add "$ {SDKROOT} / usr / include / libxml2" to the header search path.

I got the error: libxml / xmlreader.h: There is no such file or directory.

the oauth twitter library that I am trying to add is Twitter + OAuth, here is a tutorial where you can see that the src project that it has is working correctly on SDK 4.1 and does not even compile in SDK4.2 http: //mobile.tutsplus .com / tutorials / iphone / twitter-api-iphone /

what will i miss

+7
iphone sdk libxml2 mgtwitterengine
source share
3 answers

After several attempts, I found that I need to change the header search path to / usr / include / libxml 2 / ** instead of $ {SDKROOT} / usr / include / libxml2 / **

+18
source share

Select "All configurations" (I prefer project information if I don’t have completely different goals), double-click the header search field, enter the path and make sure the "Recursive" checkbox is selected. The resulting path must have 2 stars. If you specify a title search path for a project, all goals must inherit it properly.

The tutorial you contacted is a bit incompatible with the project / goal settings, which is almost certainly a problem. I checked that xmlreader.h is present in the SDK 4.2.

0
source share

I had the same problem, then I realized that I was adding only the header search path in the target section, and not in the project. Make sure it is on both sides.

0
source share

All Articles