Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4.6 error - Timed out waiting for app to launch

I am building an app in Release, and running on an iPhone 4s.

When I click on run, everything works well, my application even runs on the iPhone.

But after some times, I have an error from Xcode : "Timed out waiting for app to launch" while my app is still running.

How to deal with it?

like image 890
Shekhar Gupta Avatar asked Feb 02 '13 05:02

Shekhar Gupta


4 Answers

Check which provisioning you are using, it seems that ad-hoc provisioning cannot be used for debugging. If your problem is not solve with above instruction then also try these:

     Stop the app from running in Xcode;
     Delete the app from the device (or Simulator);
     Select Product > Clean from the Xcode menu;
     Close Xcode;
     Close the Simulator (or restart the device);
     Restart your computer & then check.
like image 134
Vishal Avatar answered Oct 24 '22 06:10

Vishal


Check which provisioning you're using. Make sure you are using Provisioning profile for testing app on device. If you are using Distribution profile then you will have this problem.

like image 31
Trup Avatar answered Oct 24 '22 08:10

Trup


This happens to me when I relaunch the app while it is stopped at a breakpoint or during certain crashes. If you terminate the application (by press the stop button or Ctrl+.) before relaunching the app (upon crash or sitting at a breakpoint), this will not happen as often. Otherwise you should be able to get around this by:

Stopping app
Deleting app from your device
Shutting down the device (completely shutting it off)
Then restart it

You should not have to reset your actual computer or even do a manual clean. At least this has worked for me well over a dozen times.

like image 2
Firo Avatar answered Oct 24 '22 07:10

Firo


It can occur if you are using a distribution profile to deploy the app on iDevice, try to change the profile to developer profile and it will run again properly

like image 1
Geet Avatar answered Oct 24 '22 07:10

Geet