Replies: 4 comments 1 reply
-
|
if I write the following to set up a CTE, then I also got the same errors in 1.0.0 and 0.21. If @selection is deleted, the code compiles without errors. @Table @Selection
struct lastLocationDate {
let queenID:Queen.ID
let date:Date
} |
Beta Was this translation helpful? Give feedback.
-
|
The reminders app example compiles just fine. Yet a vanilla app with just a schema file won't without a lot of conformance warnings warnings. I tried with various targets, swift lang version and the example app seems ok. Checking the packages used, the GRDB version does seem to be an older variant than the one pulled in if I use the latest sqlitedate package. vanilla app example: |
Beta Was this translation helpful? Give feedback.
-
|
My app is compiling with warnings after changing to swift compiler 6, targeting iOS 26 and default actor isolation: non-isolated actors. I can't change to default: Main-actors as it won't compile the @selection. The vanilla set up from Xcode before was no compiler selected, iOS 18 and main actors. I set the precompiled key defaults write com.apple.dt.Xcode IDEPackageEnablePrebuilts NO which finally seemed to fix the errors. It is hard to know if that definitely affected the build as sometimes a change made no difference until the second compile. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @ajaxharg, the project you provided does not produce any errors for me:
I'm not really sure what is going on with your set up, but either way I do not think it's a problem with the library. I am going to convert this to a discussion for now. Please feel free to continue the conversation over there! |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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}
Checklist
mainbranch of this package.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
Beta Was this translation helpful? Give feedback.
All reactions