The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of RelatedDB, reference 1.1.6 (a8c0f4), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 05:25:09 UTC.

Swift 6 data race errors: 5

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/relatedcode/RelatedDB.git
Reference: 1.1.6
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/relatedcode/RelatedDB
 * tag               1.1.6      -> FETCH_HEAD
HEAD is now at a8c0f49 1.1.6
Cloned https://github.com/relatedcode/RelatedDB.git
Revision (git rev-parse @):
a8c0f4972a05bf33ecdfd9a699a11d7e04c1114f
SUCCESS checkout https://github.com/relatedcode/RelatedDB.git at 1.1.6
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "relateddb",
      "name": "RelatedDB",
      "url": "https://github.com/relatedcode/RelatedDB.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/RelatedDB",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/relatedcode/RelatedDB.git
[1/250] Fetching relateddb
Fetched https://github.com/relatedcode/RelatedDB.git from cache (1.22s)
Creating working copy for https://github.com/relatedcode/RelatedDB.git
Working copy of https://github.com/relatedcode/RelatedDB.git resolved at 1.1.6 (a8c0f49)
warning: '.resolve-product-dependencies': dependency 'relateddb' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/relatedcode/RelatedDB.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/4] Write sources
[1/4] Write swift-version--7754E27361AE5C74.txt
[3/14] Compiling RelatedDB RDDate.swift
/Users/admin/builder/spi-builder-workspace/RelatedDB/Sources/Tools/RDDate.swift:22:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RDDate' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | //-----------------------------------------------------------------------------------------------------------------------------------------------
15 | public class RDDate: NSObject {
   |              `- note: class 'RDDate' does not conform to the 'Sendable' protocol
16 |
17 | 	private var formatterCustom: DateFormatter?
   :
20 |
21 | 	//-------------------------------------------------------------------------------------------------------------------------------------------
22 | 	static let shared: RDDate = {
   |             |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RDDate' may have shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: annotate 'shared' 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
23 | 		let instance = RDDate()
24 | 		return instance
[4/15] Compiling RelatedDB RDLogger.swift
/Users/admin/builder/spi-builder-workspace/RelatedDB/Sources/Tools/RDLogger.swift:20:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RDLogger' may have shared mutable state; this is an error in the Swift 6 language mode
 13 |
 14 | //-----------------------------------------------------------------------------------------------------------------------------------------------
 15 | public class RDLogger: NSObject {
    |              `- note: class 'RDLogger' does not conform to the 'Sendable' protocol
 16 |
 17 | 	private var key: String?
 18 |
 19 | 	//-------------------------------------------------------------------------------------------------------------------------------------------
 20 | 	static let shared: RDLogger = {
    |             |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RDLogger' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'shared' 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
 21 | 		let instance = RDLogger()
 22 | 		return instance
[5/15] Compiling RelatedDB RDatabase.swift
/Users/admin/builder/spi-builder-workspace/RelatedDB/Sources/Core/RDatabase.swift:73:5: warning: capture of 'block' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  71 | 		queue.async {
  72 | 			autoreleasepool {
  73 | 				block()
     |     |- warning: capture of 'block' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
     |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
  74 | 			}
  75 | 		}
/Users/admin/builder/spi-builder-workspace/RelatedDB/Sources/Core/RDatabase.swift:73:5: warning: capture of 'block' with non-sendable type '() -> Void' in an isolated closure; this is an error in the Swift 6 language mode
  71 | 		queue.async {
  72 | 			autoreleasepool {
  73 | 				block()
     |     |- warning: capture of 'block' with non-sendable type '() -> Void' in an isolated closure; this is an error in the Swift 6 language mode
     |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
  74 | 			}
  75 | 		}
[6/15] Compiling RelatedDB RDDebug.swift
/Users/admin/builder/spi-builder-workspace/RelatedDB/Sources/Tools/RDDebug.swift:29:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RDDebug' may have shared mutable state; this is an error in the Swift 6 language mode
 22 |
 23 | //-----------------------------------------------------------------------------------------------------------------------------------------------
 24 | public class RDDebug: NSObject {
    |              `- note: class 'RDDebug' does not conform to the 'Sendable' protocol
 25 |
 26 | 	private var debugLevel: RDDebugLevel = .all
 27 |
 28 | 	//-------------------------------------------------------------------------------------------------------------------------------------------
 29 | 	static let shared: RDDebug = {
    |             |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RDDebug' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'shared' 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
 30 | 		let instance = RDDebug()
 31 | 		return instance
[7/15] Compiling RelatedDB RDSchema.swift
[8/15] Compiling RelatedDB RDSchemas.swift
/Users/admin/builder/spi-builder-workspace/RelatedDB/Sources/Core/RDSchemas.swift:20:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RDSchemas' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | //-----------------------------------------------------------------------------------------------------------------------------------------------
15 | class RDSchemas: NSObject {
   |       `- note: class 'RDSchemas' does not conform to the 'Sendable' protocol
16 |
17 | 	private var schemas: [String: RDSchema] = [:]
18 |
19 | 	//-------------------------------------------------------------------------------------------------------------------------------------------
20 | 	static let shared: RDSchemas = {
   |             |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RDSchemas' may have shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: annotate 'shared' 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
21 | 		let instance = RDSchemas()
22 | 		return instance
[9/15] Compiling RelatedDB RDExecute.swift
[10/15] Compiling RelatedDB RDObject.swift
[11/15] Compiling RelatedDB RDCryptor.swift
/Users/admin/builder/spi-builder-workspace/RelatedDB/Sources/Tools/RDCryptor.swift:21:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RDCryptor' may have shared mutable state; this is an error in the Swift 6 language mode
 14 |
 15 | //-----------------------------------------------------------------------------------------------------------------------------------------------
 16 | public class RDCryptor: NSObject {
    |              `- note: class 'RDCryptor' does not conform to the 'Sendable' protocol
 17 |
 18 | 	private var password = "1234567890abcdxyz"
 19 |
 20 | 	//-------------------------------------------------------------------------------------------------------------------------------------------
 21 | 	static let shared: RDCryptor = {
    |             |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RDCryptor' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'shared' 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
 22 | 		let instance = RDCryptor()
 23 | 		return instance
[12/15] Emitting module RelatedDB
/Users/admin/builder/spi-builder-workspace/RelatedDB/Sources/Core/RDSchemas.swift:20:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RDSchemas' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | //-----------------------------------------------------------------------------------------------------------------------------------------------
15 | class RDSchemas: NSObject {
   |       `- note: class 'RDSchemas' does not conform to the 'Sendable' protocol
16 |
17 | 	private var schemas: [String: RDSchema] = [:]
18 |
19 | 	//-------------------------------------------------------------------------------------------------------------------------------------------
20 | 	static let shared: RDSchemas = {
   |             |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RDSchemas' may have shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: annotate 'shared' 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
21 | 		let instance = RDSchemas()
22 | 		return instance
/Users/admin/builder/spi-builder-workspace/RelatedDB/Sources/Tools/RDCryptor.swift:21:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RDCryptor' may have shared mutable state; this is an error in the Swift 6 language mode
 14 |
 15 | //-----------------------------------------------------------------------------------------------------------------------------------------------
 16 | public class RDCryptor: NSObject {
    |              `- note: class 'RDCryptor' does not conform to the 'Sendable' protocol
 17 |
 18 | 	private var password = "1234567890abcdxyz"
 19 |
 20 | 	//-------------------------------------------------------------------------------------------------------------------------------------------
 21 | 	static let shared: RDCryptor = {
    |             |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RDCryptor' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'shared' 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
 22 | 		let instance = RDCryptor()
 23 | 		return instance
/Users/admin/builder/spi-builder-workspace/RelatedDB/Sources/Tools/RDDate.swift:22:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RDDate' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | //-----------------------------------------------------------------------------------------------------------------------------------------------
15 | public class RDDate: NSObject {
   |              `- note: class 'RDDate' does not conform to the 'Sendable' protocol
16 |
17 | 	private var formatterCustom: DateFormatter?
   :
20 |
21 | 	//-------------------------------------------------------------------------------------------------------------------------------------------
22 | 	static let shared: RDDate = {
   |             |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RDDate' may have shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: annotate 'shared' 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
23 | 		let instance = RDDate()
24 | 		return instance
/Users/admin/builder/spi-builder-workspace/RelatedDB/Sources/Tools/RDDebug.swift:29:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RDDebug' may have shared mutable state; this is an error in the Swift 6 language mode
 22 |
 23 | //-----------------------------------------------------------------------------------------------------------------------------------------------
 24 | public class RDDebug: NSObject {
    |              `- note: class 'RDDebug' does not conform to the 'Sendable' protocol
 25 |
 26 | 	private var debugLevel: RDDebugLevel = .all
 27 |
 28 | 	//-------------------------------------------------------------------------------------------------------------------------------------------
 29 | 	static let shared: RDDebug = {
    |             |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RDDebug' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'shared' 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
 30 | 		let instance = RDDebug()
 31 | 		return instance
/Users/admin/builder/spi-builder-workspace/RelatedDB/Sources/Tools/RDLogger.swift:20:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RDLogger' may have shared mutable state; this is an error in the Swift 6 language mode
 13 |
 14 | //-----------------------------------------------------------------------------------------------------------------------------------------------
 15 | public class RDLogger: NSObject {
    |              `- note: class 'RDLogger' does not conform to the 'Sendable' protocol
 16 |
 17 | 	private var key: String?
 18 |
 19 | 	//-------------------------------------------------------------------------------------------------------------------------------------------
 20 | 	static let shared: RDLogger = {
    |             |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RDLogger' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'shared' 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
 21 | 		let instance = RDLogger()
 22 | 		return instance
[13/15] Compiling RelatedDB RDRuntime.swift
[13/15] Write Objects.LinkFileList
[14/15] Archiving libRelatedDB.a
Build complete! (16.10s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "RelatedDB",
  "name" : "RelatedDB",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "RelatedDB",
      "targets" : [
        "RelatedDB"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RelatedDB",
      "module_type" : "SwiftTarget",
      "name" : "RelatedDB",
      "path" : "RelatedDB",
      "product_memberships" : [
        "RelatedDB"
      ],
      "sources" : [
        "Sources/Core/RDExecute.swift",
        "Sources/Core/RDObject.swift",
        "Sources/Core/RDSchema.swift",
        "Sources/Core/RDSchemas.swift",
        "Sources/Core/RDatabase.swift",
        "Sources/Tools/RDCryptor.swift",
        "Sources/Tools/RDDate.swift",
        "Sources/Tools/RDDebug.swift",
        "Sources/Tools/RDLogger.swift",
        "Sources/Tools/RDRuntime.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.