The Swift Package Index logo.Swift Package Index

Build Information

Successful build of UserDefaultsWrapper, reference 1.0.0 (7578f6), with Swift 6.1 for macOS (SPM) on 15 Aug 2025 17:25:44 UTC.

Swift 6 data race errors: 5

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.66.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/yharshal/UserDefaultsWrapper.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/yharshal/UserDefaultsWrapper
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 7578f6d added codeowners
Cloned https://github.com/yharshal/UserDefaultsWrapper.git
Revision (git rev-parse @):
7578f6d618cde8df75605099a6d31ffbc449a0ec
SUCCESS checkout https://github.com/yharshal/UserDefaultsWrapper.git at 1.0.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": "userdefaultswrapper",
      "name": "UserDefaultsWrapper",
      "url": "https://github.com/yharshal/UserDefaultsWrapper.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/UserDefaultsWrapper",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/yharshal/UserDefaultsWrapper.git
[1/44] Fetching userdefaultswrapper
Fetched https://github.com/yharshal/UserDefaultsWrapper.git from cache (0.62s)
Creating working copy for https://github.com/yharshal/UserDefaultsWrapper.git
Working copy of https://github.com/yharshal/UserDefaultsWrapper.git resolved at 1.0.0 (7578f6d)
warning: '.resolve-product-dependencies': dependency 'userdefaultswrapper' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/yharshal/UserDefaultsWrapper.git
https://github.com/yharshal/UserDefaultsWrapper.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "UserDefaultsWrapper",
  "name" : "UserDefaultsWrapper",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "UserDefaultsWrapper",
      "targets" : [
        "UserDefaultsWrapper"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "UserDefaultsWrapperExample",
      "targets" : [
        "UserDefaultsWrapperExample"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UserDefaultsWrapperTests",
      "module_type" : "SwiftTarget",
      "name" : "UserDefaultsWrapperTests",
      "path" : "Tests/UserDefaultsWrapperTests",
      "sources" : [
        "UserDefaultsWrapperTests.swift"
      ],
      "target_dependencies" : [
        "UserDefaultsWrapper"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UserDefaultsWrapperExample",
      "module_type" : "SwiftTarget",
      "name" : "UserDefaultsWrapperExample",
      "path" : "Sources/UserDefaultsWrapperExample",
      "product_memberships" : [
        "UserDefaultsWrapperExample"
      ],
      "sources" : [
        "Example.swift"
      ],
      "target_dependencies" : [
        "UserDefaultsWrapper"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "UserDefaultsWrapper",
      "module_type" : "SwiftTarget",
      "name" : "UserDefaultsWrapper",
      "path" : "Sources/UserDefaultsWrapper",
      "product_memberships" : [
        "UserDefaultsWrapper",
        "UserDefaultsWrapperExample"
      ],
      "sources" : [
        "UserDefaults+Codable.swift",
        "UserDefaultsConvertible.swift",
        "UserDefaultsWrapper.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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/7] Write UserDefaultsWrapperExample-entitlement.plist
[1/7] Write sources
[3/7] Write swift-version-2F0A5646E1D333AE.txt
[5/11] Compiling UserDefaultsWrapper UserDefaultsWrapper.swift
[6/11] Compiling UserDefaultsWrapper UserDefaultsConvertible.swift
[7/11] Compiling UserDefaultsWrapper UserDefaults+Codable.swift
[8/11] Emitting module UserDefaultsWrapper
[9/13] Compiling UserDefaultsWrapperExample Example.swift
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsWrapperExample/Example.swift:14:16: warning: static property 'username' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 |     @UserDefault(key: "username", defaultValue: "Guest")
14 |     static var username: String
   |                |- warning: static property 'username' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'username' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'username' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     @UserDefault(key: "launchCount", defaultValue: 0)
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsWrapperExample/Example.swift:17:16: warning: static property 'launchCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 |     @UserDefault(key: "launchCount", defaultValue: 0)
17 |     static var launchCount: Int
   |                |- warning: static property 'launchCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'launchCount' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'launchCount' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |     @UserDefault(key: "userRatings", defaultValue: 4.0)
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsWrapperExample/Example.swift:20:16: warning: static property 'userRatings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 |     @UserDefault(key: "userRatings", defaultValue: 4.0)
20 |     static var userRatings: Double
   |                |- warning: static property 'userRatings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'userRatings' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'userRatings' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 |     @UserDefault(key: "userID", defaultValue: UUID())
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsWrapperExample/Example.swift:23:16: warning: static property 'userID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 |     @UserDefault(key: "userID", defaultValue: UUID())
23 |     static var userID: UUID
   |                |- warning: static property 'userID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'userID' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'userID' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 |     @UserDefault(key: "hasCompletedOnboarding", defaultValue: true)
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsWrapperExample/Example.swift:26:16: warning: static property 'hasCompletedOnboarding' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 |     @UserDefault(key: "hasCompletedOnboarding", defaultValue: true)
26 |     static var hasCompletedOnboarding: Bool
   |                |- warning: static property 'hasCompletedOnboarding' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'hasCompletedOnboarding' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'hasCompletedOnboarding' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | }
28 |
[10/13] Emitting module UserDefaultsWrapperExample
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsWrapperExample/Example.swift:14:16: warning: static property 'username' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 |     @UserDefault(key: "username", defaultValue: "Guest")
14 |     static var username: String
   |                |- warning: static property 'username' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'username' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'username' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     @UserDefault(key: "launchCount", defaultValue: 0)
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsWrapperExample/Example.swift:17:16: warning: static property 'launchCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 |     @UserDefault(key: "launchCount", defaultValue: 0)
17 |     static var launchCount: Int
   |                |- warning: static property 'launchCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'launchCount' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'launchCount' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |     @UserDefault(key: "userRatings", defaultValue: 4.0)
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsWrapperExample/Example.swift:20:16: warning: static property 'userRatings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 |     @UserDefault(key: "userRatings", defaultValue: 4.0)
20 |     static var userRatings: Double
   |                |- warning: static property 'userRatings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'userRatings' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'userRatings' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 |     @UserDefault(key: "userID", defaultValue: UUID())
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsWrapperExample/Example.swift:23:16: warning: static property 'userID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 |     @UserDefault(key: "userID", defaultValue: UUID())
23 |     static var userID: UUID
   |                |- warning: static property 'userID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'userID' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'userID' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 |     @UserDefault(key: "hasCompletedOnboarding", defaultValue: true)
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsWrapperExample/Example.swift:26:16: warning: static property 'hasCompletedOnboarding' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 |     @UserDefault(key: "hasCompletedOnboarding", defaultValue: true)
26 |     static var hasCompletedOnboarding: Bool
   |                |- warning: static property 'hasCompletedOnboarding' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'hasCompletedOnboarding' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'hasCompletedOnboarding' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | }
28 |
[10/13] Write Objects.LinkFileList
[11/13] Linking UserDefaultsWrapperExample
[12/13] Applying UserDefaultsWrapperExample
Build complete! (4.59s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "UserDefaultsWrapper",
  "name" : "UserDefaultsWrapper",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "UserDefaultsWrapper",
      "targets" : [
        "UserDefaultsWrapper"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "UserDefaultsWrapperExample",
      "targets" : [
        "UserDefaultsWrapperExample"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UserDefaultsWrapperTests",
      "module_type" : "SwiftTarget",
      "name" : "UserDefaultsWrapperTests",
      "path" : "Tests/UserDefaultsWrapperTests",
      "sources" : [
        "UserDefaultsWrapperTests.swift"
      ],
      "target_dependencies" : [
        "UserDefaultsWrapper"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UserDefaultsWrapperExample",
      "module_type" : "SwiftTarget",
      "name" : "UserDefaultsWrapperExample",
      "path" : "Sources/UserDefaultsWrapperExample",
      "product_memberships" : [
        "UserDefaultsWrapperExample"
      ],
      "sources" : [
        "Example.swift"
      ],
      "target_dependencies" : [
        "UserDefaultsWrapper"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "UserDefaultsWrapper",
      "module_type" : "SwiftTarget",
      "name" : "UserDefaultsWrapper",
      "path" : "Sources/UserDefaultsWrapper",
      "product_memberships" : [
        "UserDefaultsWrapper",
        "UserDefaultsWrapperExample"
      ],
      "sources" : [
        "UserDefaults+Codable.swift",
        "UserDefaultsConvertible.swift",
        "UserDefaultsWrapper.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.