Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You shouldn't have to copy in GDataXMLNode.h and GDataXMLNode.m to your project. I believe the reason you are getting the duplicate symbol error is because the libGDataTouchStaticLib.a library already contains the compiled GDataXMLNode.m class.</p> <p>I am currently using the GData library in a project I am working on, and got it set up by using these instructions: <a href="http://hoishing.wordpress.com/2011/08/23/gdata-objective-c-client-setup-in-xcode-4/" rel="nofollow">http://hoishing.wordpress.com/2011/08/23/gdata-objective-c-client-setup-in-xcode-4/</a>, so this answer assumes that you have the same setup. However I have used a slightly different way of importing the headers that was suggested by one of the comments on the above blog.</p> <p>In your Xcode project remove the GDataXMLNode.h and GDataXMLNode.m files, and make sure that the GData.xcodeproj project is linked into your project the same way as in the above blog, but <strong>do not</strong> drag the headers directory to your source tree. Add these arguments to the Debug and Release Header Search Paths of your current target instead:</p> <pre><code>/usr/include/libxml2 ${BUILT_PRODUCTS_DIR}/Headers </code></pre> <p>You can find this under the Build Settings tab of your target. The second argument will import all the GData headers into your project if you have set up the GData.xcodeproj file correctly. Once you have done this you should be able to import the various GData classes including GDataXMLNode.h class wherever you need it by typing this at the top of the appropriate class:</p> <pre><code>#import "GDataXMLNode.h" </code></pre> <p>Much credit goes to Kelvin's blog for his great tutorial. Hope that helps!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload