- Select the project.
- Select Build Phases tab.
- Expand Link Binary With Libraries. Click +.
- Locate libxml2.dylib then click Add.
- Select Build Settings tab.
- Under Search Paths > Header Search Paths, Select Debug then click on the little white circle with the blue plus sign inside.
- On the value field, enter "/usr/include/libxml2" without the quotation mark.
- Click the icon with two little black triangles, which is on the left of the little white circle with blue minus sign inside, then select Any architecture.
- Repeat step 8, select Any SDK.
- Under Search Paths > Header Search Paths, Select Release then click on the little white circle with the blue plus sign inside.
- Repeat steps 7 to 9 for Release.
If your code is using Automatic Reference Counting (ARC) do the following:
- Select Build Phases tab.
- Expand Compile Sources.
- Select GDataXMLNode.m then press Enter.
- On the small input box that pops-out, enter -fno-objc-arc.
And you are done! :)