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 SwiftSerialization, reference 2.0.1 (864287), with Swift 6.0 for macOS (SPM) on 15 Sep 2024 14:40:15 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Andre-Pham/SwiftSerialization.git
Reference: 2.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Andre-Pham/SwiftSerialization
 * tag               2.0.1      -> FETCH_HEAD
HEAD is now at 8642876 Further documentation for methods that don't executing using the queue within the SerializationDatabase
Cloned https://github.com/Andre-Pham/SwiftSerialization.git
Revision (git rev-parse @):
8642876acf667390685661f14dd79e6a438f55bf
SUCCESS checkout https://github.com/Andre-Pham/SwiftSerialization.git at 2.0.1
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Andre-Pham/SwiftSerialization.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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
[2/4] Copying PrivacyInfo.xcprivacy
[3/4] Write swift-version-117DEE11B69C53C9.txt
[5/7] Compiling SwiftyJSON resource_bundle_accessor.swift
[6/7] Compiling SwiftyJSON SwiftyJSON.swift
[7/7] Emitting module SwiftyJSON
[8/16] Compiling SwiftSerialization Storable.swift
[9/16] Compiling SwiftSerialization Record.swift
[10/16] Compiling SwiftSerialization SerializationDatabase.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSerialization/Data/Legacy.swift:17:29: 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
15 |     static private(set) var newClassNames: [String: String] = [:] // old: new
16 |     /// A dictionary of class names and their legacy counterparts
17 |     static private(set) 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: annotate 'oldClassNames' 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
18 |
19 |     /// Add a class name refactoring to consider when restoring objects that were written before the refactor.
[11/16] Compiling SwiftSerialization DatabaseTarget.swift
[12/16] Compiling SwiftSerialization Metadata.swift
[13/16] Compiling SwiftSerialization TestObjects.swift
[14/16] Emitting module SwiftSerialization
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSerialization/Data/Legacy.swift:15:29: 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
13 |
14 |     /// A dictionary of class names that may be stored and have been since refactored to a new name
15 |     static private(set) 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: annotate 'newClassNames' 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 |     /// A dictionary of class names and their legacy counterparts
17 |     static private(set) var oldClassNames: [String: [String]] = [:] // new: old
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSerialization/Data/Legacy.swift:17:29: 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
15 |     static private(set) var newClassNames: [String: String] = [:] // old: new
16 |     /// A dictionary of class names and their legacy counterparts
17 |     static private(set) 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: annotate 'oldClassNames' 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
18 |
19 |     /// Add a class name refactoring to consider when restoring objects that were written before the refactor.
[15/16] Compiling SwiftSerialization DataObject.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSerialization/Data/Legacy.swift:15:29: 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
13 |
14 |     /// A dictionary of class names that may be stored and have been since refactored to a new name
15 |     static private(set) 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: annotate 'newClassNames' 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 |     /// A dictionary of class names and their legacy counterparts
17 |     static private(set) var oldClassNames: [String: [String]] = [:] // new: old
[16/16] Compiling SwiftSerialization Legacy.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSerialization/Data/Legacy.swift:15:29: 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
13 |
14 |     /// A dictionary of class names that may be stored and have been since refactored to a new name
15 |     static private(set) 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: annotate 'newClassNames' 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 |     /// A dictionary of class names and their legacy counterparts
17 |     static private(set) var oldClassNames: [String: [String]] = [:] // new: old
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSerialization/Data/Legacy.swift:17:29: 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
15 |     static private(set) var newClassNames: [String: String] = [:] // old: new
16 |     /// A dictionary of class names and their legacy counterparts
17 |     static private(set) 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: annotate 'oldClassNames' 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
18 |
19 |     /// Add a class name refactoring to consider when restoring objects that were written before the refactor.
Build complete! (18.15s)
Fetching https://github.com/SwiftyJSON/SwiftyJSON
[1/6105] Fetching swiftyjson
Fetched https://github.com/SwiftyJSON/SwiftyJSON from cache (1.42s)
Computing version for https://github.com/SwiftyJSON/SwiftyJSON
Computed https://github.com/SwiftyJSON/SwiftyJSON at 5.0.2 (0.62s)
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" : "SwiftSerialization",
  "name" : "SwiftSerialization",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftSerialization",
      "targets" : [
        "SwiftSerialization"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftSerializationTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftSerializationTests",
      "path" : "Tests/SwiftSerializationTests",
      "sources" : [
        "DataObjectTests.swift",
        "DatabaseTargetTests.swift",
        "LegacyTests.swift",
        "ThreadingTests.swift",
        "TransactionTests.swift"
      ],
      "target_dependencies" : [
        "SwiftSerialization"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftSerialization",
      "module_type" : "SwiftTarget",
      "name" : "SwiftSerialization",
      "path" : "Sources/SwiftSerialization",
      "product_dependencies" : [
        "SwiftyJSON"
      ],
      "product_memberships" : [
        "SwiftSerialization"
      ],
      "sources" : [
        "Data/DataObject.swift",
        "Data/Legacy.swift",
        "Data/Storable.swift",
        "Database/Database Targets/SQLite/SerializationDatabase.swift",
        "Database/DatabaseTarget.swift",
        "Database/Metadata.swift",
        "Database/Record.swift",
        "Testing/TestObjects.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.