Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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..

like image 511
JuJoDi Avatar asked Nov 09 '13 22:11

JuJoDi


2 Answers

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/

like image 104
Vladimír Slavík Avatar answered Nov 05 '22 15:11

Vladimír Slavík


You were using your phone when you ran the app. Make sure you don't use your phone after you press build and run, otherwise it will be "busy"

like image 29
William Falcon Avatar answered Nov 05 '22 14:11

William Falcon