Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Gio2018 opened this issue Jun 5, 2024 · 1 comment
Labels
type:defect Bugs or weaknesses. The issue has to contain steps to reproduce.

Comments

@Gio2018
Copy link

Gio2018 commented Jun 5, 2024

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):

  • Device: any
  • OS: iOS: 16+
  • Browser: NA
  • Version: SnowplowTracker 6.0.3
@Gio2018 Gio2018 added the type:defect Bugs or weaknesses. The issue has to contain steps to reproduce. label Jun 5, 2024
@matus-tomlein
Copy link
Contributor

Hi @Gio2018, thanks for the report!

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

  • Do you want to use the TrackerController instance wrapped in a Sendable class? I don't see in your code if you have a Sendable implementation somewhere.
  • This is probably just my ignorance, but why does your class inherit from the package (see here)? I don't understand what that is achieving and whether that could cause any trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:defect Bugs or weaknesses. The issue has to contain steps to reproduce.
Projects
None yet
Development

No branches or pull requests

2 participants