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 iCloudStorage, reference main (8482e4), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 22:40:29 UTC.

Swift 6 data race errors: 2

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.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/0xWDG/iCloudStorage.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/0xWDG/iCloudStorage
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 8482e4c Property wrapper now works in a ObservableObject 🎉
Cloned https://github.com/0xWDG/iCloudStorage.git
Revision (git rev-parse @):
8482e4c8b793283eba17e59e9e0c41bd7bf0b032
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/0xWDG/iCloudStorage.git at main
========================================
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": "icloudstorage",
      "name": "iCloudStorage",
      "url": "https://github.com/0xWDG/iCloudStorage.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/iCloudStorage",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/0xWDG/iCloudStorage.git
[1/128] Fetching icloudstorage
Fetched https://github.com/0xWDG/iCloudStorage.git from cache (0.82s)
Creating working copy for https://github.com/0xWDG/iCloudStorage.git
Working copy of https://github.com/0xWDG/iCloudStorage.git resolved at main (8482e4c)
warning: '.resolve-product-dependencies': dependency 'icloudstorage' 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/0xWDG/iCloudStorage.git
https://github.com/0xWDG/iCloudStorage.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "iCloudStorage",
  "name" : "iCloudStorage",
  "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" : "iCloudStorage",
      "targets" : [
        "iCloudStorage"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "iCloudStorageTests",
      "module_type" : "SwiftTarget",
      "name" : "iCloudStorageTests",
      "path" : "Tests/iCloudStorageTests",
      "sources" : [
        "iCloudStorageTests.swift"
      ],
      "target_dependencies" : [
        "iCloudStorage"
      ],
      "type" : "test"
    },
    {
      "c99name" : "iCloudStorage",
      "module_type" : "SwiftTarget",
      "name" : "iCloudStorage",
      "path" : "Sources/iCloudStorage",
      "product_memberships" : [
        "iCloudStorage"
      ],
      "sources" : [
        "iCloudStorage.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
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 iCloudStorage
/Users/admin/builder/spi-builder-workspace/Sources/iCloudStorage/iCloudStorage.swift:36: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
 34 |
 35 |     /// The observed storage
 36 |     @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
 37 |
 38 |     /// Creates an `iCloudStorage` property.
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
  |                                   `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/iCloudStorage/iCloudStorage.swift:36:6: warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
 34 |
 35 |     /// The observed storage
 36 |     @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
 37 |
 38 |     /// Creates an `iCloudStorage` property.
[4/4] Compiling iCloudStorage iCloudStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/iCloudStorage/iCloudStorage.swift:36: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
 34 |
 35 |     /// The observed storage
 36 |     @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
 37 |
 38 |     /// Creates an `iCloudStorage` property.
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
  |                                   `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/iCloudStorage/iCloudStorage.swift:45:14: warning: main actor-isolated property 'store' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 34 |
 35 |     /// The observed storage
 36 |     @ObservedObject private var store: Storage
    |                                 `- note: mutation of this property is only permitted within the actor
 37 |
 38 |     /// Creates an `iCloudStorage` property.
    :
 43 |         self.key = key
 44 |         self.defaultValue = wrappedValue
 45 |         self.store = Storage(
    |              `- warning: main actor-isolated property 'store' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 46 |             NSUbiquitousKeyValueStore.default.object(forKey: key) as? T ?? defaultValue
 47 |         )
/Users/admin/builder/spi-builder-workspace/Sources/iCloudStorage/iCloudStorage.swift:58:22: warning: main actor-isolated property 'store' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 34 |
 35 |     /// The observed storage
 36 |     @ObservedObject private var store: Storage
    |                                 `- note: mutation of this property is only permitted within the actor
 37 |
 38 |     /// Creates an `iCloudStorage` property.
    :
 56 |             if let keys = notification.userInfo?[NSUbiquitousKeyValueStoreChangedKeysKey] as? [String],
 57 |                keys.contains(key) {
 58 |                 self.store.value = NSUbiquitousKeyValueStore.default.object(forKey: key) as? T ?? defaultValue
    |                      `- warning: main actor-isolated property 'store' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 59 |             }
 60 |         }
/Users/admin/builder/spi-builder-workspace/Sources/iCloudStorage/iCloudStorage.swift:67: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
 34 |
 35 |     /// The observed storage
 36 |     @ObservedObject private var store: Storage
    |                                 `- note: property declared here
 37 |
 38 |     /// Creates an `iCloudStorage` property.
    :
 65 |     public var wrappedValue: T {
 66 |         get {
 67 |             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
 68 |         }
 69 |
/Users/admin/builder/spi-builder-workspace/Sources/iCloudStorage/iCloudStorage.swift:72: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
 34 |
 35 |     /// The observed storage
 36 |     @ObservedObject private var store: Storage
    |                                 `- note: mutation of this property is only permitted within the actor
 37 |
 38 |     /// Creates an `iCloudStorage` property.
    :
 70 |         nonmutating set {
 71 |             NSUbiquitousKeyValueStore.default.set(newValue, forKey: key)
 72 |             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
 73 |         }
 74 |     }
/Users/admin/builder/spi-builder-workspace/Sources/iCloudStorage/iCloudStorage.swift:78: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
 76 |     /// A binding to the value of the key in iCloud.
 77 |     public var projectedValue: Binding<T> {
 78 |         $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
 79 |     }
 80 |
SwiftUICore.ObservedObject.Wrapper.subscript:3:35: note: subscript declared here
1 | generic struct ObservedObject {
2 |   struct Wrapper {
3 | @MainActor @preconcurrency public subscript<Subject>(dynamicMember keyPath: ReferenceWritableKeyPath<ObjectType, Subject>) -> Binding<Subject> { get }  }
  |                                   `- note: subscript declared here
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/iCloudStorage/iCloudStorage.swift:78: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
 34 |
 35 |     /// The observed storage
 36 |     @ObservedObject private var store: Storage
    |                                 `- note: property declared here
 37 |
 38 |     /// Creates an `iCloudStorage` property.
    :
 76 |     /// A binding to the value of the key in iCloud.
 77 |     public var projectedValue: Binding<T> {
 78 |         $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
 79 |     }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/iCloudStorage/iCloudStorage.swift:105: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
 34 |
 35 |     /// The observed storage
 36 |     @ObservedObject private var store: Storage
    |                                 `- note: property declared here
 37 |
 38 |     /// Creates an `iCloudStorage` property.
    :
103 |     ) -> T {
104 |         get {
105 |             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
106 |                 instance.objectWillChange as? ObservableObjectPublisher
107 |             )
/Users/admin/builder/spi-builder-workspace/Sources/iCloudStorage/iCloudStorage.swift:36:6: warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
 34 |
 35 |     /// The observed storage
 36 |     @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
 37 |
 38 |     /// Creates an `iCloudStorage` property.
Build complete! (7.52s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "iCloudStorage",
  "name" : "iCloudStorage",
  "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" : "iCloudStorage",
      "targets" : [
        "iCloudStorage"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "iCloudStorageTests",
      "module_type" : "SwiftTarget",
      "name" : "iCloudStorageTests",
      "path" : "Tests/iCloudStorageTests",
      "sources" : [
        "iCloudStorageTests.swift"
      ],
      "target_dependencies" : [
        "iCloudStorage"
      ],
      "type" : "test"
    },
    {
      "c99name" : "iCloudStorage",
      "module_type" : "SwiftTarget",
      "name" : "iCloudStorage",
      "path" : "Sources/iCloudStorage",
      "product_memberships" : [
        "iCloudStorage"
      ],
      "sources" : [
        "iCloudStorage.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
✅  Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path:  $PWD/.docs/0xwdg/icloudstorage/main
Repository:               0xWDG/iCloudStorage
Swift version used:       6.1
Target:                   iCloudStorage
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/swift-docc-render-artifact/.git/
From https://github.com/swiftlang/swift-docc-render-artifact
 * branch            release/6.2 -> FETCH_HEAD
 * [new branch]      release/6.2 -> origin/release/6.2
HEAD is now at 8799b69 Update the artifact
Cloned https://github.com/swiftlang/swift-docc-render-artifact
Extracting symbol information for 'iCloudStorage'...
Finished extracting symbol information for 'iCloudStorage'. (4.39s)
Building documentation for 'iCloudStorage'...
Finished building documentation for 'iCloudStorage' (0.09s)
Generated documentation archive at:
  /Users/admin/builder/spi-builder-workspace/.docs/0xwdg/icloudstorage/main
Fetching https://github.com/swiftlang/swift-docc-plugin from cache
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.42s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (1.13s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.79s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.42s)
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
[2/8] Write snippet-extract-tool-entitlement.plist
[2/8] Write sources
[4/8] Write swift-version-2F0A5646E1D333AE.txt
[6/53] Compiling Snippets Snippet.swift
[7/53] Compiling Snippets SnippetParser.swift
[8/53] Emitting module Snippets
[9/53] Emitting module SymbolKit
[10/57] Compiling SymbolKit SourceRange.swift
[11/57] Compiling SymbolKit Metadata.swift
[12/57] Compiling SymbolKit Module.swift
[13/57] Compiling SymbolKit OperatingSystem.swift
[14/57] Compiling SymbolKit Platform.swift
[15/57] Compiling SymbolKit Identifier.swift
[16/57] Compiling SymbolKit KindIdentifier.swift
[17/57] Compiling SymbolKit Location.swift
[18/57] Compiling SymbolKit Mutability.swift
[19/57] Compiling SymbolKit DeclarationFragments.swift
[20/57] Compiling SymbolKit Fragment.swift
[21/57] Compiling SymbolKit FragmentKind.swift
[22/57] Compiling SymbolKit FunctionParameter.swift
[23/57] Compiling SymbolKit FunctionSignature.swift
[24/57] Compiling SymbolKit Relationship.swift
[25/57] Compiling SymbolKit RelationshipKind.swift
[26/57] Compiling SymbolKit SourceOrigin.swift
[27/57] Compiling SymbolKit GenericConstraints.swift
[28/57] Compiling SymbolKit Swift.swift
[29/57] Compiling SymbolKit GenericConstraint.swift
[30/57] Compiling SymbolKit GenericParameter.swift
[31/57] Compiling SymbolKit Generics.swift
[32/57] Compiling SymbolKit Namespace.swift
[33/57] Compiling SymbolKit Mixin+Equals.swift
[34/57] Compiling SymbolKit Mixin+Hash.swift
[35/57] Compiling SymbolKit Mixin.swift
[36/57] Compiling SymbolKit LineList.swift
[37/57] Compiling SymbolKit Position.swift
[38/57] Compiling SymbolKit SemanticVersion.swift
[39/57] Compiling SymbolKit AccessControl.swift
[40/57] Compiling SymbolKit Availability.swift
[41/57] Compiling SymbolKit AvailabilityItem.swift
[42/57] Compiling SymbolKit Domain.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] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Emitting module snippet_extract
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.52s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/3] Emitting module iCloudStorage
[3/3] Compiling iCloudStorage iCloudStorage.swift
Build of target: 'iCloudStorage' complete! (0.60s)
      66
2	/Users/admin/builder/spi-builder-workspace/.docs/0xwdg/icloudstorage/main
✅  Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/0xwdg/icloudstorage/main
File count: 66
Doc size:   2.0MB
Preparing doc bundle ...
Uploading prod-0xwdg-icloudstorage-main-f76858cf.zip to s3://spi-docs-inbox/prod-0xwdg-icloudstorage-main-f76858cf.zip
Copying... [20%]
Copying... [39%]
Copying... [59%]
Copying... [79%]
Copying... [99%]
Copying... [100%]
Done.