Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failure to stop executing task in Xcode 4.3

I just installed Xcode 4.3 and I'm having some issues with stopping my app while running in the iOS simulator. I'm able to quit the simulator, but I cannot stop the task from running, either by hitting the stop button, or using the keybinding. In order to stop the process, I literally have to quit Xcode and restart. This obviously makes any development at all very difficult. I found this bugreport: link, which sounds very similar to the issue I'm seeing.

Is this a known issue with 4.3, or has anyone else experienced this behavior? I haven't used Xcode for over a year now (v3), so I can't say if it was working with any other previous versions of Xcode 4.

like image 978
eriknelson Avatar asked Sep 10 '25 05:09

eriknelson


2 Answers

Found this post helpful XCode 4.3.2, issue with running on simulator

Strangely when it hangs, click on the simulator icon in the tray. Dont ask me why. This actually works

like image 94
yeahdixon Avatar answered Sep 13 '25 02:09

yeahdixon


I can confirm this is still the case with Xcode 4.4 on Mountain Lion, unfortunately.

If I close the iOS simulator with Cmd+Q rather than leaving it open and stopping the simulation with the "Stop" button on the Xcode toolbar, the following things happen (although not systematically, but in 25% of the cases launching the same application - I believe this is related to application status but I have not understood how yet):

  • the "run" button in Xcode does not open a new iOS Simulator session; the "stop" button is still clickable but gives no result;
  • the toolbar continues to say "Running on iPhone simulator" no matter how many times you click "Stop";
  • if the iOS simulator is launched manually, it is not linked to the Xcode session;
  • not only does one have to re-start XCode: the restart has to be forced as the simple Xcode "Quit" command will not work.
like image 39
Riccardo Moschetti Avatar answered Sep 13 '25 02:09

Riccardo Moschetti