The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SwiftLocal, reference main (800cd0), with Swift 6.1 for macOS (SPM) on 4 Dec 2025 18:47:05 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Andre-Pham/SwiftLocal.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Andre-Pham/SwiftLocal
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 800cd04 update lint rules
Cloned https://github.com/Andre-Pham/SwiftLocal.git
Revision (git rev-parse @):
800cd043cc4e25063a76b37948e2b245583c1f32
SUCCESS checkout https://github.com/Andre-Pham/SwiftLocal.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Andre-Pham/SwiftLocal.git
https://github.com/Andre-Pham/SwiftLocal.git
{
  "dependencies" : [
    {
      "identity" : "swiftyjson",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.0.0",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/SwiftyJSON/SwiftyJSON"
    }
  ],
  "manifest_display_name" : "SwiftLocal",
  "name" : "SwiftLocal",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftLocal",
      "targets" : [
        "SwiftLocal"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftLocalTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLocalTests",
      "path" : "Tests/SwiftLocalTests",
      "sources" : [
        "DataObjectTests.swift",
        "LegacyTests.swift",
        "LocalDatabaseTests.swift",
        "ThreadingTests.swift",
        "TransactionTests.swift"
      ],
      "target_dependencies" : [
        "SwiftLocal"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftLocal",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLocal",
      "path" : "Sources/SwiftLocal",
      "product_dependencies" : [
        "SwiftyJSON"
      ],
      "product_memberships" : [
        "SwiftLocal"
      ],
      "sources" : [
        "Data/DataObject.swift",
        "Data/Legacy.swift",
        "Data/Storable.swift",
        "Database/LocalDatabase.swift",
        "Database/Metadata.swift",
        "Database/Record.swift",
        "Testing/TestObjects.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/4] Copying PrivacyInfo.xcprivacy
[0/4] Write sources
[3/4] Write swift-version-2F0A5646E1D333AE.txt
[5/7] Compiling SwiftyJSON resource_bundle_accessor.swift
[6/7] Emitting module SwiftyJSON
[7/7] Compiling SwiftyJSON SwiftyJSON.swift
[8/15] Compiling SwiftLocal TestObjects.swift
[9/15] Compiling SwiftLocal Record.swift
[10/15] Compiling SwiftLocal Metadata.swift
[11/15] Compiling SwiftLocal Storable.swift
[12/15] Compiling SwiftLocal LocalDatabase.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocal/Database/LocalDatabase.swift:396:38: warning: capture of 'block' with non-sendable type '() throws -> T' in a '@Sendable' closure
394 |             self.databaseQueue.async {
395 |                 do {
396 |                     let result = try block()
    |                                      |- warning: capture of 'block' with non-sendable type '() throws -> T' in a '@Sendable' closure
    |                                      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
397 |                     continuation.resume(returning: result)
398 |                 } catch {
[13/15] Emitting module SwiftLocal
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocal/Data/Legacy.swift:12:38: warning: static property 'newClassNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | public enum Legacy {
11 |     /// A dictionary of class names that may be stored and have been since refactored to a new name
12 |     internal private(set) static var newClassNames = [String: String]() // old: new
   |                                      |- warning: static property 'newClassNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                      |- note: convert 'newClassNames' to a 'let' constant to make 'Sendable' shared state immutable
   |                                      |- note: add '@MainActor' to make static property 'newClassNames' part of global actor 'MainActor'
   |                                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |     /// A dictionary of class names and their legacy counterparts
14 |     internal private(set) static var oldClassNames = [String: [String]]() // new: old
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocal/Data/Legacy.swift:14:38: warning: static property 'oldClassNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |     internal private(set) static var newClassNames = [String: String]() // old: new
13 |     /// A dictionary of class names and their legacy counterparts
14 |     internal private(set) static var oldClassNames = [String: [String]]() // new: old
   |                                      |- warning: static property 'oldClassNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                      |- note: convert 'oldClassNames' to a 'let' constant to make 'Sendable' shared state immutable
   |                                      |- note: add '@MainActor' to make static property 'oldClassNames' part of global actor 'MainActor'
   |                                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     /// Add a class name refactoring to consider when restoring objects that were written before the refactor.
[14/15] Compiling SwiftLocal DataObject.swift
[15/15] Compiling SwiftLocal Legacy.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocal/Data/Legacy.swift:12:38: warning: static property 'newClassNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | public enum Legacy {
11 |     /// A dictionary of class names that may be stored and have been since refactored to a new name
12 |     internal private(set) static var newClassNames = [String: String]() // old: new
   |                                      |- warning: static property 'newClassNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                      |- note: convert 'newClassNames' to a 'let' constant to make 'Sendable' shared state immutable
   |                                      |- note: add '@MainActor' to make static property 'newClassNames' part of global actor 'MainActor'
   |                                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |     /// A dictionary of class names and their legacy counterparts
14 |     internal private(set) static var oldClassNames = [String: [String]]() // new: old
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLocal/Data/Legacy.swift:14:38: warning: static property 'oldClassNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |     internal private(set) static var newClassNames = [String: String]() // old: new
13 |     /// A dictionary of class names and their legacy counterparts
14 |     internal private(set) static var oldClassNames = [String: [String]]() // new: old
   |                                      |- warning: static property 'oldClassNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                      |- note: convert 'oldClassNames' to a 'let' constant to make 'Sendable' shared state immutable
   |                                      |- note: add '@MainActor' to make static property 'oldClassNames' part of global actor 'MainActor'
   |                                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     /// Add a class name refactoring to consider when restoring objects that were written before the refactor.
Build complete! (12.46s)
Fetching https://github.com/SwiftyJSON/SwiftyJSON
[1/6213] Fetching swiftyjson
Fetched https://github.com/SwiftyJSON/SwiftyJSON from cache (2.03s)
Computing version for https://github.com/SwiftyJSON/SwiftyJSON
Computed https://github.com/SwiftyJSON/SwiftyJSON at 5.0.2 (5.16s)
Creating working copy for https://github.com/SwiftyJSON/SwiftyJSON
Working copy of https://github.com/SwiftyJSON/SwiftyJSON resolved at 5.0.2
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swiftyjson",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.0.0",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/SwiftyJSON/SwiftyJSON"
    }
  ],
  "manifest_display_name" : "SwiftLocal",
  "name" : "SwiftLocal",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftLocal",
      "targets" : [
        "SwiftLocal"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftLocalTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLocalTests",
      "path" : "Tests/SwiftLocalTests",
      "sources" : [
        "DataObjectTests.swift",
        "LegacyTests.swift",
        "LocalDatabaseTests.swift",
        "ThreadingTests.swift",
        "TransactionTests.swift"
      ],
      "target_dependencies" : [
        "SwiftLocal"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftLocal",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLocal",
      "path" : "Sources/SwiftLocal",
      "product_dependencies" : [
        "SwiftyJSON"
      ],
      "product_memberships" : [
        "SwiftLocal"
      ],
      "sources" : [
        "Data/DataObject.swift",
        "Data/Legacy.swift",
        "Data/Storable.swift",
        "Database/LocalDatabase.swift",
        "Database/Metadata.swift",
        "Database/Record.swift",
        "Testing/TestObjects.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Done.