(メモ)GHUnitを導入する
参考その1:http://tech-gym.com/2011/08/objective-c/481.html
参考その2:http://alpha.mixi.co.jp/2012/10858/
上記の補足として、Testフォルダ内のmain.mを下記のようにする。
#import <UIKit/UIKit.h> #import <GHUnitIOS/GHUnitIOSViewController.h> int main(int argc, char *argv[]) { @autoreleasepool { int retVal; if(getenv("GHUNIT_CLI")) { retVal = [GHTestRunner run]; } else { retVal = UIApplicationMain(argc, argv, nil, @"GHUnitIOSAppDelegate"); } } }
追記
CACurrentMediaTime()が定義されてない!って怒られたので、ライブラリにQuartzCore.frameworkを追加しましょう。