Skip to content

Commit 90bcf2e

Browse files
author
Ignacio Bonafonte
authored
Merge pull request #224 from open-telemetry/fix-appletv-linking
Fix appleTV linking when using URLSession instrumentation. Avoid linking CoreTelephony when platform is not iOS, this dependency is brought to the final user of the library and fails always in the case of appleTV
2 parents 13ecada + b880b6e commit 90bcf2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ let package = Package(
7070
.target(name: "NetworkStatus",
7171
dependencies: ["Reachability", "OpenTelemetryApi"],
7272
path: "Sources/Instrumentation/NetworkStatus",
73-
linkerSettings: [.linkedFramework("CoreTelephony")]),
73+
linkerSettings: [.linkedFramework("CoreTelephony", .when(platforms: [.iOS], configuration: nil))]),
7474
.target(name: "SignPostIntegration",
7575
dependencies: ["OpenTelemetrySdk"],
7676
path: "Sources/Instrumentation/SignPostIntegration",

0 commit comments

Comments
 (0)