This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 5

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/relatedcode/RelatedDB.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/relatedcode/RelatedDB
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/relatedcode/RelatedDB.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/4] Write sources
[1/4] Write swift-version-6F35C1178C84523A.txt
[3/14] 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
[4/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
[5/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
[6/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 | 		}
[7/15] Compiling RelatedDB RDExecute.swift
[8/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
[9/15] Compiling RelatedDB RDObject.swift
[10/15] 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
[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] Compiling RelatedDB RDSchema.swift
[13/15] Compiling RelatedDB RDRuntime.swift
[13/15] Write Objects.LinkFileList
[14/15] Archiving libRelatedDB.a
Build complete! (23.38s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.