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

Swift 6 data race errors: 2

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/juliand665/UserDefault.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/juliand665/UserDefault
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/juliand665/UserDefault.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/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.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 RawRepresentable.swift
[10/18] Compiling UserDefault Array.swift
[11/18] Compiling UserDefault Codable.swift
[12/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 | }
[13/18] Compiling UserDefault Collection.swift
[14/18] Compiling UserDefault Dictionary.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 Optional.swift
[17/18] Compiling UserDefault NSCoding.swift
[18/18] Compiling UserDefault UserDefaultState.swift
Build complete! (38.72s)
Fetching https://github.com/juliand665/HandyOperators.git
[1/77] Fetching handyoperators
Fetched https://github.com/juliand665/HandyOperators.git from cache (0.67s)
Computing version for https://github.com/juliand665/HandyOperators.git
Computed https://github.com/juliand665/HandyOperators.git at 2.0.1 (0.70s)
Creating working copy for https://github.com/juliand665/HandyOperators.git
Working copy of https://github.com/juliand665/HandyOperators.git resolved at 2.0.1
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.