snowplow / snowplow-ios-tracker

Snowplow event tracker for Swift and Objective-C. Add analytics to your iOS, macOS, tvOS and watchOS apps and games
http://snowplow.io
Apache License 2.0
80 stars 92 forks source link

Stored property of `Sendable`-conforming class has non-sendable type any `TrackerController` #895

Open Gio2018 opened 1 month ago

Gio2018 commented 1 month ago

Describe the bug Adding a property that conforms to TrackerController to a Sendable type produces the warning described in the title. The warning needs to be addressed in order to prepare the code for Swift 6.

To Reproduce in this code, removing @preconcurrency from import SnowplowTracker produces the warning.

Expected behavior The warning should not appear.

Device information (please complete the following information):

matus-tomlein commented 1 month ago

Hi @Gio2018, thanks for the report!

Could you please help me understand the problem a bit better: