使用GHUnit编译单元测试的架构问题

yok*_*kks 8 iphone gh-unit ios xcode4.5

我正在使用Xcode 4.5.

最近我下载了GHunit框架并通过以下链接进行设置.

在编译目标时,我得到下面提到的错误.需要你宝贵的建议.

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)
Run Code Online (Sandbox Code Playgroud)

A-L*_*ive 24

CACurrentMediaTimeCABase.hQuartzCore框架中声明并实现,您需要将其链接到项目.

  • 你是对的.该错误是由于QuartzCore框架没有链接.让我为你投票. (2认同)