僵尸进程从iPhone模拟器?

我一直在研究应用程序一段时间,刚刚开始注意到这些僵尸进程正在为应用程序的每一个启动生产? 现在我已经closures了Xcode和模拟器,但他们只是坚持。 是否有一些新的更好的方式来testing您的应用程序在模拟器上,避免这种情况和/或为什么会发生这种情况?

ps aux . . . derek 2696 0.0 0.0 0 0 ?? Z 1:25PM 0:00.00 (Test App) derek 93243 0.0 0.0 0 0 ?? Z 9:00AM 0:00.00 (Test App) derek 89633 0.0 0.0 0 0 ?? Z Wed07AM 0:00.00 (Another App) derek 87119 0.0 0.0 0 0 ?? Z Tue03PM 0:00.00 (Another App) derek 86711 0.0 0.0 0 0 ?? Z Tue01PM 0:00.00 (Another App) derek 86661 0.0 0.0 0 0 ?? Z Tue01PM 0:00.00 (Another App) derek 86616 0.0 0.0 0 0 ?? Z Tue12PM 0:00.00 (Another App) derek 86278 0.0 0.0 0 0 ?? Z Tue10AM 0:00.00 (Another App) derek 83049 0.0 0.0 0 0 ?? Z Mon03PM 0:00.00 (Another App) derek 83032 0.0 0.0 0 0 ?? Z Mon03PM 0:00.00 (Another App) derek 82996 0.0 0.0 0 0 ?? Z Mon03PM 0:00.00 (Another App) derek 82232 0.0 0.0 0 0 ?? Z Mon03PM 0:00.00 (Another App) derek 82137 0.0 0.0 0 0 ?? Z Mon03PM 0:00.00 (Another App) derek 82082 0.0 0.0 0 0 ?? Z Mon03PM 0:00.00 (Another App) derek 82047 0.0 0.0 0 0 ?? Z Mon03PM 0:00.00 (Another App) derek 81673 0.0 0.0 0 0 ?? Z Mon03PM 0:00.00 (Another App) derek 81473 0.0 0.0 0 0 ?? Z Mon03PM 0:00.00 (Another App) derek 76024 0.0 0.0 0 0 ?? Z Mon12PM 0:00.00 (Another App) derek 72214 0.0 0.0 0 0 ?? Z Mon10AM 0:00.00 (Another App) derek 70631 0.0 0.0 0 0 ?? Z Mon09AM 0:00.00 (Another App) derek 70468 0.0 0.0 0 0 ?? Z Mon09AM 0:00.00 (Another App) derek 70437 0.0 0.0 0 0 ?? Z Mon09AM 0:00.00 (Another App) derek 68039 0.0 0.0 0 0 ?? Z Mon08AM 0:00.00 (Another App) derek 67471 0.0 0.0 0 0 ?? Z Mon08AM 0:00.00 (Another App) derek 67425 0.0 0.0 0 0 ?? Z Mon08AM 0:00.00 (Another App) derek 67344 0.0 0.0 0 0 ?? Z Mon08AM 0:00.00 (Another App) derek 67311 0.0 0.0 0 0 ?? Z Mon08AM 0:00.00 (Another App) derek 67281 0.0 0.0 0 0 ?? Z Mon08AM 0:00.00 (Another App) derek 67235 0.0 0.0 0 0 ?? Z Mon08AM 0:00.00 (Another App) . . . . 

这是Xcode 4.6.2及更早版本中的一个错误。 它是在昨天发布的Xcode 4.6.3中修复的(2013-06-13)。 我今天早上在WWDC与一些苹果工程师谈了这件事。

只需编辑您的目标scheme – >在目标上点击Xcode中的停止button,selectEdit Scheme,然后进入Diagnostics选项卡,取消勾选Enable Zombie Objects选项。 或者最终检查你的参数选项卡,并确保没有NSZombieEnabled参数enabled.That应该这样做

Interesting Posts