Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

architecture issue on compiling unit test using GHUnit

Am using Xcode 4.5.

Recently i have download GHunit framework and setup it by following link.

On compiling the target, am getting the error mentioned below. need your valuable suggestion.

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)
like image 563
yokks Avatar asked Nov 02 '12 05:11

yokks


2 Answers

CACurrentMediaTime is declared at CABase.h and implemented at QuartzCore framework, you'll need to link it to the project.

like image 118
A-Live Avatar answered Sep 26 '22 07:09

A-Live


In our mobile application development course at school, we have been using this tutorial http://www.raywenderlich.com/3716/unit-testing-tutorial-for-ios-xcode-4-quick-start-guide

And It does not Run without the QuartzCore.framework as well, so thank you very much !

like image 26
Renegade_Mtl Avatar answered Sep 26 '22 07:09

Renegade_Mtl