Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4.6 hangs regularly after running project in iPhone Simulator

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.

like image 200
Lukasz Avatar asked Jan 31 '13 11:01

Lukasz


People also ask

Can we run iOS simulator without Xcode?

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.

Does CloudKit work in simulator?

CloudKit does not work with Simulator.

How do I use iPhone as Xcode 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.

Can I install IPA on iOS simulator?

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.


1 Answers

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. :)

like image 74
matt Avatar answered Oct 20 '22 00:10

matt