TelemetryDeck / SwiftSDK

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

SwiftUI Hello World app wouldn't build with SDK version 2.4.1 #191

Open nivbp7 opened 4 weeks ago

nivbp7 commented 4 weeks ago

Hello, I've created a new Xcode project. I've selected SwiftUI as the interface. I've added the TelemetryDeck SDK, as described in this guide, where the Dependency Rule is set to Up to Next Major Version and the selected version is 2.4.1 release link. Doing just that (not even importing TelemetryDeck to any file or Initializing the package, and the app fails during the build phase. The failure is in the TelemetryClient file, in this line:

nonisolated(unsafe)

nonisolated can not be applied to stored properties

If I change the Dependency Rule to Exact Version and the selected version 2.3.0, the app can be built and run.

My setup: Xcode: Version 15.0.1 (15A507) macOS: 13.6 (22G120) mac: MacBook Pro 13-inch, 2020, Four Thunderbolt 3 ports, 2 GHz Quad-Core Intel Core i5 simulator: iPhone 13 Pro, iOS 17.0.1

gparadelo commented 3 hours ago

Same issue with version 2.5.0