Most of the weblog posts online have excellent discussions of adding OCMock to iOS apps wherein one adds the libOCMock.a and the public header files - and away you go.
However, the following steps in a Cocoa app fail:
- 1. Xcode 4.5, Select Unit test target > Link Binary With Libraries > add OCMock.framework
2. Setup copy files build phase to copy OCMock.framework to Frameworks directory
3. Set copy frameworks (#2 above) to execute before Run Script build phase
4. Product > Test
5. Note tests succeed even with known failing tests. Build log transcript states:
RunUnitTests exited without running because TEST_AFTER_BUILD was set to NO
6. Repeat steps 1-4 after setting Test After Build to YES on unit test target results in build error:
Test rig '/Applications/Xcode.app/Contents/Developer/Tools/otest' exited abnormally with code 5 (it may have crashed).
If someone will kindly point me in the right direction, I'd be happy to write up the documentation.
