开发者

Application crashes when running in iPhone simulator 3.2 (Works fine in simulator 3.0)

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 ma开发者_运维知识库in(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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜