I want to use CHDataStructures as framework: https://github.com/davedelong/CHDataStructures. However there is no binary of the project.
So I assume I have to build the .a file myself using xcode. How do I do that in xcode 4? I read the documentation but it is very confusing...
Any ideas?
First we'll grab the CHDataStructures project:
Next, open the relevant CHDataStructures xcode project
I'll assume you're building for iOS from here on out (and mention what will be different for a mac app). Once xcode is up and running, ensure that
iOS Static Libraryis selected in theschemedrop-down, and then hitrun. Once done, xcode has built the binary for you, and you'll be able to find it inProductsin the navigator. Open the required binary (for iOS it's the compiled.abinary, for Mac it's the.frameworkcollection).Finally (expanding on the documentation):
libCHDataStructures.aand the library header files (all the.hheader files in theframeworksubdirectory from the xcode project above) to your project by dragging them to the "Groups & Files" pane of your xcode project.