You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.1release 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
The text was updated successfully, but these errors were encountered:
Thank you for reporting this. I just investigated and found that the nonisolated(unsafe) was introduced via SE-412 in Swift 5.10, which shipped in a later version of Xcode. Unfortunately, later versions don't show that this was missing in Swift 5.9 even though the SDK defines Swift 5.9 as its target.
I rewrote the code to use a different approach without making use of nonisolated(unsafe) so we can reinstate support for Swift 5.9. Just waiting for #207 to get merged, should be fixed in the next update!
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 toUp to Next Major Version
and the selected version is2.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 can not be applied to stored properties
If I change the
Dependency Rule
toExact Version
and the selected version2.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
The text was updated successfully, but these errors were encountered: