Skip to content

App crashes when trying to start Bugsnag on Watch app #1582

Open
@gpambrozio

Description

@gpambrozio

Describe the bug

When trying to start Bugsnag on a Watch app (not an extension) the app crashes when trying to call [WKExtension sharedExtension] as this only works on extensions, not on a watch app that can run as a standalone app.

Steps to reproduce

  1. On latest XCode, create a new Apple Watch app.
  2. Follow instructions to integrate Bugsnag
  3. Run app
  4. XCode will stop at the crash mentioned above

Environment

  • Bugsnag version: 6.27.2
  • watchOS version(s): 9
  • Simulator or physical device: Any watch
  • Xcode version: 14.3.1

Crash screenshot:

CleanShot 2023-09-14 at 11 44 29

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogWe hope to fix this feature/bug in the futurefeature requestRequest for a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions