Xcode4.5の環境でGHUnit

GHUnit本家のインストール手順がうまく動かなかったのでメモ。

最初、frameworkのアーカイブを直接落としてきて入れたのだけど、なんかおかしい。
色々調べたらこんな記事を見つけた。
http://akisute.com/2012/01/jenkins-ios-ghunit.html
なので
https://github.com/gabriel/gh-unit
からzipでまるごと落としてきて

$cd gh-unit-master/Project-iOS/
$make

でできたGHUnitIOS.frameworkを追加。
それでもまだエラーが出る。

Undefined symbols for architecture i386:
      "_CACurrentMediaTime", referenced from:
          _GHRunForInterval in GHUnitIOS(GHTestUtils.o)
          _GHRunUntilTimeoutWhileBlock in GHUnitIOS(GHTestUtils.o)
    ld: symbol(s) not found for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

どんぴしゃのトピックがstackoverflowにあった。
http://stackoverflow.com/questions/13189752/architecture-issue-on-compiling-unit-test-using-ghunit
QuartzCore入れれば治るよと書いてあるので、build phasesのLink Binary With Libraries からQuartzCoreをリンク。
動くようになった!