Build Information
Successful build of SQLiteExpress with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 15
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/objecthub/swift-sqliteexpress.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/objecthub/swift-sqliteexpress
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at e420f6e Prepared release 1.0.3.
Cloned https://github.com/objecthub/swift-sqliteexpress.git
Revision (git rev-parse @):
e420f6eef3b90d44d92f39b1f899a8aa662f57a7
SUCCESS checkout https://github.com/objecthub/swift-sqliteexpress.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/objecthub/swift-sqliteexpress.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/7] Compiling SQLiteExpress SQLiteStatement.swift
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteStatement.swift:38:22: warning: static property 'dateFormatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | /// Formatter for reading and writing dates.
38 | private static var dateFormatter: DateFormatter = {
| |- warning: static property 'dateFormatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dateFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | let formatter = DateFormatter()
40 | formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSX"
[4/7] Compiling SQLiteExpress SQLiteDatabase.swift
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:30:23: warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
| |- warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
32 | public static let create = OpenOptions(rawValue: SQLITE_OPEN_CREATE)
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:31:23: warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
| |- warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | public static let create = OpenOptions(rawValue: SQLITE_OPEN_CREATE)
33 | public static let noMutex = OpenOptions(rawValue: SQLITE_OPEN_NOMUTEX)
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:32:23: warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
32 | public static let create = OpenOptions(rawValue: SQLITE_OPEN_CREATE)
| |- warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'create' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | public static let noMutex = OpenOptions(rawValue: SQLITE_OPEN_NOMUTEX)
34 | public static let fullMutex = OpenOptions(rawValue: SQLITE_OPEN_FULLMUTEX)
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:33:23: warning: static property 'noMutex' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
32 | public static let create = OpenOptions(rawValue: SQLITE_OPEN_CREATE)
33 | public static let noMutex = OpenOptions(rawValue: SQLITE_OPEN_NOMUTEX)
| |- warning: static property 'noMutex' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noMutex' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | public static let fullMutex = OpenOptions(rawValue: SQLITE_OPEN_FULLMUTEX)
35 | public static let sharedCache = OpenOptions(rawValue: SQLITE_OPEN_SHAREDCACHE)
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:34:23: warning: static property 'fullMutex' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
32 | public static let create = OpenOptions(rawValue: SQLITE_OPEN_CREATE)
33 | public static let noMutex = OpenOptions(rawValue: SQLITE_OPEN_NOMUTEX)
34 | public static let fullMutex = OpenOptions(rawValue: SQLITE_OPEN_FULLMUTEX)
| |- warning: static property 'fullMutex' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fullMutex' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | public static let sharedCache = OpenOptions(rawValue: SQLITE_OPEN_SHAREDCACHE)
36 | public static let privateCache = OpenOptions(rawValue: SQLITE_OPEN_PRIVATECACHE)
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:35:23: warning: static property 'sharedCache' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
:
33 | public static let noMutex = OpenOptions(rawValue: SQLITE_OPEN_NOMUTEX)
34 | public static let fullMutex = OpenOptions(rawValue: SQLITE_OPEN_FULLMUTEX)
35 | public static let sharedCache = OpenOptions(rawValue: SQLITE_OPEN_SHAREDCACHE)
| |- warning: static property 'sharedCache' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sharedCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | public static let privateCache = OpenOptions(rawValue: SQLITE_OPEN_PRIVATECACHE)
37 | public static let protectionComplete = OpenOptions(rawValue:
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:36:23: warning: static property 'privateCache' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
:
34 | public static let fullMutex = OpenOptions(rawValue: SQLITE_OPEN_FULLMUTEX)
35 | public static let sharedCache = OpenOptions(rawValue: SQLITE_OPEN_SHAREDCACHE)
36 | public static let privateCache = OpenOptions(rawValue: SQLITE_OPEN_PRIVATECACHE)
| |- warning: static property 'privateCache' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'privateCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public static let protectionComplete = OpenOptions(rawValue:
38 | SQLITE_OPEN_FILEPROTECTION_COMPLETE)
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:37:23: warning: static property 'protectionComplete' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
:
35 | public static let sharedCache = OpenOptions(rawValue: SQLITE_OPEN_SHAREDCACHE)
36 | public static let privateCache = OpenOptions(rawValue: SQLITE_OPEN_PRIVATECACHE)
37 | public static let protectionComplete = OpenOptions(rawValue:
| |- warning: static property 'protectionComplete' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'protectionComplete' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | SQLITE_OPEN_FILEPROTECTION_COMPLETE)
39 | public static let protectionCompleteUnlessOpen = OpenOptions(rawValue:
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:39:23: warning: static property 'protectionCompleteUnlessOpen' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
:
37 | public static let protectionComplete = OpenOptions(rawValue:
38 | SQLITE_OPEN_FILEPROTECTION_COMPLETE)
39 | public static let protectionCompleteUnlessOpen = OpenOptions(rawValue:
| |- warning: static property 'protectionCompleteUnlessOpen' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'protectionCompleteUnlessOpen' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN)
41 | public static let protectionCompleteUntilFirstUserAuth = OpenOptions(rawValue:
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:41:23: warning: static property 'protectionCompleteUntilFirstUserAuth' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
:
39 | public static let protectionCompleteUnlessOpen = OpenOptions(rawValue:
40 | SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN)
41 | public static let protectionCompleteUntilFirstUserAuth = OpenOptions(rawValue:
| |- warning: static property 'protectionCompleteUntilFirstUserAuth' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'protectionCompleteUntilFirstUserAuth' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION)
43 | public static let protectionNone = OpenOptions(rawValue: SQLITE_OPEN_FILEPROTECTION_NONE)
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:43:23: warning: static property 'protectionNone' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
:
41 | public static let protectionCompleteUntilFirstUserAuth = OpenOptions(rawValue:
42 | SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION)
43 | public static let protectionNone = OpenOptions(rawValue: SQLITE_OPEN_FILEPROTECTION_NONE)
| |- warning: static property 'protectionNone' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'protectionNone' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | public static let `default`: OpenOptions = [.readWrite, .create]
45 | public static let all: OpenOptions = [.readOnly, .readWrite, .create, .noMutex, .fullMutex,
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:44:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
:
42 | SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION)
43 | public static let protectionNone = OpenOptions(rawValue: SQLITE_OPEN_FILEPROTECTION_NONE)
44 | public static let `default`: OpenOptions = [.readWrite, .create]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | public static let all: OpenOptions = [.readOnly, .readWrite, .create, .noMutex, .fullMutex,
46 | .sharedCache, .privateCache]
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:45:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
:
43 | public static let protectionNone = OpenOptions(rawValue: SQLITE_OPEN_FILEPROTECTION_NONE)
44 | public static let `default`: OpenOptions = [.readWrite, .create]
45 | public static let all: OpenOptions = [.readOnly, .readWrite, .create, .noMutex, .fullMutex,
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | .sharedCache, .privateCache]
47 |
[5/7] Emitting module SQLiteExpress
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:30:23: warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
| |- warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
32 | public static let create = OpenOptions(rawValue: SQLITE_OPEN_CREATE)
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:31:23: warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
| |- warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | public static let create = OpenOptions(rawValue: SQLITE_OPEN_CREATE)
33 | public static let noMutex = OpenOptions(rawValue: SQLITE_OPEN_NOMUTEX)
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:32:23: warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
32 | public static let create = OpenOptions(rawValue: SQLITE_OPEN_CREATE)
| |- warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'create' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | public static let noMutex = OpenOptions(rawValue: SQLITE_OPEN_NOMUTEX)
34 | public static let fullMutex = OpenOptions(rawValue: SQLITE_OPEN_FULLMUTEX)
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:33:23: warning: static property 'noMutex' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
32 | public static let create = OpenOptions(rawValue: SQLITE_OPEN_CREATE)
33 | public static let noMutex = OpenOptions(rawValue: SQLITE_OPEN_NOMUTEX)
| |- warning: static property 'noMutex' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noMutex' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | public static let fullMutex = OpenOptions(rawValue: SQLITE_OPEN_FULLMUTEX)
35 | public static let sharedCache = OpenOptions(rawValue: SQLITE_OPEN_SHAREDCACHE)
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:34:23: warning: static property 'fullMutex' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
32 | public static let create = OpenOptions(rawValue: SQLITE_OPEN_CREATE)
33 | public static let noMutex = OpenOptions(rawValue: SQLITE_OPEN_NOMUTEX)
34 | public static let fullMutex = OpenOptions(rawValue: SQLITE_OPEN_FULLMUTEX)
| |- warning: static property 'fullMutex' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fullMutex' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | public static let sharedCache = OpenOptions(rawValue: SQLITE_OPEN_SHAREDCACHE)
36 | public static let privateCache = OpenOptions(rawValue: SQLITE_OPEN_PRIVATECACHE)
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:35:23: warning: static property 'sharedCache' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
:
33 | public static let noMutex = OpenOptions(rawValue: SQLITE_OPEN_NOMUTEX)
34 | public static let fullMutex = OpenOptions(rawValue: SQLITE_OPEN_FULLMUTEX)
35 | public static let sharedCache = OpenOptions(rawValue: SQLITE_OPEN_SHAREDCACHE)
| |- warning: static property 'sharedCache' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sharedCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | public static let privateCache = OpenOptions(rawValue: SQLITE_OPEN_PRIVATECACHE)
37 | public static let protectionComplete = OpenOptions(rawValue:
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:36:23: warning: static property 'privateCache' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
:
34 | public static let fullMutex = OpenOptions(rawValue: SQLITE_OPEN_FULLMUTEX)
35 | public static let sharedCache = OpenOptions(rawValue: SQLITE_OPEN_SHAREDCACHE)
36 | public static let privateCache = OpenOptions(rawValue: SQLITE_OPEN_PRIVATECACHE)
| |- warning: static property 'privateCache' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'privateCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public static let protectionComplete = OpenOptions(rawValue:
38 | SQLITE_OPEN_FILEPROTECTION_COMPLETE)
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:37:23: warning: static property 'protectionComplete' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
:
35 | public static let sharedCache = OpenOptions(rawValue: SQLITE_OPEN_SHAREDCACHE)
36 | public static let privateCache = OpenOptions(rawValue: SQLITE_OPEN_PRIVATECACHE)
37 | public static let protectionComplete = OpenOptions(rawValue:
| |- warning: static property 'protectionComplete' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'protectionComplete' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | SQLITE_OPEN_FILEPROTECTION_COMPLETE)
39 | public static let protectionCompleteUnlessOpen = OpenOptions(rawValue:
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:39:23: warning: static property 'protectionCompleteUnlessOpen' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
:
37 | public static let protectionComplete = OpenOptions(rawValue:
38 | SQLITE_OPEN_FILEPROTECTION_COMPLETE)
39 | public static let protectionCompleteUnlessOpen = OpenOptions(rawValue:
| |- warning: static property 'protectionCompleteUnlessOpen' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'protectionCompleteUnlessOpen' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN)
41 | public static let protectionCompleteUntilFirstUserAuth = OpenOptions(rawValue:
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:41:23: warning: static property 'protectionCompleteUntilFirstUserAuth' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
:
39 | public static let protectionCompleteUnlessOpen = OpenOptions(rawValue:
40 | SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN)
41 | public static let protectionCompleteUntilFirstUserAuth = OpenOptions(rawValue:
| |- warning: static property 'protectionCompleteUntilFirstUserAuth' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'protectionCompleteUntilFirstUserAuth' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION)
43 | public static let protectionNone = OpenOptions(rawValue: SQLITE_OPEN_FILEPROTECTION_NONE)
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:43:23: warning: static property 'protectionNone' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
:
41 | public static let protectionCompleteUntilFirstUserAuth = OpenOptions(rawValue:
42 | SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION)
43 | public static let protectionNone = OpenOptions(rawValue: SQLITE_OPEN_FILEPROTECTION_NONE)
| |- warning: static property 'protectionNone' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'protectionNone' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | public static let `default`: OpenOptions = [.readWrite, .create]
45 | public static let all: OpenOptions = [.readOnly, .readWrite, .create, .noMutex, .fullMutex,
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:44:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
:
42 | SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION)
43 | public static let protectionNone = OpenOptions(rawValue: SQLITE_OPEN_FILEPROTECTION_NONE)
44 | public static let `default`: OpenOptions = [.readWrite, .create]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | public static let all: OpenOptions = [.readOnly, .readWrite, .create, .noMutex, .fullMutex,
46 | .sharedCache, .privateCache]
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteDatabase.swift:45:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public class SQLiteDatabase {
28 |
29 | public struct OpenOptions: OptionSet {
| `- note: consider making struct 'OpenOptions' conform to the 'Sendable' protocol
30 | public static let readOnly = OpenOptions(rawValue: SQLITE_OPEN_READONLY)
31 | public static let readWrite = OpenOptions(rawValue: SQLITE_OPEN_READWRITE)
:
43 | public static let protectionNone = OpenOptions(rawValue: SQLITE_OPEN_FILEPROTECTION_NONE)
44 | public static let `default`: OpenOptions = [.readWrite, .create]
45 | public static let all: OpenOptions = [.readOnly, .readWrite, .create, .noMutex, .fullMutex,
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'SQLiteDatabase.OpenOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | .sharedCache, .privateCache]
47 |
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteError.swift:30:14: warning: stored property 'errorCode' of 'Sendable'-conforming struct 'SQLiteError' has non-sendable type 'SQLiteResultCode'; this is an error in the Swift 6 language mode
28 |
29 | /// The corresponding error code
30 | public let errorCode: SQLiteResultCode
| `- warning: stored property 'errorCode' of 'Sendable'-conforming struct 'SQLiteError' has non-sendable type 'SQLiteResultCode'; this is an error in the Swift 6 language mode
31 |
32 | /// An optional string describing error details, e.g. the context of the error
:
79 | /// `SQLiteResultCode` enumerates all result codes that can be returned by the SQLite3 API.
80 | /// Both primary as well as extended result/error codes from SQLite3 are supported.
81 | public enum SQLiteResultCode: Hashable {
| `- note: consider making enum 'SQLiteResultCode' conform to the 'Sendable' protocol
82 | case ok
83 | case error
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteStatement.swift:38:22: warning: static property 'dateFormatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | /// Formatter for reading and writing dates.
38 | private static var dateFormatter: DateFormatter = {
| |- warning: static property 'dateFormatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dateFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | let formatter = DateFormatter()
40 | formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSX"
[6/7] Compiling SQLiteExpress SQLiteType.swift
[7/7] Compiling SQLiteExpress SQLiteError.swift
/Users/admin/builder/spi-builder-workspace/Sources/SQLiteExpress/SQLiteError.swift:30:14: warning: stored property 'errorCode' of 'Sendable'-conforming struct 'SQLiteError' has non-sendable type 'SQLiteResultCode'; this is an error in the Swift 6 language mode
28 |
29 | /// The corresponding error code
30 | public let errorCode: SQLiteResultCode
| `- warning: stored property 'errorCode' of 'Sendable'-conforming struct 'SQLiteError' has non-sendable type 'SQLiteResultCode'; this is an error in the Swift 6 language mode
31 |
32 | /// An optional string describing error details, e.g. the context of the error
:
79 | /// `SQLiteResultCode` enumerates all result codes that can be returned by the SQLite3 API.
80 | /// Both primary as well as extended result/error codes from SQLite3 are supported.
81 | public enum SQLiteResultCode: Hashable {
| `- note: consider making enum 'SQLiteResultCode' conform to the 'Sendable' protocol
82 | case ok
83 | case error
Build complete! (17.39s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SQLiteExpress",
"name" : "SQLiteExpress",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
},
{
"name" : "ios",
"version" : "12.0"
}
],
"products" : [
{
"name" : "SQLiteExpress",
"targets" : [
"SQLiteExpress"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "SQLiteExpressTests",
"module_type" : "SwiftTarget",
"name" : "SQLiteExpressTests",
"path" : "Tests/SQLiteExpressTests",
"sources" : [
"SQLiteExpressTests.swift"
],
"target_dependencies" : [
"SQLiteExpress"
],
"type" : "test"
},
{
"c99name" : "SQLiteExpress",
"module_type" : "SwiftTarget",
"name" : "SQLiteExpress",
"path" : "Sources/SQLiteExpress",
"product_memberships" : [
"SQLiteExpress"
],
"sources" : [
"SQLiteDatabase.swift",
"SQLiteError.swift",
"SQLiteStatement.swift",
"SQLiteType.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.