After I run my iPhone project in iPhone Simulator Xcode 4.6 t hangs at the "Running in iPhone 6.1 Simulator" stage every 2nd or 3rd time. Yes, at such regular basis.
It hangs on almost every project I run and on my 2 Mac machines (Mac Mini 8GB, Core 2 Duo, SSD drive and MacBook Pro Core 2 Duo 3,1 Ghz, 8BG RAM, SSD Drive)
This was also the issue in previous Xcode but it has been occurring rarely enough to be tolerable.
I need to restart my Xcode and simulator to be able to run project again (sometimes even restart OS X).
What causes this and what can we do besides restarting Xcode to solve it? Why Apple can't resolve this issue for such a long time?
UPDATE:
I got flagged that this question is unconstructive, with what I do NOT agree as my main and first question was:
What causes this regular hangs? Why Apple has not solved it for such a long time is not my main interest.
Main concern stays very practical and technical: what is the reson of such regular disfunction and is there something developer can do manually to help it?
After all: Xcode is just a tool we use at work and every knowledge which can gain productivity is valuable.
UPDATE 2:
** After reinstalling to the newestMac OS X Lion (clean install) and installing newest Xcode, iTunes, Safari, iPhone Simulator problem persists.** This is clearly Xcode or iPhone simulator bug.
Well, that's not entirely true, you can actually still directly launch iOS Simulator without opening Xcode first by creating an alias. Note that modern versions of Xcode and OS X call the iOS Simulator simply “Simulator”, where you go will depend on which version of OS X the Mac is running.
CloudKit does not work with Simulator.
To run your app in Simulator, choose an iOS simulator—for example, iPhone 6 Plus, iPad Air, or iPhone 6 + Apple Watch - 38mm—from the Xcode scheme pop-up menu, and click Run. Xcode builds your project and then launches the most recent version of your app running in Simulator on your Mac screen, as shown in Figure 1-1.
You cannot run an ipa file in the simulator because the ipa file is compiled for a phone's ARM architecture, not the simulator's x86 architecture. However, you can extract an app installed in a local simulator, send it to someone else, and have them copy it to the simulator on their machine.
I have experienced the same thing many times, often many times a day, not necessarily after a crash. So yes, the bug exists and I've reported it to Apple and have continued to revise the report as data warrants. You should do the same (and provide Apple with a Sample report to show what the threads are doing during the hang each time). This has nothing to do with PLCrashReporter; I can experience this problem with a bare template project. Your question, though, seems unconstructive, as no useful answer can be given. Who can possibly tell you why Apple hasn't fixed it? The only people who can tell you that would be Apple, and you know that they won't tell you. So your question is purely rhetorical. :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With