我的问题是我正在尝试从 SenTesking Kit 测试一些东西。
-(void)testStoryboard {
storyBoard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
STAssertNotNil(storyBoard, @"Can't access the storyboard");
}
我还添加了 UIMainStoryboardFile 到 DemoTests.plist 但我得到了这种错误:
error: testStoryboard (DemoTests) failed: Could not find a storyboard named 'MainStoryboard'
in bundle
NSBundle</Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/Developer/usr/bin> (loaded)