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

[cocoa] extra directory attribute for --include-sources #2153

Open
barisyild opened this issue Sep 10, 2024 · 7 comments
Open

[cocoa] extra directory attribute for --include-sources #2153

barisyild opened this issue Sep 10, 2024 · 7 comments

Comments

@barisyild
Copy link

--include-sources doesn't find all source directories, it should be possible to add them manually.

@barisyild barisyild changed the title extra directory attribute for --include-sources for cocoa [cocoa] extra directory attribute for --include-sources Sep 10, 2024
@szokeasaurusrex
Copy link
Member

Hi @barisyild, is this a bug report or a feature request?

If it's a bug report, please re-open the issue with our bug report template.

If it's a feature request, please explain in more detail how you would like this new feature to work and how exactly this feature will help you.

@barisyild
Copy link
Author

Hi @barisyild, is this a bug report or a feature request?

If it's a bug report, please re-open the issue with our bug report template.

If it's a feature request, please explain in more detail how you would like this new feature to work and how exactly this feature will help you.

I add the compiled code to the project as a static binary, so I think it is normal that include-sources cannot find the source code.
If we can add directories manually, there is no such problem.

@szokeasaurusrex
Copy link
Member

Hi @barisyild, I am still missing context on what you are trying to do.

What is the exact command you are running? What are you trying to accomplish with Sentry CLI?

@barisyild
Copy link
Author

Hi @barisyild, I am still missing context on what you are trying to do.

What is the exact command you are running? What are you trying to accomplish with Sentry CLI?

https://docs.sentry.io/platforms/apple/guides/ios/dsym/#xcode-build-phase

I run the cli command in the link above, but it only sends a small part of the source code, the part it does not send is linked as a static link.

@szokeasaurusrex
Copy link
Member

@barisyild Are your stack traces not being symbolicated in Sentry because of this?

@barisyild
Copy link
Author

@barisyild Are your stack traces not being symbolicated in Sentry because of this?

It symbolizes but does not show the source code, because it is missing.

@szokeasaurusrex
Copy link
Member

szokeasaurusrex commented Sep 12, 2024

It symbolizes but does not show the source code, because it is missing.

Got it. Have you tried using the sentry-cli bundle-sources command to bundle your source files manually? This command allows you to manually specify the path to your debug files, and the command finds the source files based on the debug files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Community
Development

No branches or pull requests

2 participants