Xcode 7.3 crashes when breakpoint set or app crashes - xcode

I am having this issue and when I searched it on Stack Overflow I saw that many people have had this before:
First of all, you can find the crash report here: http://pastebin.com/c726EUip
What I've tried so far:
I set the "Enable Clang Module Debugging" in Build Setting to NO
I did pod update
Tried to change LLDB to GDB but i think xcode no longer has this option
This is the list of frameworks:
Here are links to questions from people with the same issue:
Xcode 4.3-4.4 crashes with breakpoints using LLDB, breakpoints useless with GDB
Xcode 7.3 crashing when debugging with breakpoints
iOS App crashes when setting breakpoint in Xcode
I am totally desperate on this, as I cannot debug my work properly.
Anyone have ideas?

Try going through all these steps in the exact same order https://stackoverflow.com/a/28371711/821053 This solved my debugging problems a couple of times.

Related

Tests don't work on Xcode 8, beta 2

When I run tests on my project in XCode, it builds, and then says Testing... which never ends.
When I use the stop button, the process stops with this text in the console:
*** If you believe this error represents a bug, please attach the log file at /Users/MY.NAME/Library/Developer/Xcode/DerivedData/APPNAME-gcsubmsjksdbljcswbefkgugjray/Logs/Test/C53D8988-3564-4C2B-A535-075D26D1E4A7/Session-APPNAMETests-2016-07-13_140704-t3DFd5.log
However, I am unable to run the tests again, and have to relaunch xcode to run them.
Is this an issue on XCode that may be known to the Apple developers?
EDIT
So, I figured, the simulator is not launching in time, and that fails the xcode to run the tests. It might be an installation bug with the simulator.
As I anticipated in my edit to the question the first time, XCode installation did not install the simulator correctly.
I trashed the old installed version and reinstalled XCode. And now everything works fine.
Thanks for all the help.
I found that the tests never ran if I was running anything other than iOS10 on the simulator, so use iOS 10. I guess backwards compatibility doesn't really matter.

Xcode 7: crash on breakpoint stop

I have an extremely annoying problem!
Xcode 7 crashes almost on every breakpoint when it tries to symbolicate.
I have done several things including deleting Xcode and reinstalling it...
I also had the same issue on the previous Xcode 6.X
Any clue? I am wondering if I should reinstall mac OS from scratch...
I solved the issue by changing the optimization level in the build settings, make sure it is set to None for Debug configuration and make sure your RUN scheme uses Debug configuration.

XCode 4.4 - 4.4.1 crashes while stepping through code

Since upgrading to Mountain Lion and XCode 4.4, I've been unable to step through code while debugging. 4.4.1 did not fix the problem. Sometimes it'll step 2 or 3 times, but trying one more step inevitably reveals the bug. Using breakpoints seems to work better, but still crashes on occasion. I've tried reinstalling. Crash log is here: http://pastebin.com/XmqJEVuH
Boss just told me to there's a Developer Preview of XCode 4.5. To my surprise, it actually works.

Xcode 4 failed to launch

I'm currently migrating an old OS X project from Xcode 3 GCC to Xcode 4 LLVM.
The migration has so far gone fine. I've updated the code from 10.4 to 10.6, with a lot of deprecated API, and it all compiles just fine.
But when I try do debug using LLDB, I get the following error:
error: failed to launch '/Users/trenskow/Library/Developer/Xcode/DerivedData/The_Famous_Web_Editor-ddfqhzdztzzgfrcxaaywyxgtahzx/Build/Products/Debug/The Famous Web Editor.app/Contents/MacOS/The Famous Web Editor'
The application runs fine on it's own (besides the runtime errors I am trying to debug).
When I switch back to LLVM GCC and GDB, it launches fine, but Xcode never stops at the breakpoints. The application stops, but I do not get any indication of a breakpoint is being hit by Xcode.
Long shot, but:
The Famous Web Editor
Xcode and the compiler can sometimes trip over spaces in the project/target name. This usually shows up in broken header or library search paths, so I'm not sure if it applies here. But it's certainly worth a try to rename the target so it contains no spaces.
First clear your DerivedData (/Library/Developer/Xcode/DerivedData/) delete every thing from there.
Now restart your XCode, Restart your device.
run Xcode

XCode 3.2.4 buggy debugger?

i'm developing iPhone apps. Yesterday i updated leopard to snow leopard. Alongside i made the jump from XCode 3.1.4 to 3.2.4
I was always quite happy with XCode - working most of the time under windows, I really appreciate how well the XCode toolchain works together.
however - i'm not happy with 3.2.4 at all. i experience a lot of flaws, mainly with debugging. When an error arises, the debugger often stops at another place than the actual error happened. Sometimes the debugger does not trap into breakpoints at all and i get after some time a Error from Debugger: mi_cmd_stack_list_frames: Not enough frames in stack - whatever that means. And also I get invisible breakpoints which i can't remove anymore.
Does anyone experience similar things with XCode 3.2.4? if so, which is the newest release that works well?
Thanks!
Usually the problem is to do with level of debug symbols or some compiler optimization (which shouldn't be applied in debug builds). Maybe the information here will help.
Also try a complete clean (delete the build folder, remove the app from the device/simulator) & rebuild. Ensure you're working with the Debug configuration.

Resources