The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of DefaultsKit, reference 0.3.2 (acc227), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 22:32:27 UTC.

Swift 6 data race errors: 1

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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nmdias/DefaultsKit.git
Reference: 0.3.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nmdias/DefaultsKit
 * tag               0.3.2      -> FETCH_HEAD
HEAD is now at acc2272 Update testThreadUnsafe
Cloned https://github.com/nmdias/DefaultsKit.git
Revision (git rev-parse @):
acc22726ef063d3092e5b594ecbb3a8232e631bd
SUCCESS checkout https://github.com/nmdias/DefaultsKit.git at 0.3.2
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/nmdias/DefaultsKit.git
https://github.com/nmdias/DefaultsKit.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DefaultsKit",
  "name" : "DefaultsKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "DefaultsKit",
      "targets" : [
        "DefaultsKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DefaultsKitTests",
      "module_type" : "SwiftTarget",
      "name" : "DefaultsKitTests",
      "path" : "Tests/DefaultsKitTests",
      "sources" : [
        "DefaultsKey + keys.swift",
        "DefaultsTests.swift",
        "Mocks.swift"
      ],
      "target_dependencies" : [
        "DefaultsKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DefaultsKit",
      "module_type" : "SwiftTarget",
      "name" : "DefaultsKit",
      "path" : "Sources/DefaultsKit",
      "product_memberships" : [
        "DefaultsKit"
      ],
      "sources" : [
        "Defaults.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/4] Emitting module DefaultsKit
/Users/admin/builder/spi-builder-workspace/Sources/DefaultsKit/Defaults.swift:50:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Defaults' may have shared mutable state; this is an error in the Swift 6 language mode
 43 | /// These should not be used to store sensitive information that could compromise
 44 | /// the application or the user's security and privacy.
 45 | public struct Defaults {
    |               `- note: consider making struct 'Defaults' conform to the 'Sendable' protocol
 46 |   private var userDefaults: UserDefaults
 47 |
 48 |   /// Shared instance of `Defaults`, used for ad-hoc access to the user's
 49 |   /// defaults database throughout the app.
 50 |   public static let shared = Defaults()
    |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Defaults' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 51 |
 52 |   /// An instance of `Defaults` with the specified `UserDefaults` instance.
[4/4] Compiling DefaultsKit Defaults.swift
/Users/admin/builder/spi-builder-workspace/Sources/DefaultsKit/Defaults.swift:50:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Defaults' may have shared mutable state; this is an error in the Swift 6 language mode
 43 | /// These should not be used to store sensitive information that could compromise
 44 | /// the application or the user's security and privacy.
 45 | public struct Defaults {
    |               `- note: consider making struct 'Defaults' conform to the 'Sendable' protocol
 46 |   private var userDefaults: UserDefaults
 47 |
 48 |   /// Shared instance of `Defaults`, used for ad-hoc access to the user's
 49 |   /// defaults database throughout the app.
 50 |   public static let shared = Defaults()
    |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Defaults' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 51 |
 52 |   /// An instance of `Defaults` with the specified `UserDefaults` instance.
Build complete! (4.50s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DefaultsKit",
  "name" : "DefaultsKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "DefaultsKit",
      "targets" : [
        "DefaultsKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DefaultsKitTests",
      "module_type" : "SwiftTarget",
      "name" : "DefaultsKitTests",
      "path" : "Tests/DefaultsKitTests",
      "sources" : [
        "DefaultsKey + keys.swift",
        "DefaultsTests.swift",
        "Mocks.swift"
      ],
      "target_dependencies" : [
        "DefaultsKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DefaultsKit",
      "module_type" : "SwiftTarget",
      "name" : "DefaultsKit",
      "path" : "Sources/DefaultsKit",
      "product_memberships" : [
        "DefaultsKit"
      ],
      "sources" : [
        "Defaults.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Done.