所有
我创建的应用程序第一次完美运行,但是如果我通过屏幕底部的栏强制关闭它并将其打开,它会崩溃并且不会重新加载。我得到的唯一错误是Thread 1: Program received signal: "SIGKILL".
,日志中没有任何内容。这在iPhone模拟器和我的物理iPhone中都会发生。
编辑:我已附加调试日志。就像我提到的,没有任何表现。这是抛出错误并且应用程序崩溃后的日志。
GNU gdb 6.3.50-20050815 (Apple version gdb-1703) (Thu May 26 17:11:52 UTC 2011)
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".Attaching to process 835.
sharedlibrary apply-load-rules all
Current language: auto; currently objective-c
(gdb)
之前有人有这样的问题吗?
答案 0 :(得分:8)
这是预期的行为。如果您通过多任务栏关闭应用程序,则需要重新启动调试过程。我已经多次在开发中看到过这种情况。一旦发布,这不会对您的应用产生负面影响。发生这种情况是因为调试器在终止时已连接到应用程序。您的用户没有调试您的应用,因此他们不会遇到此问题。