dimanche 8 mars 2015

"alloc init" on WKInterfaceController subclass from XCTestCase crashes

I'm trying to write unit tests for my WatchKit code. I followed the instructions in this article under Debugging and Unit Testing for setting up tests for my WatchKit code.


The only thing, is that, while I'm writing an XCTestCase subclass to unit test one of my WKInterfaceControllers, when the line is executed where I alloc/init it, EXEC_BAD_ACCESS crash.



- (void)testAwakeWithContext
{
//CRASH on this line
WKInterfaceController *interfaceController = [[WKInterfaceController alloc] init];
}

Aucun commentaire:

Enregistrer un commentaire