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 BigUIUserPreferences, reference 1.0.0 (f8c5ba), with Swift 6.0 for macOS (SPM) on 15 Sep 2024 15:20:24 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/notsobigcompany/BigUIUserPreferences.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/notsobigcompany/BigUIUserPreferences
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at f8c5bad Updated README
Cloned https://github.com/notsobigcompany/BigUIUserPreferences.git
Revision (git rev-parse @):
f8c5bad68ba7fe2724351af4be4a9e5edabeafcc
SUCCESS checkout https://github.com/notsobigcompany/BigUIUserPreferences.git at 1.0.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/notsobigcompany/BigUIUserPreferences.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-117DEE11B69C53C9.txt
[3/8] Compiling BigUIUserPreferences UserPreference.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIUserPreferences/UserPreference.swift:43:13: warning: capture of 'self' with non-sendable type 'UserPreference<Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 26 | ///
 27 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
 28 | @frozen @propertyWrapper public struct UserPreference<Key> : DynamicProperty where Key : UserPreferenceKey {
    |                                        `- note: consider making generic struct 'UserPreference' conform to the 'Sendable' protocol
 29 |
 30 |     @AppStorage private var value: Key.Value
    :
 41 |     public var projectedValue: Binding<Key.Value> {
 42 |         .init {
 43 |             wrappedValue
    |             `- warning: capture of 'self' with non-sendable type 'UserPreference<Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 44 |         } set: { newValue in
 45 |             wrappedValue = newValue
/Users/admin/builder/spi-builder-workspace/Sources/BigUIUserPreferences/UserPreference.swift:45:13: warning: capture of 'self' with non-sendable type 'UserPreference<Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 26 | ///
 27 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
 28 | @frozen @propertyWrapper public struct UserPreference<Key> : DynamicProperty where Key : UserPreferenceKey {
    |                                        `- note: consider making generic struct 'UserPreference' conform to the 'Sendable' protocol
 29 |
 30 |     @AppStorage private var value: Key.Value
    :
 43 |             wrappedValue
 44 |         } set: { newValue in
 45 |             wrappedValue = newValue
    |             `- warning: capture of 'self' with non-sendable type 'UserPreference<Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 46 |         }
 47 |     }
[4/8] Compiling BigUIUserPreferences UserPreferenceKey.swift
[5/8] Compiling BigUIUserPreferences CodablePreferenceValue.swift
[6/8] Emitting module BigUIUserPreferences
/Users/admin/builder/spi-builder-workspace/Sources/BigUIUserPreferences/Extensions/Date+RawRepresentable.swift:3:1: warning: extension declares a conformance of imported type 'Date' to imported protocol 'RawRepresentable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
 1 | import Foundation
 2 |
 3 | extension Date: RawRepresentable {
   | |- warning: extension declares a conformance of imported type 'Date' to imported protocol 'RawRepresentable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 4 |
 5 |     public typealias RawValue = String
[7/8] Compiling BigUIUserPreferences Date+RawRepresentable.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIUserPreferences/Extensions/Date+RawRepresentable.swift:3:1: warning: extension declares a conformance of imported type 'Date' to imported protocol 'RawRepresentable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
 1 | import Foundation
 2 |
 3 | extension Date: RawRepresentable {
   | |- warning: extension declares a conformance of imported type 'Date' to imported protocol 'RawRepresentable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 4 |
 5 |     public typealias RawValue = String
[8/8] Compiling BigUIUserPreferences UserDefaults.swift
Build complete! (13.18s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "BigUIUserPreferences",
  "name" : "BigUIUserPreferences",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "BigUIUserPreferences",
      "targets" : [
        "BigUIUserPreferences"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BigUIUserPreferencesTests",
      "module_type" : "SwiftTarget",
      "name" : "BigUIUserPreferencesTests",
      "path" : "Tests/BigUIUserPreferencesTests",
      "sources" : [
        "BigUIUserPreferencesTests.swift"
      ],
      "target_dependencies" : [
        "BigUIUserPreferences"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BigUIUserPreferences",
      "module_type" : "SwiftTarget",
      "name" : "BigUIUserPreferences",
      "path" : "Sources/BigUIUserPreferences",
      "product_memberships" : [
        "BigUIUserPreferences"
      ],
      "sources" : [
        "CodablePreferenceValue.swift",
        "Extensions/Date+RawRepresentable.swift",
        "UserDefaults.swift",
        "UserPreference.swift",
        "UserPreferenceKey.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.