应用程序在 4.2 上运行良好,但在 4.3.3 上无法运行 - iPhone
嘿!
我的项目 SIGABRT 中遇到一些令人困惑的问题?
程序收到信号 SIGABRT?
这在模拟器中工作正常,只是在设备中存在问题。还尝试安装应用程序并使用 xcode 在设备上直接构建。
调试器显示问题出在以下 main.m 文件中:
#import <UIKit/UIKit.h>
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil); // SIGABRT on this line
[pool release];
return retVal;
}
我无法在这段代码中找到问题?
请帮忙!
Hey!
Run in to some confusing problems in my project, SIGABRT ?
The program received signal SIGABRT?
This works fine in simulator only having problem in device. Also tried to install the application and direct build on device using xcode.
Debugger shows that the problem was in the following main.m file:
#import <UIKit/UIKit.h>
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil); // SIGABRT on this line
[pool release];
return retVal;
}
I can't se the problem in this code?
Please help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SIGBART 消息通常是访问已释放对象或某些其他内存管理问题的提示。问题很可能不在您的主程序中,而是在代码的其他地方。
首先我会清理所有目标并再试一次。如果这没有帮助,我会检查我的方便分配器和所有释放/释放或使用仪器和 NSZombie 运行测试。
The SIGBART message often is a hint to accessing an deallocated object or some other memory-management problem. The Problem is most likely not in your main but somewhere else in the code.
At first i would clean all targets and give it another try. If that doesnt help i would check my convenient-allocators and all releases/deallocs or run a test with instruments and NSZombie.