开发者

Unit test project failing due to reference issues

I have a unit test to test one of my model classes and I get the follow error when I try building u开发者_开发百科nit test target:

"_OBJC_CLASS_$_NSMyClass", referenced from: objc-class-ref-to-NSMyClass in LogicTests.o ld: symbol(s) not found collect2: ld returned 1 exit status

I have setup my unit tests as Apple recommends i.e. separate targets.

Does anyone know what I am doing wrong?


Have you included the source under test (in addition to the test cases) in the test case target?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜