【发布时间】:2015-03-08 12:39:38
【问题描述】:
我正在尝试为我的 WatchKit 代码编写单元测试。我按照调试和单元测试下article 中的说明为我的 WatchKit 代码设置测试。
唯一的问题是,当我编写一个 XCTestCase 子类来对我的一个 WKInterfaceControllers 进行单元测试时,当在我分配/初始化它的位置执行该行时,EXEC_BAD_ACCESS 崩溃。
- (void)testAwakeWithContext
{
//CRASH on this line
WKInterfaceController *interfaceController = [[WKInterfaceController alloc] init];
}
【问题讨论】:
标签: ios unit-testing watchkit