Xcode freezes when it reaches breakpoint while testing on device

I set a breakpoint in Xcode and ran the application on the device. Xcode stops at a breakpoint and the console opens, but I just see a spinning wheel, not a list of all the variables, and Xcode freezes. Nothing happens when I click the Stop button. It only disconnects if I disconnect the device. It just started to happen last week.

In other cases, it lists the variables, but when I click the arrow next to "self", for example, the same "freeze" happens.

This does not happen during testing in the simulator.

Any ideas?

+8
debugging ios xcode
source share
4 answers

I had the same problem as me, just updated my xcode version, it fixed it for me, if it does not work, reinstall the current version. You can do it here, but you need to be an Apple Developer Member to do this https://daw.apple.com/cgi-bin/WebObjects/DSAuthWeb.woa/wa/login?appIdKey=d4f7d769c2abecc664d0dadfed6a67f943442b5e9c8752475245024502350fdc275247524fdc2752475fd7577527524752475775275247577527524757752fdcd2752475fd2f2 % 2Findex.action

+1
source share

It happened to me once. Try deleting the Breakpoints.xcbkptlist file. (deletes all placed breakpoints) and then return the breakpoint and try again.

Good luck.

0
source share

This worked for me:

Close Xcode. Open Finder, press + Shift + G to open Go To Folder.

Type ~ / Library / Developer / Xcode / DerivedData p>

Delete all folders in this directory and delete garbage. Restart Xcode and try again.

This is thanks to rokjarc ( Why is Xcode successfully creating and copying my application but not launching it? )

0
source share

Just start the development machine. Worked for me.

0
source share

All Articles