Xcode 5 fails to launch app with error: failed to launch '/path/to/.app' -- Busy

JuJoDi picture JuJoDi · Nov 9, 2013 · Viewed 7.1k times · Source

I am using XCode 5, with an iPhone 5s as the dev device. Every other time I run the app I get a pop that says "Could not launch [app name] \n busy". My iPhone 5s then appears to crash and the only way it will respond is if I hold the home and lock button until it resets.

The application is a single view application, the only thing I have done is added the Parse.framework from here and used

[Parse setApplicationID:appID clientKey:clientKey];
[PFAnalytics trackAppOpenedWithLaunchOptions:launchOptions];

In applicationDidFinishLaunchingWithOptions, along with some UI that isn't hooked up to anything.

I'm not sure if this has to do with Parse or possibly the App settings.

So to be clear, the behavior is:

Fresh reset > Build and Run application on iPhone 5s > application runs fine > Build and Run application on iPhone 5s > application appears to launch but screen remains black and iPhone is no longer responsive except the screen will turn off when the lock button is pressed (but not back on) > Build and Run application on iPhone 5s > XCode says "could not launch app - busy" > hard reset iPhone

When I run this on the 64-bit simulator it works fine.

Edit 1:

I have tested with multiple applications now that we know work on multiple other devices (iPhone 5, iPhone 4, iPhone 4s) and the simulators. I don't have another iPhone 5s so it is hard to compare exactly but everything crashes my 5s..

Answer

Vladimír Slavík picture Vladimír Slavík · Mar 6, 2014

My device was completely stuck with black screen. "To fix you have to hard reboot, holding the power and home button until the phone reboots - doesn't lose any of the data you have on your phone (a concern the first time I did it)." as stated here:

http://blog.paulhadfield.net/2014/01/iphone-hangs-when-running-from-xcode.html

For iPhone7 there is a different approach:

  1. Press and hold down the power button located on the right side of the iPhone 7.
  2. While holding down the power button, press and hold down the Volume Down button on the left side of the iPhone 7.

http://www.hongkiat.com/blog/force-reset-iphone7-7plus/