I have been investigating this issue myself and found no solutions. I am beginning think that any further investigation, or further usage of Xcode with this problem remaining will render me in a mental hospital.
So I'm pleading for some help on the matter.
Things to note:
The debugger will always stop breakpoints if I clean the project and restart Xcode.
There is no telling on what run the breakpoints stop working.
I have verified that the application is running in debug mode when it ignores the breakpoints.
I have tried uninstalling and re-installing Xcode.
Saving and waiting for files to process between builds does not fix issue.
Xcode settings:
- Always show disassembly is not checked
- Apple clang: Optimisation level is set to none
- Swift compiler: No optimisation
- Generate debug symbols: yes
- Debug Information Format: Dwarf with dsym file
Xcode version: 14.0 Mac version: Monterey 12.5
Thank you in advance for any responds to this question!
Edit**
I created a blank objective-c project and the problem remains! I found out that I don't have to clean and restart(although that's certain to make the following build stop on breakpoints).
one in every 10 runs resulted in the breakpoints being ignored.