sentry-cocoa: Sentry's `User` class conflicts with application's `User` class

Can’t use SentryClient.shared?.user because I have a class named User in my app.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 31 (2 by maintainers)

Most upvoted comments

@HazAT Thank you, works great!

@carole-lavillonniere Sorry, my bad! Just woke up like 5 minutes ago πŸ˜‡ I will take a look at once I make my cup of coffee β˜•

@joshdholtz Sorry for the noise, referencing SentrySwift.User explicitly works. Thanks for the quick reply! πŸ‘

@wouterw How are you using/installing this client? It should be namespaced out with the module name (if using as a dynamic framework) if you have a conflicting class name - SentrySwift.User. I have not come across this myself yet but I will take a look into this today for ya ✊