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

Improve C++ exceptions stacktrace on iOS #1655

Merged
merged 11 commits into from
May 22, 2024
Merged

Conversation

munkiki7
Copy link
Collaborator

@munkiki7 munkiki7 commented May 17, 2024

Fixes #1628

There are still some cases that are not covered by this fix.
If the exception is thrown not from UnityFramework, but from another library, the hook will not be called.

The details can be found in the conversation of the issue.

@bitsandfoxes
Copy link
Contributor

bitsandfoxes commented May 17, 2024

That does UnityFramework mean? Are native plugins bundled in the output part of the UnityFramework?

@munkiki7
Copy link
Collaborator Author

That does UnityFramework mean? Are native plugins bundled in the output part of the UnityFramework?

All native plugin files in the Unity Project (in the Assets directory, as well as in Packages) will be linked to UnityFramework target, and will be properly handled.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this gets copied to the generated Xcode project by Unity. Any chance this causes issues with Sentry disabled? The includes look fine to me.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just checked. And we also copy the no-op bridge over. So it's fine.

@bitsandfoxes bitsandfoxes merged commit 0c673ab into main May 22, 2024
@bitsandfoxes bitsandfoxes deleted the fix/cpp-exceptions-ios branch May 22, 2024 15:39
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

Successfully merging this pull request may close these issues.

C++ exception & std::terminate() support in iOS
3 participants