Has anyone tried using OCMock test framework with XCTest framework? We were using OCMock test framework with SenTest framework and ever since we migrate from SenTest to XCTest, OCMock tests stops compiling. I know, XCTest does not have in-built support for OCMock test framework and below are the steps I have tried with by far:
- Go to Edit --> Refactor --> Convert to XCTest.
- Add XCTest framework to the test target.
- Go to Editor --> Add Build Phase --> Add Copy Files Build Phase
- Add the OCMock framework to the Copy Files build phase.
- Set the copy destination to the Products Directory.
After doing all this XCode is not able to locate the OCMock test framework and is complaining the same while compilation.
Any suggestions.