Skip to content

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

Closed
@nivbp7

Description

@nivbp7

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions