elastic / apm-agent-ios

Apache License 2.0
32 stars 19 forks source link

fixed build issues with tvos and mac #222

Closed bryce-b closed 6 months ago

bryce-b commented 6 months ago

I added conditionals for all references to NetworkStatus which is only available for iOS based apps, and not available in mac catalyst (iOS apps on mac). This change is inline with the way opentelemetry-swift also includes this component.

additional issues corrected: tvos : mach signal handler is not available on tvos, so bsd type is used instead. Lifecycle instrumentation : only include the lifecycle instrumentation if UIKit is available. This may be extended for AppKit if there is interest.

Fixes #221