Skip to content

Commit b880b6e

Browse files
author
Ignacio Bonafonte
committed
Fix appleTV linking
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
1 parent 13ecada commit b880b6e

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)