XCODE4: Stuck on Attaching to 'Appname'

CTRL+R usually runs the application on the Simulator automatically, but today it stopped suddenly. Instead, I just kept seeing "Attaching to Appname' message in the status window.

After some heavy googling, turns out it's scheme setting. To fix:

1. Goto Product > Run...

2. On the left hand side, select Run appname.app

3. Select the info tab on the right

4. Select Launch --> Automatically

For some reason, neither Automatically nor 'wait for appname.app to launch were selected.

---

If your simulator screen is already stuck in darkness (black screen of death),

1. Stop your running demo (hit the STOP button)

2. Goto menubar > iOS Simulator > Reset content and settings...

3. Re-run following the steps above

No comments: