I got this message when testing my app on simulator:
Message from debugger: got unexpected response to k packet: OK
What does it mean and is my app in any sort of danger?
Using Xcode 6.4 & 7.2
I got this message when testing my app on simulator:
Message from debugger: got unexpected response to k packet: OK
What does it mean and is my app in any sort of danger?
Using Xcode 6.4 & 7.2
It's Xcode "acting up". I also got it once and fixed it by running this in Terminal:
Basically clears Xcode caches and derived data which sometimes get corrupt. Hope it works for you.
If you look at the file ProcessGDBRemote.cpp in the llvm source code, you will see that this occurs when there is an unexpected response from Xcode's debugger process, in this case if the packet is not the
'W'
or'X'
characters:In this case the debugger is sending the string
"OK"
instead of"W"
or"X"
. There's nothing you can do, there's a problem behind the scenes in Xcode. I've found that a combination of killing Xcode's debugging processes, restarting Xcode, and restarting your machine before reconnecting to a debugging session can fix this issue.To learn more about native processes on OS X, checkout the comment inside of that nested
if
statement:Helpful comments on why this error might occur: