XCode中的单元测试

Sma*_*soe 2 iphone xcode unit-testing

我正在尝试测试我在XCode中使用SenTest编写的一些模型类.我已将模型头和实现文件拖到目标中的Compile Sources组中LogicTests,并且我的测试通过了.但问题是,我收到大量编译器警告,没有规则来处理文件,例如:

warning: no rule to process file '$(PROJECT_DIR)/Speaker.h' of type sourcecode.c.h for architecture i386
Run Code Online (Sandbox Code Playgroud)

如果我从Compile Sources组中删除标头和实现文件,则测试不会通过.

我在这里配置错误了什么?

Aar*_*ers 5

你不需要在"编译源代码"中包含标题

如果您在xcode中查看目标成员资格,您将看到头文件是必需的,不应包括在内