Debugging embedded framework not working as expected when debugging super classes or protocol extensions/implementations

Viewed 759

I wrote a pure Swift framework which I am embedding inside my project.

Debugging is working fine when I debug code that I am using straight from my app.

For example, if I write a Dog class inside the framework with a method and I call it from my app, everything is fine.

But, if I write a base class like Animal and then a Dog class inside my app module that inherits from Animal and the breakpoint reaches the implementations on Animal, it shows like this:

breakpoint

The same occurs if Animal is a protocol and I write an extension or default implementation inside it and I call the method from an instance of Dog.

I already checked that I am indeed running the framework in debug mode, with no optimization, not stripping symbols and also using DWARF and dSYM.

1 Answers
Related