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

Fixes issue when using Bugsnag on a WatchOS app #1583

Closed
wants to merge 1 commit into from

Conversation

gpambrozio
Copy link
Contributor

The code was trying to access an extension but on latest WatchOS we can have a standalone app. Related to this issue

Goal

Not crash when using Bugsnag on a standalone Apple watch app.

Design

Just added some checks to see if code is running on an app or extension.

Testing

See steps in related issue. With this branch the crash does not happen.

The code was trying to access an extension but on latest WatchOS we can have a standalone app.
@clr182 clr182 added feature request Request for a new feature backlog We hope to fix this feature/bug in the future labels Sep 18, 2023
@chickdan
Copy link

chickdan commented Sep 22, 2023

+1 for this fix. I noticed the SDK works fine with watch targets created prior to Xcode 14, but new targets and consolidated targets will crash.

@tomlongridge
Copy link
Contributor

Thanks @gpambrozio - the fix looks good. We're going to carry it on in #1588 to allow CI to run and to merge it down.

@gpambrozio gpambrozio closed this Oct 11, 2023
@gpambrozio gpambrozio deleted the watchapp-fix branch March 25, 2024 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog We hope to fix this feature/bug in the future feature request Request for a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants