Relative path in Xcode generated DWARF file

Viewed 668

When I compile my swift framework MyFramework I makes so that Xcode produces MyFramework.framework (the compiled framework) and MyFramework.framework.dSYM (the dSYM file).

By running dwarfdump myframework.framework.dSYM/Contents/Resources/DWARF/MyFramework I've noticed that all the paths to the source files are absolute paths.

This makes it impossible to share these two artefacts (together with the source code) with my colleagues and allow them to use the compiled framework and being able to debug their code properly. More precisely they are not able to step-in inside the framework with the debugger.

For this reason they need recompile the framework which is very inconvenient.

Is there a way to modify the DWARF to edit these paths or even better to convince Xcode to use relative path in the DWARF file?

1 Answers
Related