I have been trying to debug my objective-c code of a custom embedded framework I have been using/developing for the last years and recently (1-2 weeks ago) just before Xcode 10 was released all worked well. I was able to build my embedded framework with debug configuration, create an app (using NativeScript), deploy it to a simulator, open my framework's .xcodeproject, go to Debug > Attach to Process by PID or Name, select the app and add breakpoints int my objective-c code to debug it.
But today I tried to do the same and the breakpoints cannot be hit. I know my embedded framework is build in debug configuration because the .dSYM file is present. Also after the process is attached if I stop it using the button the app stops in the simulator so it must have attached correctly.
Has anyone faced such issues?
Edit:
I did verify that the embedded framework in the project contains debug symbols by comparing the output from nm -a <lib>
and nm <lib>
from this answer.
Edit 2:
The scenario is quite straight forward:
- create an dynamic embedded framework
- build its .framework and .framework.dSYS file
- add it to a project's embedded frameworks
- build that project into app
- deploy it to a simulator
- open the framework's project
- attach it to the process
- try to hit a breakpoint.