Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4.3.2, issue with running on simulator

Tags:

xcode

ios

I have been having this weird problem with Xcode 4.3.2, of course after the recent update.

After successfully building and running on the simulator several times, xcode seems to not be able to connect to the simulator and can't even stop the project; it's like the simulator does not exist. I have tried:

  1. Stopping the project – doesn't work.
  2. Quitting the simulator – doesn't work, xcode still shows it's running on the simulator even when I quit the simulator.
  3. Cleaning the project – doesn't work.

I have to force quit xcode to get it communicate with the simulator. Nothing else works. It gets quite frustrating to do it every half an hour. This only started with 4.3.2.

I always stop before building and running, so it is not an issue of simulator/xcode getting thrashed by me.

Any suggestions?

like image 749
Veeru Avatar asked Apr 16 '12 05:04

Veeru


People also ask

How do I enable simulator in Xcode?

Open Xcode and click Menu > Xcode > Preferences > Select Components, and then choose the simulator version you want to download.

How do I run Xcode simulator on Mac?

Choose Xcode > Open Developer Tool > Simulator. Control-click the Xcode icon in the Dock, and from the shortcut menu, choose Open Developer Tool > Simulator.

Do I need Xcode for iOS simulator?

Launching the Simulator, though, always requires opening Xcode and going to Developer Tools. Because the Simulator. app is embedded within the Xcode app bundle, apps like LaunchBar won't find it to index it.


2 Answers

I have found by chance, it is not a solution by any means -

When xcode hangs, saying it is running the app, but nothing is on simulator, opening the simulator from the dock by clicking on the dock icon (not using command+tab) seems to work.

It is very weird,but it works; atelast till xcode fixes it.

like image 83
Veeru Avatar answered Sep 20 '22 15:09

Veeru


I had the same damn issue on XCode 4.5.1, but I resolved it just now. When the program is running, it gets compiled but doesn't show anything on the simulator. just click on iOS Simulator icon in dock in order to bring it to front. Click iOS Simulator on top left -> Reset content and settings -> then force quit the iOS Simulator and run the program again. !!

like image 43
Deepjyoti Roy Avatar answered Sep 20 '22 15:09

Deepjyoti Roy