Xcode 5 - How to add Header Search Path and use GDataXMLNode

前端 未结 2 2011
暖寄归人
暖寄归人 2020-12-18 01:02

I am trying to use GDataXMLNode to parse an XML file. I am following the tutorial on this blog:

http://www.raywenderlich.com/725/xml-tutorial-for-ios-how-to-read-an

相关标签:
2条回答
  • 2020-12-18 01:31

    It's quite easy, follow instruction but remember that GDataXMLNode does not support ARC. You can do the same instruction as Andrey. But I think it should be located in a sub-project, for example: Library.xcodeproj. If you want to organize your code formally.

    Firstly, create Library.xcodeproject, add GDataXMLNode. In Build Settings, you also include "Header Search Path" and "Other Linker Flags". But don't forget that GDataXMLNode does not support ARC. Go to Build Phrases, under Compile Sources menu look for GDataXMlNode.m set a Compiler Flag for it with: -fno-objc-arc Compiler Flag for not approve ARC Now, for any sub-project you want to use this library, just go to Build Settings, in User Header Search Path properties choose: ../IPLibrary/** or ../IPLibrary and choose rescursive option. Set header search path to use library Now you can include GDataXMLNode. By the way, your project looks more professional, due to lib and source code is split separately. Good luck.

    0 讨论(0)
  • 2020-12-18 01:35

    You should select "All" in Project Settings to show all the parameters, including "Header Search Paths" and "Other Linker Flags".

    The image to show "All"

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