I have an XCode4 / iOS project with the usual goal and unit test. Everything works fine, except when I try #import one of my classes in my test class and try to use it. If I try to create a unit test target, I get the following link error:
Undefined symbols for architecture i386: "_OBJC_CLASS_$_FRRCategory", referenced from: objc-class-ref in CategoryTests.o ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status
In CategoryTests.m, I import the header file as follows:
#import "../todoro/FRRCategory.h"
What am I doing wrong?
unit-testing xcode4 linker-errors ocunit
cfischer Apr 25 2018-11-21T00: 00Z
source share