Confused by earlier errors - Bailing out
I am getting an unusual error whe开发者_运维百科n I try building or running my iphone game.
//GameScene.mm
- (void) onExit
{
if(!([SimpleBox2dScrollerAppDelegate get].paused)) //error comes here
{
[SimpleBox2dScrollerAppDelegate get].paused = YES;
[super onExit];
}
}
// SimpleBox2dScrollerAppDelegate.mm
+(SimpleBox2dScrollerAppDelegate *) get {
return (SimpleBox2dScrollerAppDelegate *) [[UIApplication sharedApplication] delegate];
}
What might be the reason?
It is nothing , probably you get a number of errors after that you did changes and get this kind of error.
follow thes steps it may be solve your problem.
-Delete the app from simulator. -clean the all target. -empty cache. -delete build
Now try to run.
精彩评论