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 UserDefault, reference v1.3.1 (01ecd1), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 12:43:30 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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/juliand665/UserDefault.git
Reference: v1.3.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/juliand665/UserDefault
 * tag               v1.3.1     -> FETCH_HEAD
HEAD is now at 01ecd19 fix defaults not passing through nil convenience init
Cloned https://github.com/juliand665/UserDefault.git
Revision (git rev-parse @):
01ecd19faf558571571e6a5ad72d5feae43b3cbf
SUCCESS checkout https://github.com/juliand665/UserDefault.git at v1.3.1
Fetching https://github.com/juliand665/HandyOperators.git
[1/77] Fetching handyoperators
Fetched https://github.com/juliand665/HandyOperators.git from cache (0.56s)
Computing version for https://github.com/juliand665/HandyOperators.git
Computed https://github.com/juliand665/HandyOperators.git at 2.0.1 (1.12s)
Creating working copy for https://github.com/juliand665/HandyOperators.git
Working copy of https://github.com/juliand665/HandyOperators.git resolved at 2.0.1
========================================
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": "userdefault",
      "name": "UserDefault",
      "url": "https://github.com/juliand665/UserDefault.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/UserDefault",
      "dependencies": [
        {
          "identity": "handyoperators",
          "name": "HandyOperators",
          "url": "https://github.com/juliand665/HandyOperators.git",
          "version": "2.1.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/HandyOperators",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/juliand665/UserDefault.git
[1/298] Fetching userdefault
Fetched https://github.com/juliand665/UserDefault.git from cache (0.61s)
Fetching https://github.com/juliand665/HandyOperators.git from cache
Fetched https://github.com/juliand665/HandyOperators.git from cache (0.43s)
Computing version for https://github.com/juliand665/HandyOperators.git
Computed https://github.com/juliand665/HandyOperators.git at 2.1.0 (0.48s)
Creating working copy for https://github.com/juliand665/HandyOperators.git
Working copy of https://github.com/juliand665/HandyOperators.git resolved at 2.1.0
Creating working copy for https://github.com/juliand665/UserDefault.git
Working copy of https://github.com/juliand665/UserDefault.git resolved at v1.3.1 (01ecd19)
warning: '.resolve-product-dependencies': dependency 'userdefault' is not used by any target
Found 1 product dependencies
  - HandyOperators
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/juliand665/UserDefault.git
https://github.com/juliand665/UserDefault.git
{
  "dependencies" : [
    {
      "identity" : "handyoperators",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/juliand665/HandyOperators.git"
    }
  ],
  "manifest_display_name" : "UserDefault",
  "name" : "UserDefault",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "UserDefault",
      "targets" : [
        "UserDefault"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UserDefaultTests",
      "module_type" : "SwiftTarget",
      "name" : "UserDefaultTests",
      "path" : "Tests/UserDefaultTests",
      "sources" : [
        "FailureTests.swift",
        "PropertyWrapperTests.swift",
        "SimpleTests.swift",
        "Tests.swift",
        "Types.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "UserDefault"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UserDefault",
      "module_type" : "SwiftTarget",
      "name" : "UserDefault",
      "path" : "Sources/UserDefault",
      "product_dependencies" : [
        "HandyOperators"
      ],
      "product_memberships" : [
        "UserDefault"
      ],
      "sources" : [
        "Conditional Conformances/Array.swift",
        "Conditional Conformances/Codable.swift",
        "Conditional Conformances/Collection.swift",
        "Conditional Conformances/Dictionary.swift",
        "Conditional Conformances/NSCoding.swift",
        "Conditional Conformances/Optional.swift",
        "Conditional Conformances/RawRepresentable.swift",
        "DefaultsValue.swift",
        "DefaultsValueConvertible.swift",
        "IndirectDefaultsValueConvertible.swift",
        "UserDefault.swift",
        "UserDefaultState.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
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/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/5] Emitting module HandyOperators
[5/5] Compiling HandyOperators HandyOperators.swift
[6/17] Compiling UserDefault UserDefault.swift
[7/18] Compiling UserDefault IndirectDefaultsValueConvertible.swift
[8/18] Compiling UserDefault DefaultsValueConvertible.swift
[9/18] Compiling UserDefault Optional.swift
[10/18] Compiling UserDefault NSCoding.swift
[11/18] Compiling UserDefault Collection.swift
[12/18] Compiling UserDefault Dictionary.swift
[13/18] Compiling UserDefault DefaultsValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/UserDefault/DefaultsValue.swift:31:7: warning: associated value 'typeMismatch(found:expected:)' of 'Sendable'-conforming enum 'DefaultsError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
29 |
30 | public enum DefaultsError: Error {
31 | 	case typeMismatch(found: Any, expected: Any.Type)
   |       `- warning: associated value 'typeMismatch(found:expected:)' of 'Sendable'-conforming enum 'DefaultsError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
32 | 	case illegalValue(found: Any, for: Any.Type)
33 | 	case missingValue(key: String)
/Users/admin/builder/spi-builder-workspace/Sources/UserDefault/DefaultsValue.swift:32:7: warning: associated value 'illegalValue(found:for:)' of 'Sendable'-conforming enum 'DefaultsError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
30 | public enum DefaultsError: Error {
31 | 	case typeMismatch(found: Any, expected: Any.Type)
32 | 	case illegalValue(found: Any, for: Any.Type)
   |       `- warning: associated value 'illegalValue(found:for:)' of 'Sendable'-conforming enum 'DefaultsError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
33 | 	case missingValue(key: String)
34 | }
[14/18] Compiling UserDefault RawRepresentable.swift
[15/18] Emitting module UserDefault
/Users/admin/builder/spi-builder-workspace/Sources/UserDefault/DefaultsValue.swift:31:7: warning: associated value 'typeMismatch(found:expected:)' of 'Sendable'-conforming enum 'DefaultsError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
29 |
30 | public enum DefaultsError: Error {
31 | 	case typeMismatch(found: Any, expected: Any.Type)
   |       `- warning: associated value 'typeMismatch(found:expected:)' of 'Sendable'-conforming enum 'DefaultsError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
32 | 	case illegalValue(found: Any, for: Any.Type)
33 | 	case missingValue(key: String)
/Users/admin/builder/spi-builder-workspace/Sources/UserDefault/DefaultsValue.swift:32:7: warning: associated value 'illegalValue(found:for:)' of 'Sendable'-conforming enum 'DefaultsError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
30 | public enum DefaultsError: Error {
31 | 	case typeMismatch(found: Any, expected: Any.Type)
32 | 	case illegalValue(found: Any, for: Any.Type)
   |       `- warning: associated value 'illegalValue(found:for:)' of 'Sendable'-conforming enum 'DefaultsError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
33 | 	case missingValue(key: String)
34 | }
[16/18] Compiling UserDefault Array.swift
[17/18] Compiling UserDefault Codable.swift
[18/18] Compiling UserDefault UserDefaultState.swift
Build complete! (10.75s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "handyoperators",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/juliand665/HandyOperators.git"
    }
  ],
  "manifest_display_name" : "UserDefault",
  "name" : "UserDefault",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "UserDefault",
      "targets" : [
        "UserDefault"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UserDefaultTests",
      "module_type" : "SwiftTarget",
      "name" : "UserDefaultTests",
      "path" : "Tests/UserDefaultTests",
      "sources" : [
        "FailureTests.swift",
        "PropertyWrapperTests.swift",
        "SimpleTests.swift",
        "Tests.swift",
        "Types.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "UserDefault"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UserDefault",
      "module_type" : "SwiftTarget",
      "name" : "UserDefault",
      "path" : "Sources/UserDefault",
      "product_dependencies" : [
        "HandyOperators"
      ],
      "product_memberships" : [
        "UserDefault"
      ],
      "sources" : [
        "Conditional Conformances/Array.swift",
        "Conditional Conformances/Codable.swift",
        "Conditional Conformances/Collection.swift",
        "Conditional Conformances/Dictionary.swift",
        "Conditional Conformances/NSCoding.swift",
        "Conditional Conformances/Optional.swift",
        "Conditional Conformances/RawRepresentable.swift",
        "DefaultsValue.swift",
        "DefaultsValueConvertible.swift",
        "IndirectDefaultsValueConvertible.swift",
        "UserDefault.swift",
        "UserDefaultState.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.