I am trying to add OCMock to my current project using the instructions at
ocmock.org .
- Added library and project headers.
- Be sure to be
libOCMock.aadded to my test target. - Added search path to header files in
Header Search Pathsunder Build Settingsfor test purpose. - Flags added
-force_load, PATH/TO/libOCMock.aand -ObjCin Other Linker Flags(also to test target). - Finally, I import the headers into the test class as follows:
#import <OCMock/OCMock.h>
The first thing that happens is that Xcode complains that it will not find the headers. If I continue and try to build a test target, I get an error: OCMock/OCMock.hnot found.
When I check the output of the assembly, I can assume that it adds the correct search path: -I/Users/username/Development/proj/iphone/frameworks/OCMock_2_0_1/headers
When I list the path in the terminal, I can clearly see the files there.
Any help or pointers in the right direction would be greatly appreciated. <3
source
share