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 SecureStorage, reference 0.0.4 (27079a), with Swift 6.0 for macOS (SPM) on 14 Mar 2025 00:14:48 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.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.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/0xWDG/SecureStorage.git
Reference: 0.0.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/0xWDG/SecureStorage
 * tag               0.0.4      -> FETCH_HEAD
HEAD is now at 27079ac Property wrapper now works in a ObservableObject 🎉
Cloned https://github.com/0xWDG/SecureStorage.git
Revision (git rev-parse @):
27079ac58b704f742deb99fb8a0889077c4692bb
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/0xWDG/SecureStorage.git at 0.0.4
========================================
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": "securestorage",
      "name": "SecureStorage",
      "url": "https://github.com/0xWDG/SecureStorage.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SecureStorage",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/0xWDG/SecureStorage.git
[1/120] Fetching securestorage
Fetched https://github.com/0xWDG/SecureStorage.git from cache (0.91s)
Creating working copy for https://github.com/0xWDG/SecureStorage.git
Working copy of https://github.com/0xWDG/SecureStorage.git resolved at 0.0.4 (27079ac)
warning: '.resolve-product-dependencies': dependency 'securestorage' 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/0xWDG/SecureStorage.git
https://github.com/0xWDG/SecureStorage.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SecureStorage",
  "name" : "SecureStorage",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "SecureStorage",
      "targets" : [
        "SecureStorage"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SecureStorageTests",
      "module_type" : "SwiftTarget",
      "name" : "SecureStorageTests",
      "path" : "Tests/SecureStorageTests",
      "sources" : [
        "SecureStorageTests.swift"
      ],
      "target_dependencies" : [
        "SecureStorage"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SecureStorage",
      "module_type" : "SwiftTarget",
      "name" : "SecureStorage",
      "path" : "Sources/SecureStorage",
      "product_memberships" : [
        "SecureStorage"
      ],
      "sources" : [
        "SecureStorage.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.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-5BDAB9E9C0126B9D.txt
[3/4] Emitting module SecureStorage
/Users/admin/builder/spi-builder-workspace/Sources/SecureStorage/SecureStorage.swift:39:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 37 |
 38 |     /// The observed storage
 39 |     @ObservedObject private var store: Storage
    |      `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 40 |
 41 |     /// Creates an `SecureStorage` property.
SwiftUICore.ObservedObject:7:39: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
 5 |     }
 6 |     @MainActor @preconcurrency public init(initialValue: ObjectType)
 7 |     @MainActor @preconcurrency public init(wrappedValue: ObjectType)
   |                                       `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
 8 |     @MainActor @preconcurrency public var wrappedValue: ObjectType
 9 |     @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
/Users/admin/builder/spi-builder-workspace/Sources/SecureStorage/SecureStorage.swift:39:6: warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
 37 |
 38 |     /// The observed storage
 39 |     @ObservedObject private var store: Storage
    |      |- warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
    |      `- note: sending task-isolated '$input_value' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
 40 |
 41 |     /// Creates an `SecureStorage` property.
[4/4] Compiling SecureStorage SecureStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/SecureStorage/SecureStorage.swift:39:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 37 |
 38 |     /// The observed storage
 39 |     @ObservedObject private var store: Storage
    |      `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 40 |
 41 |     /// Creates an `SecureStorage` property.
SwiftUICore.ObservedObject:7:39: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
 5 |     }
 6 |     @MainActor @preconcurrency public init(initialValue: ObjectType)
 7 |     @MainActor @preconcurrency public init(wrappedValue: ObjectType)
   |                                       `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
 8 |     @MainActor @preconcurrency public var wrappedValue: ObjectType
 9 |     @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
/Users/admin/builder/spi-builder-workspace/Sources/SecureStorage/SecureStorage.swift:65:13: warning: main actor-isolated property 'store' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 37 |
 38 |     /// The observed storage
 39 |     @ObservedObject private var store: Storage
    |                                 `- note: mutation of this property is only permitted within the actor
 40 |
 41 |     /// Creates an `SecureStorage` property.
    :
 63 |         if let data = result as? Data,
 64 |            let string = String(data: data, encoding: .utf8) {
 65 |             store = .init(string)
    |             `- warning: main actor-isolated property 'store' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 66 |         } else {
 67 |             store = .init(nil)
/Users/admin/builder/spi-builder-workspace/Sources/SecureStorage/SecureStorage.swift:67:13: warning: main actor-isolated property 'store' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 37 |
 38 |     /// The observed storage
 39 |     @ObservedObject private var store: Storage
    |                                 `- note: mutation of this property is only permitted within the actor
 40 |
 41 |     /// Creates an `SecureStorage` property.
    :
 65 |             store = .init(string)
 66 |         } else {
 67 |             store = .init(nil)
    |             `- warning: main actor-isolated property 'store' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 68 |         }
 69 |
/Users/admin/builder/spi-builder-workspace/Sources/SecureStorage/SecureStorage.swift:76:20: warning: main actor-isolated property 'store' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 37 |
 38 |     /// The observed storage
 39 |     @ObservedObject private var store: Storage
    |                                 `- note: property declared here
 40 |
 41 |     /// Creates an `SecureStorage` property.
    :
 74 |     public var wrappedValue: String? {
 75 |         get {
 76 |             return store.value
    |                    `- warning: main actor-isolated property 'store' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 77 |         }
 78 |
/Users/admin/builder/spi-builder-workspace/Sources/SecureStorage/SecureStorage.swift:120:13: warning: main actor-isolated property 'store' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 37 |
 38 |     /// The observed storage
 39 |     @ObservedObject private var store: Storage
    |                                 `- note: mutation of this property is only permitted within the actor
 40 |
 41 |     /// Creates an `SecureStorage` property.
    :
118 |             }
119 |
120 |             store.value = newValue
    |             `- warning: main actor-isolated property 'store' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
121 |         }
122 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SecureStorage/SecureStorage.swift:126:15: warning: main actor-isolated subscript 'subscript(dynamicMember:)' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
124 |     /// A binding to the value of the key in iCloud.
125 |     public var projectedValue: Binding<String?> {
126 |         $store.value
    |               `- warning: main actor-isolated subscript 'subscript(dynamicMember:)' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
127 |     }
128 |
SwiftUICore.ObservedObject:4:43: note: subscript declared here
 2 | @MainActor @propertyWrapper @preconcurrency @frozen public struct ObservedObject<ObjectType> : DynamicProperty where ObjectType : ObservableObject {
 3 |     @MainActor @dynamicMemberLookup @preconcurrency @frozen public struct Wrapper {
 4 |         @MainActor @preconcurrency public subscript<Subject>(dynamicMember keyPath: ReferenceWritableKeyPath<ObjectType, Subject>) -> Binding<Subject> { get }
   |                                           `- note: subscript declared here
 5 |     }
 6 |     @MainActor @preconcurrency public init(initialValue: ObjectType)
/Users/admin/builder/spi-builder-workspace/Sources/SecureStorage/SecureStorage.swift:126:9: warning: main actor-isolated property '$store' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 37 |
 38 |     /// The observed storage
 39 |     @ObservedObject private var store: Storage
    |                                 `- note: property declared here
 40 |
 41 |     /// Creates an `SecureStorage` property.
    :
124 |     /// A binding to the value of the key in iCloud.
125 |     public var projectedValue: Binding<String?> {
126 |         $store.value
    |         `- warning: main actor-isolated property '$store' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
127 |     }
128 |
/Users/admin/builder/spi-builder-workspace/Sources/SecureStorage/SecureStorage.swift:173:47: warning: main actor-isolated property 'store' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 37 |
 38 |     /// The observed storage
 39 |     @ObservedObject private var store: Storage
    |                                 `- note: property declared here
 40 |
 41 |     /// Creates an `SecureStorage` property.
    :
171 |     ) -> String? {
172 |         get {
173 |             instance[keyPath: storageKeyPath].store.parentWillChange = (
    |                                               `- warning: main actor-isolated property 'store' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
174 |                 instance.objectWillChange as? ObservableObjectPublisher
175 |             )
/Users/admin/builder/spi-builder-workspace/Sources/SecureStorage/SecureStorage.swift:39:6: warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
 37 |
 38 |     /// The observed storage
 39 |     @ObservedObject private var store: Storage
    |      |- warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
    |      `- note: sending task-isolated '$input_value' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
 40 |
 41 |     /// Creates an `SecureStorage` property.
Build complete! (10.68s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SecureStorage",
  "name" : "SecureStorage",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "SecureStorage",
      "targets" : [
        "SecureStorage"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SecureStorageTests",
      "module_type" : "SwiftTarget",
      "name" : "SecureStorageTests",
      "path" : "Tests/SecureStorageTests",
      "sources" : [
        "SecureStorageTests.swift"
      ],
      "target_dependencies" : [
        "SecureStorage"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SecureStorage",
      "module_type" : "SwiftTarget",
      "name" : "SecureStorage",
      "path" : "Sources/SecureStorage",
      "product_memberships" : [
        "SecureStorage"
      ],
      "sources" : [
        "SecureStorage.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
✅  Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path:  $PWD/.docs/0xwdg/securestorage/0.0.4
Repository:               0xWDG/SecureStorage
Swift version used:       6.0
Target:                   iCloudStorage
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2050] Fetching swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.26s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (2.60s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3338] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.16s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.56s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Building for debugging...
[0/8] Write sources
[3/8] Write snippet-extract-tool-entitlement.plist
[4/8] Write swift-version-5BDAB9E9C0126B9D.txt
[6/53] Compiling Snippets SnippetParser.swift
[7/53] Compiling Snippets Snippet.swift
[8/53] Emitting module Snippets
[9/53] Compiling SymbolKit SourceRange.swift
[10/53] Compiling SymbolKit Metadata.swift
[11/53] Compiling SymbolKit Module.swift
[12/53] Compiling SymbolKit OperatingSystem.swift
[13/53] Compiling SymbolKit Platform.swift
[14/57] Emitting module SymbolKit
[15/57] Compiling SymbolKit Relationship.swift
[16/57] Compiling SymbolKit RelationshipKind.swift
[17/57] Compiling SymbolKit SourceOrigin.swift
[18/57] Compiling SymbolKit GenericConstraints.swift
[19/57] Compiling SymbolKit Swift.swift
[20/57] Compiling SymbolKit SemanticVersion.swift
[21/57] Compiling SymbolKit AccessControl.swift
[22/57] Compiling SymbolKit Availability.swift
[23/57] Compiling SymbolKit AvailabilityItem.swift
[24/57] Compiling SymbolKit Domain.swift
[25/57] Compiling SymbolKit GenericConstraint.swift
[26/57] Compiling SymbolKit GenericParameter.swift
[27/57] Compiling SymbolKit Generics.swift
[28/57] Compiling SymbolKit Namespace.swift
[29/57] Compiling SymbolKit DeclarationFragments.swift
[30/57] Compiling SymbolKit Fragment.swift
[31/57] Compiling SymbolKit FragmentKind.swift
[32/57] Compiling SymbolKit FunctionParameter.swift
[33/57] Compiling SymbolKit FunctionSignature.swift
[34/57] Compiling SymbolKit Mixin+Equals.swift
[35/57] Compiling SymbolKit Mixin+Hash.swift
[36/57] Compiling SymbolKit Mixin.swift
[37/57] Compiling SymbolKit LineList.swift
[38/57] Compiling SymbolKit Position.swift
[39/57] Compiling SymbolKit Identifier.swift
[40/57] Compiling SymbolKit KindIdentifier.swift
[41/57] Compiling SymbolKit Location.swift
[42/57] Compiling SymbolKit Mutability.swift
[43/57] Compiling SymbolKit Names.swift
[44/57] Compiling SymbolKit SPI.swift
[45/57] Compiling SymbolKit Snippet.swift
[46/57] Compiling SymbolKit Extension.swift
[47/57] Compiling SymbolKit Symbol.swift
[48/57] Compiling SymbolKit SymbolKind.swift
[49/57] Compiling SymbolKit SymbolGraph.swift
[50/57] Compiling SymbolKit GraphCollector.swift
[51/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[52/57] Compiling SymbolKit UnifiedSymbol.swift
[53/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[54/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Emitting module snippet_extract
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.93s)
error: no target named 'iCloudStorage'
compatible targets: 'SecureStorage'
       1
0	/Users/admin/builder/spi-builder-workspace/.docs/0xwdg/securestorage/0.0.4
✅  Doc result (uploading) reported
Error while generating docs: Error Domain=NSCocoaErrorDomain Code=260 "The folder “documentation” doesn’t exist." UserInfo={NSFilePath=/Users/admin/builder/spi-builder-workspace/.docs/0xwdg/securestorage/0.0.4/documentation, NSUserStringVariant=(
    Folder
), NSUnderlyingError=0x60000320c060 {Error Domain=NSOSStatusErrorDomain Code=-43 "fnfErr: File not found"}}
✅  Doc result (failed) reported
Done.