Question

I have taken over a rather large and complex project. A part of it is a static (C++) library, which is produced by an Xcode file (which actually was generated by CMake, I believe …)

The App itself is in a completely different project.

When I debug the app and want to step into the library, only assembly is shown. The symbols all seem to be there, prominently the output starts with MyApp'Foo::bar(char const*) at Foo.cpp:102:, and I see things like 0x1507a6: bl 0x150838 ; Foo::fazbar(int) at Foo.cpp:206

This, to me, says that symbolification is there and actually working.

Now, Foo.cpp is on my machine. I can open that file, and indeed, on line 206 Foo::fazbar is called.

The output from nm and otool does not look suspicious, either.

Why is lldb (Xcode's debugger) not finding my file? How can I tell lldb where the files are?

Any pointers are appreciated.

Was it helpful?

Solution

Have you moved source files around compared to when the library was built?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top