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 ScopedDefaults, reference 0.1.0 (a243ec), with Swift 6.0 for macOS (SPM) on 26 Nov 2024 13:41:02 UTC.

Swift 6 data race errors: 2

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/regexident/ScopedDefaults.git
Reference: 0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/regexident/ScopedDefaults
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at a243ecc Added ignored ‘.xcodeproj’ contents
Cloned https://github.com/regexident/ScopedDefaults.git
Revision (git rev-parse @):
a243ecc9292ac67dbdbbe223b75775f8cc439942
SUCCESS checkout https://github.com/regexident/ScopedDefaults.git at 0.1.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": "scopeddefaults",
      "name": "ScopedDefaults",
      "url": "https://github.com/regexident/ScopedDefaults.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ScopedDefaults",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/regexident/ScopedDefaults.git
[1/103] Fetching scopeddefaults
Fetched https://github.com/regexident/ScopedDefaults.git from cache (0.69s)
Creating working copy for https://github.com/regexident/ScopedDefaults.git
Working copy of https://github.com/regexident/ScopedDefaults.git resolved at 0.1.0 (a243ecc)
warning: '.resolve-product-dependencies': dependency 'scopeddefaults' 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/regexident/ScopedDefaults.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/6] Compiling ScopedDefaults UserDefaultsScope.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScopedDefaults/UserDefaultsScope.swift:14:5: warning: 'public' modifier is redundant for static property declared in a public extension
12 |
13 | public extension UserDefaultsScope {
14 |     public static var keyPath: String {
   |     `- warning: 'public' modifier is redundant for static property declared in a public extension
15 |         if let outer = Self.outer {
16 |             return "\(outer.keyPath).\(Self.key)"
/Users/admin/builder/spi-builder-workspace/Sources/ScopedDefaults/UserDefaultsScope.swift:35:5: warning: 'public' modifier is redundant for static method declared in a public extension
33 |
34 | public extension EnumerableUserDefaultsScope {
35 |     public static func factoryDefaults() -> [String : Any] {
   |     `- warning: 'public' modifier is redundant for static method declared in a public extension
36 |         var dictionary: [String : Any] = [:]
37 |
/Users/admin/builder/spi-builder-workspace/Sources/ScopedDefaults/UserDefaultsScope.swift:54:5: warning: 'public' modifier is redundant for static method declared in a public extension
52 |     }
53 |
54 |     public static func register(on userDefaults: UserDefaults) {
   |     `- warning: 'public' modifier is redundant for static method declared in a public extension
55 |         let dictionary = self.factoryDefaults()
56 |         userDefaults.register(defaults: dictionary)
[4/6] Emitting module ScopedDefaults
/Users/admin/builder/spi-builder-workspace/Sources/ScopedDefaults/UserDefault.swift:47:27: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 | }
18 |
19 | public struct ScopedUserDefault<Scope, Value>: UserDefaultProtocol, AnyUserDefault
   |                                        `- note: 'Value' previously declared here
20 |     where
21 |     Scope: UserDefaultsScope,
   :
45 |
46 | extension ScopedUserDefault: Equatable {
47 |     public static func ==<Value>(
   |                           `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
48 |         lhs: ScopedUserDefault<Scope, Value>,
49 |         rhs: ScopedUserDefault<Scope, Value>
/Users/admin/builder/spi-builder-workspace/Sources/ScopedDefaults/UserDefault.swift:74:27: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
53 | }
54 |
55 | public struct UserDefault<Value: Codable>: UserDefaultProtocol, AnyUserDefault {
   |                           `- note: 'Value' previously declared here
56 |     public let key: String
57 |     public let defaultValue: () -> Value
   :
72 |
73 | extension UserDefault: Equatable {
74 |     public static func ==<Value>(
   |                           `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
75 |         lhs: UserDefault<Value>,
76 |         rhs: UserDefault<Value>
/Users/admin/builder/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:16:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 14 |
 15 | public extension UserDefaults {
 16 |     public func get<T: UserDefaultProtocol>(for userDefault: T) -> T.Value {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 17 |         return self.get(for: userDefault, default: userDefault.defaultValue())
 18 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:20:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 18 |     }
 19 |
 20 |     public func get<T: UserDefaultProtocol>(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 21 |         for userDefault: T,
 22 |         `default` defaultValue: @autoclosure () -> T.Value
/Users/admin/builder/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:45:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 43 |     }
 44 |
 45 |     public func set<T: UserDefaultProtocol>(_ value: T.Value, for userDefault: T) {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 46 |         typealias ValueType = T.Value
 47 |         typealias ContainerType = PropertyListContainer<T.Value>
/Users/admin/builder/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:65:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 63 |     }
 64 |
 65 |     public func removeValue<T: UserDefaultProtocol>(for userDefault: T) {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 66 |         self.removeObject(forKey: userDefault.keyPath)
 67 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ScopedDefaults/UserDefaultsScope.swift:14:5: warning: 'public' modifier is redundant for static property declared in a public extension
12 |
13 | public extension UserDefaultsScope {
14 |     public static var keyPath: String {
   |     `- warning: 'public' modifier is redundant for static property declared in a public extension
15 |         if let outer = Self.outer {
16 |             return "\(outer.keyPath).\(Self.key)"
/Users/admin/builder/spi-builder-workspace/Sources/ScopedDefaults/UserDefaultsScope.swift:35:5: warning: 'public' modifier is redundant for static method declared in a public extension
33 |
34 | public extension EnumerableUserDefaultsScope {
35 |     public static func factoryDefaults() -> [String : Any] {
   |     `- warning: 'public' modifier is redundant for static method declared in a public extension
36 |         var dictionary: [String : Any] = [:]
37 |
/Users/admin/builder/spi-builder-workspace/Sources/ScopedDefaults/UserDefaultsScope.swift:54:5: warning: 'public' modifier is redundant for static method declared in a public extension
52 |     }
53 |
54 |     public static func register(on userDefaults: UserDefaults) {
   |     `- warning: 'public' modifier is redundant for static method declared in a public extension
55 |         let dictionary = self.factoryDefaults()
56 |         userDefaults.register(defaults: dictionary)
[5/6] Compiling ScopedDefaults UserDefault.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScopedDefaults/UserDefault.swift:47:27: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 | }
18 |
19 | public struct ScopedUserDefault<Scope, Value>: UserDefaultProtocol, AnyUserDefault
   |                                        `- note: 'Value' previously declared here
20 |     where
21 |     Scope: UserDefaultsScope,
   :
45 |
46 | extension ScopedUserDefault: Equatable {
47 |     public static func ==<Value>(
   |                           `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
48 |         lhs: ScopedUserDefault<Scope, Value>,
49 |         rhs: ScopedUserDefault<Scope, Value>
/Users/admin/builder/spi-builder-workspace/Sources/ScopedDefaults/UserDefault.swift:74:27: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
53 | }
54 |
55 | public struct UserDefault<Value: Codable>: UserDefaultProtocol, AnyUserDefault {
   |                           `- note: 'Value' previously declared here
56 |     public let key: String
57 |     public let defaultValue: () -> Value
   :
72 |
73 | extension UserDefault: Equatable {
74 |     public static func ==<Value>(
   |                           `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
75 |         lhs: UserDefault<Value>,
76 |         rhs: UserDefault<Value>
[6/6] Compiling ScopedDefaults UserDefaults+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:16:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 14 |
 15 | public extension UserDefaults {
 16 |     public func get<T: UserDefaultProtocol>(for userDefault: T) -> T.Value {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 17 |         return self.get(for: userDefault, default: userDefault.defaultValue())
 18 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:20:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 18 |     }
 19 |
 20 |     public func get<T: UserDefaultProtocol>(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 21 |         for userDefault: T,
 22 |         `default` defaultValue: @autoclosure () -> T.Value
/Users/admin/builder/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:45:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 43 |     }
 44 |
 45 |     public func set<T: UserDefaultProtocol>(_ value: T.Value, for userDefault: T) {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 46 |         typealias ValueType = T.Value
 47 |         typealias ContainerType = PropertyListContainer<T.Value>
/Users/admin/builder/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:65:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 63 |     }
 64 |
 65 |     public func removeValue<T: UserDefaultProtocol>(for userDefault: T) {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 66 |         self.removeObject(forKey: userDefault.keyPath)
 67 |     }
Build complete! (6.51s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ScopedDefaults",
  "name" : "ScopedDefaults",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ScopedDefaults",
      "targets" : [
        "ScopedDefaults"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ScopedDefaultsTests",
      "module_type" : "SwiftTarget",
      "name" : "ScopedDefaultsTests",
      "path" : "Tests/ScopedDefaultsTests",
      "sources" : [
        "DefaultsTests.swift",
        "Fixtures.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "ScopedDefaults"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ScopedDefaults",
      "module_type" : "SwiftTarget",
      "name" : "ScopedDefaults",
      "path" : "Sources/ScopedDefaults",
      "product_memberships" : [
        "ScopedDefaults"
      ],
      "sources" : [
        "UserDefault.swift",
        "UserDefaults+Extensions.swift",
        "UserDefaultsScope.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.