Reputation: 12041
How can I look up symbols (eg. 0x10534843f
) in programs archived with XCode?
Upvotes: 1
Views: 362
Reputation: 12041
lldb
to start the debuggertarget create --no-dependents --arch x86_64 Products/Applications/MyApp.app/Contents/MacOS/MyApp --symfile dSYMs/MyApp.app.dSYM/Contents/Resources/DWARF/MyApp
(make sure you use the correct paths; if you provide an incorrect symfile, you'll receive no warning)image list
and validate the UUID of the binary matches your crash report to make sure you're looking at the right archive (see loaded images section at the bottom of crash/sample report)target modules load --file Products/Applications/MyApp.app/Contents/MacOS/MyApp __TEXT 0x123456
(replace 0x123456 with the load address from the report)image lookup -a 0x105346367
image lookup -v -a 0x105346367
Upvotes: 2