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

Document a way to use Sentry in a library when the app is owned #1625

Open
bruno-garcia opened this issue Apr 17, 2024 · 5 comments
Open

Document a way to use Sentry in a library when the app is owned #1625

bruno-garcia opened this issue Apr 17, 2024 · 5 comments

Comments

@bruno-garcia
Copy link
Member

How to have Unity plus native support when Unity is added as a library to an app?

@IamBiswajitSahoo
Copy link

IamBiswajitSahoo commented Apr 19, 2024

Steps for initializing Sentry in iOS App and Unity, when Unity is being used as a library

  1. Create a new Sentry project for "iOS". Get hold of the DSN, AuthToken, Org-Slug and Project Name
  2. Install and Configure Sentry for iOS parent app (https://docs.sentry.io/platforms/apple/guides/ios/)
  3. Install Sentry for Unity (https://docs.sentry.io/platforms/unity/)
  4. Inside Unity open Tools > Sentry to configure Sentry.
  • Under the Core tab, check Enable Sentry and add your DSN
Screenshot 2024-04-19 at 1 02 38 PM
  • Under the Advanced tab, disable iOS Native Support
Screenshot 2024-04-19 at 1 03 50 PM

If require to upload debug symbols, then

  • Under the Debug Symbols tab, enable Upload Symbols and Upload Dev Symbols and fill in the AuthToken, Org-Slug and Project Name
Screenshot 2024-04-19 at 1 05 06 PM
  1. Then build in your iOS framework XCode project from Unity, and add it to your parent iOS Native App.
  2. On the parent iOS app, make sure to initialize the Sentry Cocoa as early as possible (i.e. somewhere in main). SentrySDK.start

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 2 Apr 19, 2024
@bitsandfoxes
Copy link
Contributor

Thanks for the detailed guide!

@IamBiswajitSahoo
Copy link

IamBiswajitSahoo commented Jun 4, 2024

Hey, @bruno-garcia @bitsandfoxes I was looking for the steps in the docs again to share with a few of my friends who were deciding if Sentry supports Unity as a library, and unfortunately, I did not find it there. Assuming this issue is still open, its not been added to the docs.

Can these steps be made available on the https://docs.sentry.io/platforms/unity/docs page ?

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Jun 4, 2024
@bitsandfoxes
Copy link
Contributor

Definitely! I've reprioritized this. Thanks for reaching out!

@bitsandfoxes
Copy link
Contributor

Relates to #1727

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

No branches or pull requests

3 participants