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 Ricemill, reference master (7ef039), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 01:00:14 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/marty-suzuki/Ricemill.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/marty-suzuki/Ricemill
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7ef039a Update README
Cloned https://github.com/marty-suzuki/Ricemill.git
Revision (git rev-parse @):
7ef039a0c79704194f4cc082171824106bedbc60
SUCCESS checkout https://github.com/marty-suzuki/Ricemill.git at master
========================================
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": "ricemill",
      "name": "Ricemill",
      "url": "https://github.com/marty-suzuki/Ricemill.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Ricemill",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/marty-suzuki/Ricemill.git
[1/104] Fetching ricemill
Fetched https://github.com/marty-suzuki/Ricemill.git from cache (0.67s)
Creating working copy for https://github.com/marty-suzuki/Ricemill.git
Working copy of https://github.com/marty-suzuki/Ricemill.git resolved at master (7ef039a)
warning: '.resolve-product-dependencies': dependency 'ricemill' 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/marty-suzuki/Ricemill.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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--7754E27361AE5C74.txt
[3/9] Compiling Ricemill Machine.swift
[4/9] Compiling Ricemill AnyResolverBasedMachine.swift
[5/9] Emitting module Ricemill
[6/9] Compiling Ricemill Polished.swift
[7/9] Compiling Ricemill Publishing.swift
[8/9] Compiling Ricemill Proxy.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ricemill/Proxy.swift:61:59: 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
 59 |     /// - note: Assumed to be the difinition is @Published var string = "" for example.
 60 |     public subscript<Subject>(dynamicMember keyPath: ReferenceWritableKeyPath<Input, Subject>) -> Binding<Subject> {
 61 |         ObservedObject(initialValue: input).projectedValue[dynamicMember: keyPath]
    |                                                           `- 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
 62 |     }
 63 | }
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/Ricemill/Proxy.swift:61:45: warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 59 |     /// - note: Assumed to be the difinition is @Published var string = "" for example.
 60 |     public subscript<Subject>(dynamicMember keyPath: ReferenceWritableKeyPath<Input, Subject>) -> Binding<Subject> {
 61 |         ObservedObject(initialValue: input).projectedValue[dynamicMember: keyPath]
    |                                             `- warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 62 |     }
 63 | }
SwiftUICore.ObservedObject:9:43: note: property declared here
 7 |     @MainActor @preconcurrency public init(wrappedValue: ObjectType)
 8 |     @MainActor @preconcurrency public var wrappedValue: ObjectType
 9 |     @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
   |                                           `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/Ricemill/Proxy.swift:61:9: warning: call to main actor-isolated initializer 'init(initialValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 59 |     /// - note: Assumed to be the difinition is @Published var string = "" for example.
 60 |     public subscript<Subject>(dynamicMember keyPath: ReferenceWritableKeyPath<Input, Subject>) -> Binding<Subject> {
 61 |         ObservedObject(initialValue: input).projectedValue[dynamicMember: keyPath]
    |         `- warning: call to main actor-isolated initializer 'init(initialValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 62 |     }
 63 | }
SwiftUICore.ObservedObject:6:39: note: calls to initializer 'init(initialValue:)' from outside of its actor context are implicitly asynchronous
 4 |         @MainActor @preconcurrency public subscript<Subject>(dynamicMember keyPath: ReferenceWritableKeyPath<ObjectType, Subject>) -> Binding<Subject> { get }
 5 |     }
 6 |     @MainActor @preconcurrency public init(initialValue: ObjectType)
   |                                       `- note: calls to initializer 'init(initialValue:)' from outside of its actor context are implicitly asynchronous
 7 |     @MainActor @preconcurrency public init(wrappedValue: ObjectType)
 8 |     @MainActor @preconcurrency public var wrappedValue: ObjectType
/Users/admin/builder/spi-builder-workspace/Sources/Ricemill/Proxy.swift:94:60: 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
 92 |     /// - note: Assumed to be the difinition is @Published var isHidden = false for example.
 93 |     public subscript<Subject>(dynamicMember keyPath: ReferenceWritableKeyPath<Output, Subject>) -> Binding<Subject> {
 94 |         ObservedObject(initialValue: output).projectedValue[dynamicMember: keyPath]
    |                                                            `- 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
 95 |     }
 96 | }
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/Ricemill/Proxy.swift:94:46: warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 92 |     /// - note: Assumed to be the difinition is @Published var isHidden = false for example.
 93 |     public subscript<Subject>(dynamicMember keyPath: ReferenceWritableKeyPath<Output, Subject>) -> Binding<Subject> {
 94 |         ObservedObject(initialValue: output).projectedValue[dynamicMember: keyPath]
    |                                              `- warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 95 |     }
 96 | }
SwiftUICore.ObservedObject:9:43: note: property declared here
 7 |     @MainActor @preconcurrency public init(wrappedValue: ObjectType)
 8 |     @MainActor @preconcurrency public var wrappedValue: ObjectType
 9 |     @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
   |                                           `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/Ricemill/Proxy.swift:94:9: warning: call to main actor-isolated initializer 'init(initialValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 92 |     /// - note: Assumed to be the difinition is @Published var isHidden = false for example.
 93 |     public subscript<Subject>(dynamicMember keyPath: ReferenceWritableKeyPath<Output, Subject>) -> Binding<Subject> {
 94 |         ObservedObject(initialValue: output).projectedValue[dynamicMember: keyPath]
    |         `- warning: call to main actor-isolated initializer 'init(initialValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 95 |     }
 96 | }
SwiftUICore.ObservedObject:6:39: note: calls to initializer 'init(initialValue:)' from outside of its actor context are implicitly asynchronous
 4 |         @MainActor @preconcurrency public subscript<Subject>(dynamicMember keyPath: ReferenceWritableKeyPath<ObjectType, Subject>) -> Binding<Subject> { get }
 5 |     }
 6 |     @MainActor @preconcurrency public init(initialValue: ObjectType)
   |                                       `- note: calls to initializer 'init(initialValue:)' from outside of its actor context are implicitly asynchronous
 7 |     @MainActor @preconcurrency public init(wrappedValue: ObjectType)
 8 |     @MainActor @preconcurrency public var wrappedValue: ObjectType
/Users/admin/builder/spi-builder-workspace/Sources/Ricemill/Proxy.swift:61:9: warning: sending 'self.input' risks causing data races; this is an error in the Swift 6 language mode
 59 |     /// - note: Assumed to be the difinition is @Published var string = "" for example.
 60 |     public subscript<Subject>(dynamicMember keyPath: ReferenceWritableKeyPath<Input, Subject>) -> Binding<Subject> {
 61 |         ObservedObject(initialValue: input).projectedValue[dynamicMember: keyPath]
    |         |- warning: sending 'self.input' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: sending task-isolated 'self.input' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
 62 |     }
 63 | }
/Users/admin/builder/spi-builder-workspace/Sources/Ricemill/Proxy.swift:94:9: warning: sending 'self.output' risks causing data races; this is an error in the Swift 6 language mode
 92 |     /// - note: Assumed to be the difinition is @Published var isHidden = false for example.
 93 |     public subscript<Subject>(dynamicMember keyPath: ReferenceWritableKeyPath<Output, Subject>) -> Binding<Subject> {
 94 |         ObservedObject(initialValue: output).projectedValue[dynamicMember: keyPath]
    |         |- warning: sending 'self.output' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: sending task-isolated 'self.output' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
 95 |     }
 96 | }
[9/9] Compiling Ricemill MachineType.swift
Build complete! (12.57s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Ricemill",
  "name" : "Ricemill",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "Ricemill",
      "targets" : [
        "Ricemill"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RicemillTests",
      "module_type" : "SwiftTarget",
      "name" : "RicemillTests",
      "path" : "Tests/RicemillTests",
      "sources" : [
        "RicemillTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Ricemill"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Ricemill",
      "module_type" : "SwiftTarget",
      "name" : "Ricemill",
      "path" : "Sources/Ricemill",
      "product_memberships" : [
        "Ricemill"
      ],
      "sources" : [
        "AnyResolverBasedMachine.swift",
        "Machine.swift",
        "MachineType.swift",
        "Polished.swift",
        "Proxy.swift",
        "Publishing.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.