Xcode 4.6 error - Timed out waiting for app to launch

 ̄綄美尐妖づ 提交于 2021-02-04 10:45:19

问题


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?


回答1:


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.



回答2:


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.




回答3:


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.




回答4:


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



来源:https://stackoverflow.com/questions/14659094/xcode-4-6-error-timed-out-waiting-for-app-to-launch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!