xcode 发送 qLaunchSuccess 数据包失败
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10055109/
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
failed to send the qLaunchSuccess packet
提问by Andrea Sindico
I am using XCode 4.3.2 and trying to open an already existing project based on the Facebook SDK sample Project for XCODE and run it on a target IPhone with IOS 4.2. Although it runs on the simulator it crashes on the IPhone printing this error on the console:
我正在使用 XCode 4.3.2 并尝试打开一个基于 XCODE 的 Facebook SDK 示例项目的现有项目,并在带有 IOS 4.2 的目标 iPhone 上运行它。尽管它在模拟器上运行,但它在 iPhone 上崩溃,在控制台上打印此错误:
failed to send the qLaunchSuccess packet
I really do not know what could be the problem
我真的不知道可能是什么问题
回答by Bek
This happened to me when I accidentally tried to do a device debug using a distribution profile. As soon as I noticed and switched it to a dev profile, the issue went away.
当我不小心尝试使用分发配置文件进行设备调试时,这发生在我身上。一旦我注意到并将其切换到开发配置文件,问题就消失了。
回答by CodaFi
You might have some broken privileges or a hung debugger process (one that didn't quite exit fast enough). Restart Xcode or restart your phone, either way, it's not as bad as it's more annoying cousin, Processes That Can't Be Registered To The BootStrap Server
您可能有一些损坏的权限或挂起的调试器进程(一个退出速度不够快的进程)。重启Xcode或者重启你的手机,无论哪种方式,都没有它更烦人的表弟那么糟糕,Processes That Can't Be Registered To The BootStrap Server
If all else fails, restore it from a backup.
如果所有其他方法都失败了,请从备份中恢复它。
回答by Kyle Robson
In Xcode 4.3.3, this is caused by re-running the app (command+R) or stopping it (command+.) while halted on a breakpoint. To fix the error once you've gotten it, it usually works to stop the app, (command+.), unplug the device, plug it back in, and run the app again.
在 Xcode 4.3.3 中,这是由于在断点处暂停时重新运行应用程序 (command+R) 或停止它 (command+.) 造成的。要在收到错误后修复错误,通常可以停止应用程序 (command+.),拔下设备,重新插入,然后再次运行应用程序。
To avoid the issue in the future, remember to continue (command+control+y or hit the play button near the debugger output) before stopping. If you have many breakpoints or are in a loop, you can deactivate one breakpoint by going to that line and hitting command + \ or you can deactivate all breakpoints by hitting command + y.
为避免将来出现此问题,请记住在停止之前继续(command+control+y 或点击调试器输出附近的播放按钮)。如果您有许多断点或处于循环中,您可以通过转到该行并按 command + \ 来取消激活一个断点,或者您可以通过按 command + y 取消所有断点。
If you eventually get the error ending in "This generally means that another instance of this process was already running or is hung in the debugger," you need to reboot the device.
如果您最终得到以“这通常意味着此进程的另一个实例已在运行或挂在调试器中”结尾的错误,则需要重新启动设备。
I submitted a bug report to Apple. I suggest you all do the same so that this gets the attention it deserves.
我向 Apple 提交了错误报告。我建议你们都这样做,以便得到应有的关注。
Edit: the "qLaunchSuccess packet" bug doesn't happen in Xcode 4.4 or 4.5 as it did in 4.3. However, 4.4 and 4.5 experience "Timed out waiting for app to launch" instead--possibly the same issue with a new message. See thisquestion for some possible solutions. Nothing works for met yet. The behavior seems different than 4.3.3 because the error doesn't come up every time I stop while halted on a breakpoint. I will experiment and see if my workaround for 4.3 also fixes the 4.4/4.5 issue.
编辑:“qLaunchSuccess 数据包”错误不会像在 4.3 中那样在 Xcode 4.4 或 4.5 中发生。但是,4.4 和 4.5 会出现“等待应用程序启动超时”——可能与新消息存在相同的问题。有关一些可能的解决方案,请参阅此问题。还没有什么适合见面的。该行为似乎与 4.3.3 不同,因为每次我在断点处停止时都不会出现错误。我将进行试验,看看我的 4.3 解决方法是否也解决了 4.4/4.5 问题。
回答by mahboudz
I get this every time my app crashes, and I restart it by doing a Run. If I hit the Stop button before doing a run then I don't get this.
每次我的应用程序崩溃时我都会得到这个,我通过运行来重新启动它。如果我在跑步前按下停止按钮,那么我不会得到这个。
After some time, if I keep hitting Run instead of Stop first, the iPhone will only show the above error message and the only solution is to restart the iPhone. Quitting and restarting Xcode does not help.
一段时间后,如果我继续按运行而不是先停止,iPhone 将只显示上述错误消息,唯一的解决方案是重新启动 iPhone。退出并重新启动 Xcode 没有帮助。
This may be an Xcode bug.
这可能是一个 Xcode 错误。
回答by Robert
A slightly quicker way to resolve this issue without restarting the device is to change the language.
在不重新启动设备的情况下解决此问题的一种稍快的方法是更改语言。
Settings - > General - > International (4th from bottom) - > Language (top)
设置 -> 通用 -> 国际(底部第四个) -> 语言(顶部)
Alternatively If you have a bugged News stand app (in a folder) just tap it to restart springboard.
或者,如果您有一个有问题的报亭应用程序(在文件夹中),只需点击它即可重新启动跳板。
回答by user1139733
I had this error when I was trying to install over a bad version of the app that had been crashing on launch. Restarting Xcode and the device did not make the error go away, but deleting the app fixed the problem.
当我尝试安装在启动时崩溃的错误版本的应用程序时,我遇到了这个错误。重新启动 Xcode 和设备并没有使错误消失,但删除应用程序修复了问题。