开发者

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

开发者 https://www.devze.com 2023-01-03 02:12 出处:网络
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.

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

精彩评论

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

关注公众号