简体   繁体   中英

Xcode debugger does not find my files

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 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.

与构建库时相比,您是否在移动源文件?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM