allending/Kiwi — pull request #167 by sgleadow (2012-11-19 13:23:11+00:00)
Title: Fixing first time build static lib and framework

While I usually use Cocoapods to install Kiwi these days, or the direct xcodeproj dependency, sometimes it's nice to just use the compiled universal static library or framework. The helper target didn't work for me out of the box, so I tweaked the script to work from a completely fresh clone.

Summary of changes:

- it doesn't do a full clean of each target every time (I trust Xcode to get it right most of the time, and delete derived data when it doesn't)
- copies the public headers to the output directory
- links these public headers inside the framework, rather than using a separate "Copy Files" run script that had to be maintained separately, and was missing recently added files
- Makefiles to easily build and install the Framework (where install actually just means copy to somewhere easier to find than derived data, namely a local 'output' directory)
- using schemes rather than target for xcodebuild calls (so all go in derived data)

The result should be two distributable outputs that should work by just dragging them into your project (with some tweaks to "Other Linker Flags"
1) a universal static library and headers directory
2) a universal static framework