TelemetryDeck / SwiftSDK

Swift SDK for TelemetryDeck, a privacy-conscious analytics service for apps and websites.
https://telemetrydeck.com/
Other
158 stars 34 forks source link

Compilation Failure on watchOS #11

Closed sebj closed 3 years ago

sebj commented 3 years ago

When included in a watchOS target, this Telemetry library fails to compile with the following errors:

.../SourcePackages/checkouts/SwiftClient/Sources/TelemetryClient/TelemetryClient.swift:138:31: error: cannot find 'UIDevice' in scope
        return "\(platform) \(UIDevice.current.systemVersion)"
                              ^~~~~~~~
.../SourcePackages/checkouts/SwiftClient/Sources/TelemetryClient/TelemetryClient.swift:165:16: error: cannot find 'UIDevice' in scope
        return UIDevice.current.identifierForVendor?.uuidString ?? "unknown user \(systemVersion) \(buildNumber)"
winsmith commented 3 years ago

Oooh good catch! Thanks for reporting this, I'll issue an update ASAP! :)

winsmith commented 3 years ago

Hey @sebj, luckily it was an easy fix. Could you confirm that it works now in your project?

sebj commented 3 years ago

Thanks @winsmith – works now!