xcode 来自调试器的消息:发送 k 数据包失败
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31577024/
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
Message from debugger: failed to send the k packet
提问by eramirez75
I am developing an app in Xcode 6.4 and it runs on the simulator, but when I try to run it on my iPhone(iOS 8.4) it crashes.
我正在 Xcode 6.4 中开发一个应用程序,它在模拟器上运行,但是当我尝试在我的 iPhone(iOS 8.4)上运行它时,它崩溃了。
The message in the console is:
控制台中的消息是:
Message from debugger: failed to send the k packet.
来自调试器的消息:发送 k 数据包失败。
Can someone help with this?
有人可以帮忙吗?
回答by Alex Choi
I had this problem just now and just fixed it with
我刚才遇到了这个问题,只是用
rm -rf ~/Library/Developer/Xcode/DerivedData/* ; rm -rf ~/Library/Caches/com.apple.dt.Xcode/*
in terminal/shell/bash.
在终端/shell/bash 中。
Not sure what it is exactly, but I'd toss it in the 'another XCode fart' category.
不确定它到底是什么,但我会把它扔到“另一个 XCode 屁”类别中。
回答by Robert William Clancy
Just close out Xcode and reopen. This worked for me.
只需关闭 Xcode 并重新打开即可。这对我有用。
回答by Jan K
In my case, restarting the test device solved the problem.
就我而言,重新启动测试设备解决了问题。
回答by agrippa
Would suggest Restarting XCode, ReOpening and then cleaning the product (Product>Clean or Command + Shift + K).
建议重新启动 XCode,重新打开,然后清洁产品(产品>清洁或 Command + Shift + K)。
Finally, I deleted the app and reinstalled it. That worked definitively, though it's possible just one of those would do :).
最后,我删除了该应用程序并重新安装了它。这确实有效,尽管可能只有其中之一可以:)。