2.12.2012

How To Make GDataXMLNode Work

To use GDAtaXMLNode, both the .h and .m files must be added to your code. Then do the following:
  1. Select the project.
  2. Select Build Phases tab.
  3. Expand Link Binary With Libraries. Click +.
  4. Locate libxml2.dylib then click Add.
  5. Select Build Settings tab.
  6. Under Search Paths > Header Search Paths, Select Debug then click on the little white circle with the blue plus sign inside.
  7. On the value field, enter "/usr/include/libxml2" without the quotation mark.
  8. 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.
  9. Repeat step 8, select Any SDK.
  10. Under Search Paths > Header Search Paths, Select Release then click on the little white circle with the blue plus sign inside.
  11. Repeat steps 7 to 9 for Release.
If your code is using Automatic Reference Counting (ARC) do the following:
  1. Select Build Phases tab.
  2. Expand Compile Sources.
  3. Select GDataXMLNode.m then press Enter.
  4. On the small input box that pops-out, enter -fno-objc-arc.
And you are done! :)

No comments:

Post a Comment