Page 1 of 1

Undefined symbols for architecture i386

PostPosted: 16 Mar 2014, 21:24
by guestdj

Not sure why but I am experiencing a problem building my test project that references OCMock:
When I run tests project; it fails to build with the following error:

Undefined symbols for architecture i386:
"_OBJC_CLASS_$_OCMockObject", referenced from:
objc-class-ref in ControllerTests.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I'm using Xcode 5.1 and I am using the latest version of libOCMock.a (2.2.3)

I'm not 100% sure but I think it might be since I upgraded Xcode to 5.1


Re: Undefined symbols for architecture i386

PostPosted: 22 Mar 2014, 05:19
by lindberg
You are either including your test classes in your main application/framework target, or are not including libOCMock.a into your test case bundle.