I'm trying to plunge into the completely frankly awful world of unit testing using Xcode (such a confusing process seems.)
I basically have this test class, trying to test the Show.h class
However, when I try to build and run my tests, it groans with this error: -
Undefined characters:
"_ OBJC_CLASS _ $ _ Show" referenced by:
__objc_classrefs__DATA@0 in ShowTest.o
ld: character not found
collect2: ld returned 1 exit status
Now I assume that this is a communication error. I tried to follow every step in the instructions located here: -
http://github.com/gabriel/gh-unit/blob/master/README.md
And step 2 of these instructions confused me: -
In the Tasks Tests window, the General tab:
Add the linked library in the Mac OS X 10.5 SDK section, select GHUnit.framework
Add a linked library, select your project.
Add a direct dependency and select your project. (This will lead to the creation of your application or framework before testing.)
How can I add my project to the list of linked libraries when it accepts its .dylib, .framework and .o files?
objective-c unit-testing linker xcode gh-unit
djhworld Apr 09 '10 at 20:25 2010-04-09 20:25
source share