OCMock example Example project to demonstrate the issue described in this question on Stack Overflow. Usage Clone the repository Run pod install Open OCMockExample.xcworkspace Run the tests (Command + U)