1、Write pod file — Add pod into your project
Attention:OCMock need to be added to the test target
Then,install your pods
2、Set header search path in test target
3、Set other linker flag to -ObjC
4、You can start use OCMock in you unit test!