Undefined symbols for architecture i386

Discussion of the OCMock framework. If you have patches we would prefer you to send them to the mailing list, but attaching them to a topic is possible, too.

Undefined symbols for architecture i386

Postby guestdj » 16 Mar 2014, 21:24

Hi

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

Thanks
guestdj
 
Posts: 1
Joined: 16 Mar 2014, 21:20

Re: Undefined symbols for architecture i386

Postby lindberg » 22 Mar 2014, 05:19

You are either including your test classes in your main application/framework target, or are not including libOCMock.a into your test case bundle.
lindberg
 
Posts: 8
Joined: 04 Oct 2013, 07:05


Return to OCMock



cron