Is it possible to unit test a static library project using XCode's SenTestingKit?

后端 未结 4 1602
不知归路
不知归路 2021-01-04 06:33

I\'ve created an iOS unit test target for doing logic tests following the steps provided in Apple\'s documentation.

However my build fails and i get the following e

4条回答
  •  迷失自我
    2021-01-04 07:02

    I actually just solved it. I had to copy all of the .m files in my project to the LogicTest target's 'Compile Sources'. As well as add the frameworks the sources reference to the 'Link Binary With Libraries' section of the target.

    I hope this helps others

提交回复
热议问题