Fix For Xcode Getting Stuck When Attaching To An App

February 18, 2013

Periodically Xcode will get hung up while attempting to attach to an application in the iOS Simulator. I’ve tried a number of things to get around this in the past with varying levels of success. Let me share what has worked consistently to resolve this problem.

The image below shows how the message looks when Xcode and the simulator are stuck:

Here are the steps I follow when this happens:

  • Start the simulator if it isn’t already running
  • Choose the option “Reset Content and Settings…” from the iOS Simulator menu
  • Clean and rebuild the project

If you have another approach, please post a comment.