Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dSYM files are not found for applications/packages #126

Open
pdoane opened this issue May 29, 2024 · 1 comment
Open

dSYM files are not found for applications/packages #126

pdoane opened this issue May 29, 2024 · 1 comment

Comments

@pdoane
Copy link

pdoane commented May 29, 2024

I am successfully using libbacktrace for simple mach-o executables but the logic to find the .dSYM file is not working for application bundles. For example, the filename for macho_add_dsym looks like:

<app_name>.app/Contents/MacOS/<app_name>

and it should be looking to find the .dSYM file here:

<app_name>.app.dSYM/Contents/Resources/DWARF/<app_name>

but instead looks here:

<app_name>.app/Contents/MacOS/<app_name>.dSYM/Contents/Resources/DWARF/<app_name>

I did a quick test to generate the path as suggested above and that resolves the issue.

@ianlancetaylor
Copy link
Owner

It's not clear to me why the current code isn't working. In libbacktrace/macho.c in macho_add_dsym I see that it strips everything after the last slash when assembling the dsym name. Can you post the patch that you are using the get the correct dsym path? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants