OCMock is a implementation of mock objects in Objective-C available from http://www.mulle-kybernetik.com/software/OCMock/ This branch adds a static library built target for iPhone OS projects to link against.
git clone ...
orgit submodule add ...
this repository into your project.- In Xcode's preferences' "building" tab place build products in a customized location and intermediate build files in with build products (or add the appropriate build folders to your projects library search path).
- Add "OCMock.xcodeproj" to your project.
- Add the "libOCMock.a" library as a direct dependency of your build target and to your target's "link binary with libraries" build phase.
- Add
-ObjC
,-all_load
, and-lstdc++
to your build target's "Other Linker Flags" #import <OCMock/OCMock.h>