Build Information
Successful build of SwiftSQLite with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 4
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/moshegottlieb/SwiftSQLite.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/moshegottlieb/SwiftSQLite
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 1976f2d Updated version number on example
Cloned https://github.com/moshegottlieb/SwiftSQLite.git
Revision (git rev-parse @):
1976f2d8d8b0412151078d2b94770eb9f4daef2b
SUCCESS checkout https://github.com/moshegottlieb/SwiftSQLite.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/moshegottlieb/SwiftSQLite.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/11] Compiling SwiftSQLite Statement.swift
[4/11] Compiling SwiftSQLite Log.swift
[5/11] Compiling SwiftSQLite DatabaseError.swift
[6/11] Compiling SwiftSQLite Date+SQL.swift
[7/11] Compiling SwiftSQLite SQLResult.swift
[8/11] Emitting module SwiftSQLite
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSQLite/Database.swift:15:23: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// Set a default logger
15 | public static var logger: Log?
| |- warning: static property 'logger' 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 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
16 |
17 | /// Open mode
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSQLite/Database.swift:26:27: warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// Open mode
18 | public struct OpenMode : OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
19 | public init(rawValue:Int32){
20 | self.rawValue = rawValue
:
24 |
25 | /// The database is opened in read-only mode. If the database does not already exist, an error is returned.
26 | public static let readOnly = OpenMode(rawValue: SQLITE_OPEN_READONLY)
| |- warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' 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
27 | /// The database is opened for reading and writing if possible, or reading only if the file is write protected by the operating system. In either case the database must already exist, otherwise an error is returned.
28 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSQLite/Database.swift:28:27: warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// Open mode
18 | public struct OpenMode : OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
19 | public init(rawValue:Int32){
20 | self.rawValue = rawValue
:
26 | public static let readOnly = OpenMode(rawValue: SQLITE_OPEN_READONLY)
27 | /// The database is opened for reading and writing if possible, or reading only if the file is write protected by the operating system. In either case the database must already exist, otherwise an error is returned.
28 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
| |- warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' 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
29 | /// The database is opened for reading and writing, and is created if it does not already exist.
30 | public static let create = OpenMode(rawValue: SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSQLite/Database.swift:30:27: warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// Open mode
18 | public struct OpenMode : OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
19 | public init(rawValue:Int32){
20 | self.rawValue = rawValue
:
28 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
29 | /// The database is opened for reading and writing, and is created if it does not already exist.
30 | public static let create = OpenMode(rawValue: SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE)
| |- warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' 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
31 | }
32 |
[9/11] Compiling SwiftSQLite Database+Function.swift
[10/11] Compiling SwiftSQLite Database.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSQLite/Database.swift:15:23: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// Set a default logger
15 | public static var logger: Log?
| |- warning: static property 'logger' 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 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
16 |
17 | /// Open mode
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSQLite/Database.swift:26:27: warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// Open mode
18 | public struct OpenMode : OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
19 | public init(rawValue:Int32){
20 | self.rawValue = rawValue
:
24 |
25 | /// The database is opened in read-only mode. If the database does not already exist, an error is returned.
26 | public static let readOnly = OpenMode(rawValue: SQLITE_OPEN_READONLY)
| |- warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' 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
27 | /// The database is opened for reading and writing if possible, or reading only if the file is write protected by the operating system. In either case the database must already exist, otherwise an error is returned.
28 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSQLite/Database.swift:28:27: warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// Open mode
18 | public struct OpenMode : OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
19 | public init(rawValue:Int32){
20 | self.rawValue = rawValue
:
26 | public static let readOnly = OpenMode(rawValue: SQLITE_OPEN_READONLY)
27 | /// The database is opened for reading and writing if possible, or reading only if the file is write protected by the operating system. In either case the database must already exist, otherwise an error is returned.
28 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
| |- warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' 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
29 | /// The database is opened for reading and writing, and is created if it does not already exist.
30 | public static let create = OpenMode(rawValue: SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSQLite/Database.swift:30:27: warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// Open mode
18 | public struct OpenMode : OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
19 | public init(rawValue:Int32){
20 | self.rawValue = rawValue
:
28 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
29 | /// The database is opened for reading and writing, and is created if it does not already exist.
30 | public static let create = OpenMode(rawValue: SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE)
| |- warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' 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
31 | }
32 |
[11/11] Compiling SwiftSQLite SQLValue.swift
Build complete! (20.52s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftSQLite",
"name" : "SwiftSQLite",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftSQLite",
"targets" : [
"SwiftSQLite"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftSQLiteTests",
"module_type" : "SwiftTarget",
"name" : "SwiftSQLiteTests",
"path" : "Tests/SwiftSQLiteTests",
"sources" : [
"SwiftSQLiteTests.swift"
],
"target_dependencies" : [
"SwiftSQLite"
],
"type" : "test"
},
{
"c99name" : "SwiftSQLite",
"module_type" : "SwiftTarget",
"name" : "SwiftSQLite",
"path" : "Sources/SwiftSQLite",
"product_memberships" : [
"SwiftSQLite"
],
"sources" : [
"Database+Function.swift",
"Database.swift",
"DatabaseError.swift",
"Date+SQL.swift",
"Log.swift",
"SQLResult.swift",
"SQLValue.swift",
"Statement.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.