First I needed to set Library search path
and Header search path
as shown in Adding OCMock->step 3
in this link.
After that to solve my Undefined symbol
error, I had to add all classes to test target. To see how to add files to a specific target, look at SO question.