在 iPhone 模拟器 3.2 中运行时应用程序崩溃(在模拟器 3.0 中运行良好)

发布于 2024-09-06 03:15:37 字数 445 浏览 0 评论 0原文

我刚刚升级到 SDK 3.2。我的应用程序在模拟器 3.0 中以调试模式运行,但是当我将模拟器更改为使用 3.2 运行时,它会因 EXEC_BAD_ACCESS 崩溃。

它在 objc_msgsend 方法处崩溃。

int main(int argc, char *argv[]) {

NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil); <======== THE STACK TRACE starts here.
[pool release];
return retVal;

}

知道发生了什么吗? 我完全不知道。任何帮助/建议将不胜感激?

谢谢 一个

I just upgraded to SDK 3.2. My application runs in Simulator 3.0 in debug mode but when I change the Simulator to run with 3.2 it crashes with EXEC_BAD_ACCESS.

It is crashing at objc_msgsend method.

int main(int argc, char *argv[]) {

NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil); <======== THE STACK TRACE starts here.
[pool release];
return retVal;

}

Any idea what is going on?
I have absolutely no clue. Any help/suggestion will be greatly appreciated?

Thanks
A

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

傲影 2024-09-13 03:15:38

您可能正在使用已弃用的代码。

您显示的堆栈跟踪是主应用程序循环 - 这并没有多大帮助。您需要进一步查看堆栈。查找您编写的代码,看看其中可能存在什么问题。

您可能正在尝试使用不正确的格式化程序来记录某些内容。例如: NSLog(@"%@", 55); (55 是一个整数,而不是一个字符串)。也许您正在尝试修改一个不可变的对象。

您可以发布更多堆栈(或整个内容)以便我们可以看到吗?您编写的代码在这里也可能有帮助。

It is likely that you are using deprecated code.

The stack trace you have shown is the main application loop - that is not really helpful. You need to look further up the stack. Look for code that you wrote and see what may be wrong with it.

You could be trying to log something with improper formatters. for example: NSLog(@"%@", 55); (55 is an integer,not a string). Maybe you are trying to modify an immutable object.

Would you please post more of the stack (or the whole thing) so we can see it? The code that you wrote may help here too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文