我正在尝试为我的iOS应用编写测试用例。但是,SenTesting框架似乎存在一些问题。我收到以下错误:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SenTestCase", referenced from:
_OBJC_CLASS_$_testSmartDiary in testSmartDiary.o
_OBJC_CLASS_$_testAddTask in testAddTask.o
_OBJC_CLASS_$_testAddContacts in testAddContacts.o
"_OBJC_METACLASS_$_SenTestCase", referenced from:
_OBJC_METACLASS_$_testSmartDiary in testSmartDiary.o
_OBJC_METACLASS_$_testAddTask in testAddTask.o
_OBJC_METACLASS_$_testAddContacts in testAddContacts.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我不知道出了什么问题。我添加了SenTestingFramework。它可能正在发生,因为我使用两台不同的机器来开发同一个项目。我需要指定一些路径吗?我阅读了这里给出的解决方案:iOS: Linker errors with OCUnit integration 但是每次切换机器时删除目标并再次添加东西是不可行的。对此有永久的解决方案吗?请帮忙