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 main (e3686b), with Swift 6.0 for macOS (SPM) on 15 Sep 2024 15:20:29 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: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/notsobigcompany/BigUIUserPreferences
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e3686bc Updated docs.
Cloned https://github.com/notsobigcompany/BigUIUserPreferences.git
Revision (git rev-parse @):
e3686bcc1d3e7358a80e9002b8079d27e797db68
SUCCESS checkout https://github.com/notsobigcompany/BigUIUserPreferences.git at main
========================================
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 UserPreferenceKey.swift
[4/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
[5/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
[6/8] Compiling BigUIUserPreferences UserDefaults.swift
[7/8] Compiling BigUIUserPreferences CodablePreferenceValue.swift
[8/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 |     }
Build complete! (15.22s)
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.