Xcode83onElCapitan icon indicating copy to clipboard operation
Xcode83onElCapitan copied to clipboard

Debug symbols/support for debugging?

Open grigorye opened this issue 7 years ago • 3 comments
trafficstars

I'm not sure why but for me breakpoints don't work and if I manually pause the running app stack traces don't show any symbols. Is this known issue? (I'm running Xcode 8.3.3 / Basic detail app template in Objective-C).

grigorye avatar Apr 11 '18 14:04 grigorye

Nevermind. Sorry. It looks like local issue on my Mac. Stock Xcode 8.2.1 also experiences this problem.

grigorye avatar Apr 11 '18 15:04 grigorye

It turns out that it was related to SWIFT-4.1 toolchain that I tried to use. It affects even Objective-C side of the things. As soon as I switched back to 8.2.1 toolchain breakpoints/symbols started to work again.

grigorye avatar Apr 11 '18 15:04 grigorye

The solution for SWIFT-4.1 (and for Xcode 8.2.1) was to substitute /Library/Developer/Toolchains/swift-4.1-RELEASE.xctoolchain/System/Library/PrivateFrameworks/LLDB.framework with the one from stock Xcode: /Applications/Xcode.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/System/Library/PrivateFrameworks/LLDB.framework. Probably for Xcode 8.3.3 it will work as well.

Update: Yes, that works for Xcode 8.3.3 as well.

grigorye avatar Apr 11 '18 15:04 grigorye