OCMock 3.0.2 linker error with .mm test file
I am using OCMock 3.0.2, which I've installed through cocoapods for my test target: platform :ios, '7.0' xcodeproj 'myProject.xcodeproj' target :myTestTarget do pod 'OCMock', '~> 3.0.2' end link_with "myTestTarget" In my test file (myTest.mm), I've included OCMock and want to try out the new verify-in-place strategy, like so: - (void) test_myTest { MyObject *obj = [MyObject new]; id robotMock = OCMPartialMock(obj); [obj testMethod]; // some asserts OCMVerify([obj _internalMethodToBeCalled]); } So far seems normal. However, when I tried to run this specific test case, I am getting linker error: