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 Sworm, reference 1.3.0 (20742c), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 01:11:49 UTC.

Swift 6 data race errors: 1

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 -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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/prisma-ai/Sworm.git
Reference: 1.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/prisma-ai/Sworm
 * tag               1.3.0      -> FETCH_HEAD
HEAD is now at 20742cb swift 5.7 update
Cloned https://github.com/prisma-ai/Sworm.git
Revision (git rev-parse @):
20742cbcbc8b63ba58ebe5db4e3eb156addaa772
SUCCESS checkout https://github.com/prisma-ai/Sworm.git at 1.3.0
========================================
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": "sworm",
      "name": "Sworm",
      "url": "https://github.com/prisma-ai/Sworm.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Sworm",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/prisma-ai/Sworm.git
[1/336] Fetching sworm
Fetched https://github.com/prisma-ai/Sworm.git from cache (0.96s)
Creating working copy for https://github.com/prisma-ai/Sworm.git
Working copy of https://github.com/prisma-ai/Sworm.git resolved at 1.3.0 (20742cb)
warning: '.resolve-product-dependencies': dependency 'sworm' 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/prisma-ai/Sworm.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 -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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/29] Emitting module Sworm
[5/31] Compiling Sworm ManagedObjectContext.swift
[6/31] Compiling Sworm ManagedObjectSet.swift
[7/31] Compiling SwormTools ExternalBinaryDataEntityMigrationPolicy.swift
[8/31] Compiling SwormTools TestTool.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwormTools/TestTool.swift:6:18: warning: associated value 'invalidMigrationStepCount(_:expected:store:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SQLiteStoreDescription'; this is an error in the Swift 6 language mode
 4 |     public enum Migrations {
 5 |         public enum Error: Swift.Error {
 6 |             case invalidMigrationStepCount(Int?, expected: Int?, store: SQLiteStoreDescription)
   |                  `- warning: associated value 'invalidMigrationStepCount(_:expected:store:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SQLiteStoreDescription'; this is an error in the Swift 6 language mode
 7 |         }
 8 |
/Users/admin/builder/spi-builder-workspace/Sources/SwormTools/StoreDescription.swift:3:15: note: consider making struct 'SQLiteStoreDescription' conform to the 'Sendable' protocol
 1 | import CoreData
 2 |
 3 | public struct SQLiteStoreDescription {
   |               `- note: consider making struct 'SQLiteStoreDescription' conform to the 'Sendable' protocol
 4 |     public init(
 5 |         name: String,
[9/31] Compiling SwormTools StoreDescription.swift
[10/31] Compiling Sworm Attribute.swift
[11/31] Compiling Sworm AttributeError.swift
[12/31] Compiling Sworm Decode.swift
[13/31] Compiling Sworm Operators.swift
[14/31] Compiling Sworm Predicate.swift
[15/31] Compiling Sworm CompoundPredicate.swift
[16/31] Compiling Sworm InversePredicate.swift
[17/31] Compiling Sworm Relations.swift
[18/31] Compiling Sworm ComparisonPredicate.swift
[19/31] Compiling Sworm RawRepresentable.swift
[20/31] Compiling Sworm Extensions.swift
[21/31] Compiling Sworm Query.swift
[22/31] Compiling Sworm Request.swift
[23/31] Compiling Sworm ManagedObjectConvertible.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sworm/PersistentContainer.swift:74:34: warning: task-isolated value of type 'Result<T, any Error>' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
72 |             return try await withUnsafeThrowingContinuation { continuation in
73 |                 context.perform {
74 |                     continuation.resume(with: .init(catching: {
   |                                  `- warning: task-isolated value of type 'Result<T, any Error>' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
75 |                         try context.execute(reset, action)
76 |                     }))
[24/31] Compiling Sworm PersistentContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sworm/PersistentContainer.swift:74:34: warning: task-isolated value of type 'Result<T, any Error>' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
72 |             return try await withUnsafeThrowingContinuation { continuation in
73 |                 context.perform {
74 |                     continuation.resume(with: .init(catching: {
   |                                  `- warning: task-isolated value of type 'Result<T, any Error>' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
75 |                         try context.execute(reset, action)
76 |                     }))
[25/31] Compiling Sworm Primitives.swift
[26/31] Compiling Sworm Protocols.swift
[27/31] Compiling Sworm TextPredicate.swift
[28/31] Compiling Sworm ManagedObject.swift
[29/31] Emitting module SwormTools
/Users/admin/builder/spi-builder-workspace/Sources/SwormTools/TestTool.swift:6:18: warning: associated value 'invalidMigrationStepCount(_:expected:store:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SQLiteStoreDescription'; this is an error in the Swift 6 language mode
 4 |     public enum Migrations {
 5 |         public enum Error: Swift.Error {
 6 |             case invalidMigrationStepCount(Int?, expected: Int?, store: SQLiteStoreDescription)
   |                  `- warning: associated value 'invalidMigrationStepCount(_:expected:store:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SQLiteStoreDescription'; this is an error in the Swift 6 language mode
 7 |         }
 8 |
/Users/admin/builder/spi-builder-workspace/Sources/SwormTools/StoreDescription.swift:3:15: note: consider making struct 'SQLiteStoreDescription' conform to the 'Sendable' protocol
 1 | import CoreData
 2 |
 3 | public struct SQLiteStoreDescription {
   |               `- note: consider making struct 'SQLiteStoreDescription' conform to the 'Sendable' protocol
 4 |     public init(
 5 |         name: String,
[30/31] Compiling SwormTools Extensions.swift
[31/31] Compiling SwormTools ProgressiveMigration.swift
Build complete! (22.22s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Sworm",
  "name" : "Sworm",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    }
  ],
  "products" : [
    {
      "name" : "Sworm",
      "targets" : [
        "Sworm"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SwormTools",
      "targets" : [
        "SwormTools"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwormTools",
      "module_type" : "SwiftTarget",
      "name" : "SwormTools",
      "path" : "Sources/SwormTools",
      "product_memberships" : [
        "SwormTools"
      ],
      "sources" : [
        "Extensions.swift",
        "ExternalBinaryDataEntityMigrationPolicy.swift",
        "ProgressiveMigration.swift",
        "StoreDescription.swift",
        "TestTool.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwormTests",
      "module_type" : "SwiftTarget",
      "name" : "SwormTests",
      "path" : "Tests/SwormTests",
      "sources" : [
        "AttributeTests.swift",
        "DataModels/DataModels.swift",
        "DataModels/V0V1MigrationPolicy.swift",
        "DataModels/V1V2MigrationPolicy.swift",
        "MigrationsTests.swift",
        "Models/Attributes.swift",
        "Models/Models+CoreData.swift",
        "Models/Models.swift",
        "Models/Repo.swift",
        "OtherTests.swift",
        "PredicateTests.swift",
        "ReadWriteTests.swift",
        "RepoTests.swift",
        "UnsafeTests.swift",
        "Utils/TestDB.swift"
      ],
      "target_dependencies" : [
        "Sworm",
        "SwormTools"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Sworm",
      "module_type" : "SwiftTarget",
      "name" : "Sworm",
      "path" : "Sources/Sworm",
      "product_memberships" : [
        "Sworm"
      ],
      "sources" : [
        "Attributes/Attribute.swift",
        "Attributes/AttributeError.swift",
        "Attributes/Decode.swift",
        "Attributes/Primitives.swift",
        "Attributes/Protocols.swift",
        "Attributes/RawRepresentable.swift",
        "Extensions.swift",
        "ManagedObjectConvertible.swift",
        "PersistentContainer.swift",
        "Relations.swift",
        "Requests/ComparisonPredicate.swift",
        "Requests/CompoundPredicate.swift",
        "Requests/InversePredicate.swift",
        "Requests/Operators.swift",
        "Requests/Predicate.swift",
        "Requests/Query.swift",
        "Requests/Request.swift",
        "Requests/TextPredicate.swift",
        "Wrappers/ManagedObject.swift",
        "Wrappers/ManagedObjectContext.swift",
        "Wrappers/ManagedObjectSet.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.