每当我运行单元测试应用程序以查找是否存在 appdelegate 时,都没有使用测试套件
-(void)testAppDelegate
{
id app_delegate=[[UIApplication sharedApplication]delegate];
STAssertNotNil(app_delegate,@"delegate not found");
}
我得到了这个错误。请帮忙。
“_OBJC_CLASS_$_UIApplication”,引用自:
objc-class-ref-to-UIApplication in Tests.o
ld:未找到符号
collect2: ld 返回 1 个退出状态