应用程式在模拟器上当机。在iPhone设备上工作 [英] App crashes on simulator. Works on iphone device

查看:248
本文介绍了应用程式在模拟器上当机。在iPhone设备上工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近升级到Xcode 3.2.4。并开始体验奇怪的行为。

I recently upgraded to Xcode 3.2.4. and started experiencing strange behaviour.

当我部署我的应用程序到iPhone,它的工作正常。但是,当我在模拟器上部署这个测试,该应用程序甚至不在屏幕上开始,我收到以下错误:

When I deploy my app onto the iPhone, it works fine. However, when I deploy this on the simulator for testing, the app does not even start on the screen and I receive the following error:

[session started at 2010-09-14 00:01:26 -0400。]
GNU gdb 6.3.50-20050815(Apple version gdb-1472)(Wed Jul 21 10:53:12 UTC 2010)
版权所有2004 Free Software Foundation,Inc.
GDB是由GNU通用公共许可证涵盖的免费软件,您是
欢迎更改和/或分发它的副本一定条件。
键入显示复制以查看条件。
GDB绝对没有保修。有关详细信息,请键入显示保修。
此GDB配置为x86_64-apple-darwin.sharedlibrary apply-load-rules all
附加到进程33399.
程序接收到的信号:EXC_BAD_ACCESS。
警告:check_safe_call:无法恢复当前帧

[Session started at 2010-09-14 00:01:26 -0400.] GNU gdb 6.3.50-20050815 (Apple version gdb-1472) (Wed Jul 21 10:53:12 UTC 2010) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin".sharedlibrary apply-load-rules all Attaching to process 33399. Program received signal: "EXC_BAD_ACCESS". warning: check_safe_call: could not restore current frame

警告:无法恢复先前选择的帧。
警告:无法恢复先前选择的帧。
警告:无法恢复先前选择的帧。
警告:无法恢复先前选择的帧。
警告:无法恢复先前选择的帧。
警告:check_safe_call:无法恢复当前帧

warning: Unable to restore previously selected frame. warning: Unable to restore previously selected frame. warning: Unable to restore previously selected frame. warning: Unable to restore previously selected frame. warning: Unable to restore previously selected frame. warning: check_safe_call: could not restore current frame

警告:无法恢复先前选择的帧。
警告:无法恢复先前选择的帧。
警告:无法还原先前选择的帧。

warning: Unable to restore previously selected frame. warning: Unable to restore previously selected frame. warning: Unable to restore previously selected frame.

我在丢失,仪器使用分配和泄漏工具,但它甚至没有机会收集统计信息,因为模拟器崩溃首先。我也试图启用僵尸,但它确实工作,因为应用程序甚至不启动。

I am at loss and have tried to run this in Instruments using the allocation and leaks tool, but it doesn't even have the chance to collect statistics since the simulator crashes first. I've also tried to enable zombies as well, but it does work since the app does not even start up.

有没有任何其他方式,我诊断什么是发生在这里?

Is there any other way for me to diagnose what is happening here?

谢谢你,
Winston

Thank you, Winston

推荐答案

你确定应用程序调试正常,与Xcode或仪器,当在设备上?模拟器的状态可能已损坏,或者可能只是你的应用程序的状态在模拟器。一个快速的方式来nuke和铺:选择重置内容和设置...从iPhone模拟器菜单中的选项。我不得不在几次自己这样做。

You are certain the app debugs normally, with Xcode or Instruments, when on the device? The Simulator's state might be corrupted, or maybe just your app's state on the Simulator. A quick way to nuke and pave: choose the "Reset Content and Settings..." option from the iPhone Simulator menu. I've had to do this on a couple of occasions myself.

这篇关于应用程式在模拟器上当机。在iPhone设备上工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆