我的应用程序在模拟器中运行得很好,但现在我有开发人员许可证,当我尝试在iPod Touch上运行它时,xcode说GBD: Program received signal: "SIGABRT".
当在ipod touch上运行时,不是模拟器..'程序收到信号SIGABRT'
我该怎么做才能弄清楚问题在这里?建筑时没有警告。
编辑:对不起,这是我第一次在设备上运行应用程序,所以请耐心等待。我只注意到Organizer窗口和调试器给我一个设备上发生了什么的日志。所以这就是问题所在:
[UIApplication setStatusBarHidden:withAnimation:]: unrecognized selector sent to instance 0x1160e0
而且它指的是代码为(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
这是有问题的代码:
'如果(interfaceOrientation == UIInterfaceOrientationLandscapeLeft | | interfaceOrientation == UIInterfaceOrientationLandscapeRight){
self.view = clockView;
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:NO];
return YES;
}
if (interfaceOrientation == UIInterfaceOrientationPortrait) {
self.view = homeView;
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:NO];
return YES;
}
if (interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown) {
self.view = homeView; [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:NO];
return YES;
}
else {
return YES;
}
`
运行在调试模式,那么它至少应该告诉你哪一行是造成SIGABRT 。 – vmpstr 2011-01-27 11:49:37