Skip to content

main-actor isolated code warning after updating to the latest package combinations sqlitedata 1.1.0 & . structured queries 0.22.1 #241

@ajaxharg

Description

@ajaxharg

Description

I have >1000 errors similar to below after updating packages. The error is in the macro generated @table code.

/var/folders/d2/_0my_0s95fvfd4025q6ysx3m0000gn/T/swift-generated-sources/@_swiftmacro_19PointFreeIssueTest27testCTE5TablefMe.swift:1:54 Conformance of 'testCTE' to protocol 'Table' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode

Tested working sqlitedata v 1.0.0 with structured queries .21.0.
Not working with v 1.1 & .22.1

I also raised the issue on slack with the minimal project that demonstrates the issue. Vanilla Xcode project with a single @table struct TableA { let id : Int, var name : String}

Image

Checklist

  • I have determined whether this bug is also reproducible in a vanilla SwiftUI project.
  • I have determined whether this bug is also reproducible in a vanilla GRDB project.
  • If possible, I've reproduced the issue using the main branch of this package.
  • This issue hasn't been addressed in an existing GitHub issue or discussion.

Expected behavior

No response

Actual behavior

No response

Reproducing project

No response

SQLiteData version information

1.1.0

Sharing version information

No response

GRDB version information

No response

Destination operating system

26

Xcode version information

26.0.1

Swift Compiler version information

swift-driver version: 1.127.14.1 Apple Swift version 6.2 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
Target: arm64-apple-macosx26.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions