开发者

Unit test project failing due to reference issues

开发者 https://www.devze.com 2023-01-18 06:16 出处:网络
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:

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

精彩评论

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