October 7th, 2013
XCTest does not currently have built-in support for mock objects so you’ll need an external framework like OCMock for mock object support. OCMock versions 2.2 and later work with XCTest. I had only one problem getting OCMock to work with XCTest. When I ran my tests, I would get a warning saying that the test target did not finish. The cause of the warning is Xcode being unable to find the OCMock framework. The fix for this warning is to copy the OCMock framework to the products directory, using the following steps:
Copying the OCMock framework to the products directory should be enough to run your XCTest tests that use OCMock.