Open yulian948 opened 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.
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.
Describe the bug
Trying to add bugsnag-cocoa-performance library to my VisionOS app, but receive build errors (see screenshot).
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