bugsnag / bugsnag-cocoa-performance

Monitor the start-up, screen loading and network requests of your iOS app and see the results in your BugSnag dashboard.
https://docs.bugsnag.com/performance/integration-guides/ios
MIT License
11 stars 8 forks source link

Support for visionOS #275

Open yulian948 opened 2 weeks ago

yulian948 commented 2 weeks ago

Describe the bug

Trying to add bugsnag-cocoa-performance library to my VisionOS app, but receive build errors (see screenshot).

Screenshot 2024-06-20 at 4 33 38 PM

Errors are caused by the CoreTelephony framework unavailability on VisionOS. It seems that simple conditional compilation (#if TARGET_OS_IOS) should fix the issues.

Steps to reproduce

Create an app in SwiftUI that runs on VisionOS Link bugsnag-cocoa-performance. Try to build the app

Environment

BugSnag Performance library version: 1.6.0 VisionOS version: 1.1 Simulator or physical device: Both Xcode version: 15.3 Swift version (if applicable): N.A

matthewjhowells commented 2 weeks ago

Hi @yulian948 ,

bugsnag-cocoa-performance is currently only supported for iOS applications. We’ve raised some work to investigate supporting BugSnag performance in visionOS, and while I don’t have an ETA I can share for this, we will be sure to update this thread once we have any updates.

It’s worth noting that the BugSnag notifiers are open source, so in the meantime you could try forking the bugsnag-cocoa-performance repo and try the #if TARGET_OS_IOS change you have suggested. Although please note that we would not be able to provide any support if issues occur.

yulian948 commented 2 weeks ago

Hi @matthewjhowells , Thanks for your response. I will not use bugsnag-cocoa-performance now then, but will add it to my app once it becomes officially available for VisionOS.