开发者

iPhone simulator => debugging terminated

开发者 https://www.devze.com 2022-12-13 00:07 出处:网络
开发者_开发问答When I start my iPhone application it boots up fine, shows the first settings screen and all after I have given input and pressed save, the debug window says

开发者_开发问答When I start my iPhone application it boots up fine, shows the first settings screen and all after I have given input and pressed save, the debug window says

Debugging Terminated

without any hint to why in the crash logs.

First I thought it was my programming, but then I went ahead and tested the app on multiple 'real' iPhones and it never crashed.

Why does the simulator keeps crashing?


A common cause of crashes on the simulator but not the device and vice versa is using precompiled libraries that were compiled on the other hardware. Check if you've got something compile for ARM that is trying to run on the Intel.


In XCode try Build > Clean All Targets


Have you tried resetting the simulator? iPhone Simulator -> Reset Content and Settings

Then do a clean build of your project.


Annoying :)

Put NSLog statements around where you think that it's crashing and look at the output. That shoud give you more of an idea where the crash is occurring.

If that doesn't help, post the lines causing the crash in the question and see if anyone can help then.

Sam


This tends to happen when you declare a variable and then use it without actually creating it. I would check variables you are using to make sure you are actually creating them before using (i.e. with alloc or the convenience methods).

0

精彩评论

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