Xcode 4.3.3 IPhone 5.1 Simulator hanging every so often

时间秒杀一切 提交于 2019-12-10 19:40:04

问题


I've been looking around to see if anyone has similar issues recently but can't find much info.

Most of the time launching apps in simulator works fine. But once or twice a day the simulator hangs and I have to force quit it. XCode says 'Running xyz on simulator'. When you try and 'Stop' in XCode nothing happens. I then have to force quit XCode.

The annoying thing is the simulator wont work again unless I restart the machine!

This never happens when I run apps directly on iPhone. It has happened on several occasions for me both with sample apps and my own.


回答1:


Go to Edit Scheme -> Use GDB Debugger instead of LLDB - this worked for me.




回答2:


This has happened to me but not recently (I stayed on 4.3.2). That said, Xcode 4.4 will be released today (almost for sure, as Mt Lion is coming out today). Get it and see if problem goes away!

EDIT: I did upgrade to 4.4, then 4.5, then 4.6. I have not had a single hang, using several machines, and neither has my coworkers, since leaving 4.3. YMMV of course.




回答3:


This has frustrated me for -years- now but stumbled across what appears to get things going again for me:

Hide the simulator (iOS Simulator -> Hide iOS Simulator) or Cmd-H, then reopen the simulator.

The problem seems to happen when something CPU intensive is happening in the background (like a Time Machine backup) on my old 2 core MacBook.




回答4:


the issue was reported to apple support communities today.




回答5:


you can do reset contents and settings of iphone simulator than check it.. sometimes if we run so much application in simulator and not reset it than this kind of problem is occurs.



来源:https://stackoverflow.com/questions/11645747/xcode-4-3-3-iphone-5-1-simulator-hanging-every-so-often

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!