Xcode 4.6 错误 - 等待应用程序启动超时
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14659094/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 4.6 error - Timed out waiting for app to launch
提问by Shekhar Gupta
I am building an app in Release, and running on an iPhone 4s.
我正在 Release 中构建一个应用程序,并在 iPhone 4s 上运行。
When I click on run, everything works well, my application even runs on the iPhone.
当我点击运行时,一切正常,我的应用程序甚至可以在 iPhone 上运行。
But after some times, I have an error from Xcode : "Timed out waiting for app to launch" while my app is still running.
但一段时间后,我收到来自 Xcode 的错误消息:当我的应用程序仍在运行时,“等待应用程序启动超时”。
How to deal with it?
如何处理?
回答by Vishal
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.
回答by Trup
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.
检查您正在使用的配置。确保您使用 Provisioning 配置文件在设备上测试应用程序。如果您使用的是分发配置文件,那么您将遇到此问题。
回答by Firo
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:
当我在断点处停止或在某些崩溃期间重新启动应用程序时,就会发生这种情况。如果您在重新启动应用程序(崩溃或处于断点时)之前终止应用程序(通过按停止按钮或Ctrl
+ .
),这种情况不会经常发生。否则,您应该能够通过以下方式解决此问题:
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.
您不应该重置您的实际计算机,甚至不需要手动清理。至少这对我有用十多次。
回答by Geet
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
如果您使用分发配置文件在 iDevice 上部署应用程序,则可能会发生这种情况,尝试将配置文件更改为开发人员配置文件,它会再次正常运行