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
12 stars 9 forks source link

No support for macOS #256

Open mpdifran opened 8 months ago

mpdifran commented 8 months ago

Describe the bug

My app is a universal app that runs on iOS, iPadOS, and macOS. Because of UIKit imports (which does not exist on macOS), I cannot link this library in my app.

Steps to reproduce

  1. Create a universal app in SwiftUI that runs on iOS, iPadOS, and macOS
  2. Link bugsnag-cocoa-performance.
  3. Try and archive for macOS.

Environment

mclack commented 7 months ago

Hi @mpdifran

BugSnag Performance does not currently support macOS applications, so we would not expect this to work out-of-the-box. You can see a list of officially supported platforms in our documentation here: https://docs.bugsnag.com/performance/integration-guides/

We are going to discuss what would be required to add Performance support for macOS, and we'll make sure to update this thread when we have more information.

mclack commented 7 months ago

Hi @mpdifran

Thanks for your patience.

We have added an item to our backlog to further investigate adding Performance support for macOS. We're currently unable to provide an ETA on when this could be looked at, but we will make sure to update this thread again regarding any future developments around this.

mpdifran commented 7 months ago

Thank you for the update!

gpambrozio commented 4 months ago

I was having a similar issue for watchOS. For reference, in my case, we use swift package manager and on our package.swift file we can limit it being compiled for iOS only like this:

    static var bugsnagPerformance: Target.Dependency {
        .product(name: "BugsnagPerformance", package: "bugsnag-cocoa-performance", condition: .when(platforms: [.iOS]))
    }
clr182 commented 4 months ago

Hi @gpambrozio

Thank you for sharing. I have added this as feedback on our backlog item. Once we have more information we will be sure to update this thread.