Xcode 10: Debugger fails to stop at breakpoints in non-main targets

Originator:jon
Number:rdar://43072150 Date Originated:08-Aug-2018 08:33 PM
Status:Open Resolved:
Product:Developer Tools Product Version:10L221o
Classification:Serious Bug Reproducible:Sometimes
 
Summary:
Under Xcode 10, lldb will often fail to stop at breakpoints in non-main targets. For instance, when debugging an iOS, breakpoints set in the Xcode UI in a framework target may not be hit. Additionally, breakpoints set in Xcode 10 are show as unknown in Xcode 9.4.1.

Steps to Reproduce:
Generally:
1. Add breakpoint in non-main module that you know will be hit.
2. Run app configured in way that should trigger breakpoints. 
3. See no breakpoints hit.

Expected Results:
Breakpoints always hit.

Actual Results:
Breakpoints not always hit.

Version:
10L221o

Notes:
These modules are integrated through CocoaPods.

Comments

Upvoting

Have same issue. Debug executable - on, optimization level - None [-O0], Debug Information Format - with dSYM. Xcode restart helps only.

By dmitriy.gorevoy at June 10, 2019, 4:04 p.m. (reply...)

Upvoting

I'm having the same problem, but without CocoaPods. I have a workspace with a framework project and an example app project which embeds the framework. Breakpoints in the example app are working, but breakpoints inside the framework are never hit. It seems to be intermittent for me as well.

Has anyone heard an update or found a work-around to this?

By megan.mcpherson at Dec. 4, 2018, 9:29 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!