This was actually pretty easy. Go to this web site

https://github.com/jonreid/OCMockito

Download the zip releases from each of these frameworks

https://github.com/jonreid/OCMockito/releases/
https://github.com/hamcrest/OCHamcrest/releases/tag/v4.2.0

Expand them and drag in the iOS framework into your project.

Screen Shot 2015-10-01 at 8.28.56 AM

Note: When you drag libraries in, you want the libraries, not the source code.

Screen Shot 2015-11-13 at 10.19.47 AM

Screen Shot 2015-11-13 at 10.19.57 AM

And when you drag them in, make sure you add them to the Test Group

Screen Shot 2016-04-05 at 9.15.18 AM.png

So it should look like this.

Screen Shot 2015-11-13 at 10.21.36 AM

And then set the ‘Other linker flags’ by double clicking on your blue project icon.

Screen Shot 2015-10-01 at 8.29.55 AM

Note: Flip to your test project target, as this is where we want to add our linker flags.Screen Shot 2016-09-11 at 2.39.50 PM.png

 

Then goto ‘Build Settings’ and type ‘Other linker flags’ in the search box and add ‘-ObjC’ to both the debug and release.

Screen Shot 2015-10-01 at 8.31.03 AM

Note: Make sure you get the LATEST libraries.

That’s it for setup. Next post I will see if I can get an example going.