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 SwiftUICustomTagListView, reference main (29e2e5), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 09:14:27 UTC.

Swift 6 data race errors: 2

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/chitomo12/SwiftUICustomTagListView.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/chitomo12/SwiftUICustomTagListView
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 29e2e54 update podspec version
Cloned https://github.com/chitomo12/SwiftUICustomTagListView.git
Revision (git rev-parse @):
29e2e54b76f140af1b5650ccd4051004d9166d70
SUCCESS checkout https://github.com/chitomo12/SwiftUICustomTagListView.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": "swiftuicustomtaglistview",
      "name": "SwiftUICustomTagListView",
      "url": "https://github.com/chitomo12/SwiftUICustomTagListView.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUICustomTagListView",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/chitomo12/SwiftUICustomTagListView.git
[1/119] Fetching swiftuicustomtaglistview
Fetched https://github.com/chitomo12/SwiftUICustomTagListView.git from cache (0.69s)
Creating working copy for https://github.com/chitomo12/SwiftUICustomTagListView.git
Working copy of https://github.com/chitomo12/SwiftUICustomTagListView.git resolved at main (29e2e54)
warning: '.resolve-product-dependencies': dependency 'swiftuicustomtaglistview' 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/chitomo12/SwiftUICustomTagListView.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/7] Compiling SwiftUICustomTagListView SwiftUICustomTagListView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICustomTagListView/SwiftUICustomTagListView.swift:54:59: warning: capture of 'geometry' with non-sendable type 'GeometryProxy' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 52 |                     .padding(.trailing, horizontalSpace)
 53 |                     .alignmentGuide(.leading, computeValue: { dimension in
 54 |                         if abs(width - dimension.width) > geometry.size.width {
    |                                                           `- warning: capture of 'geometry' with non-sendable type 'GeometryProxy' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 55 |                             width = 0
 56 |                             height -= dimension.height + verticalSpace
SwiftUICore.GeometryProxy:2:15: note: struct 'GeometryProxy' does not conform to the 'Sendable' protocol
 1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
 2 | public struct GeometryProxy {
   |               `- note: struct 'GeometryProxy' does not conform to the 'Sendable' protocol
 3 |     public var size: CGSize { get }
 4 |     public subscript<T>(anchor: Anchor<T>) -> T { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICustomTagListView/SwiftUICustomTagListView.swift:54:32: warning: reference to captured var 'width' in concurrently-executing code; this is an error in the Swift 6 language mode
 52 |                     .padding(.trailing, horizontalSpace)
 53 |                     .alignmentGuide(.leading, computeValue: { dimension in
 54 |                         if abs(width - dimension.width) > geometry.size.width {
    |                                `- warning: reference to captured var 'width' in concurrently-executing code; this is an error in the Swift 6 language mode
 55 |                             width = 0
 56 |                             height -= dimension.height + verticalSpace
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICustomTagListView/SwiftUICustomTagListView.swift:55:29: warning: mutation of captured var 'width' in concurrently-executing code; this is an error in the Swift 6 language mode
 53 |                     .alignmentGuide(.leading, computeValue: { dimension in
 54 |                         if abs(width - dimension.width) > geometry.size.width {
 55 |                             width = 0
    |                             `- warning: mutation of captured var 'width' in concurrently-executing code; this is an error in the Swift 6 language mode
 56 |                             height -= dimension.height + verticalSpace
 57 |                         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICustomTagListView/SwiftUICustomTagListView.swift:56:29: warning: mutation of captured var 'height' in concurrently-executing code; this is an error in the Swift 6 language mode
 54 |                         if abs(width - dimension.width) > geometry.size.width {
 55 |                             width = 0
 56 |                             height -= dimension.height + verticalSpace
    |                             `- warning: mutation of captured var 'height' in concurrently-executing code; this is an error in the Swift 6 language mode
 57 |                         }
 58 |                         let result = width
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICustomTagListView/SwiftUICustomTagListView.swift:58:38: warning: reference to captured var 'width' in concurrently-executing code; this is an error in the Swift 6 language mode
 56 |                             height -= dimension.height + verticalSpace
 57 |                         }
 58 |                         let result = width
    |                                      `- warning: reference to captured var 'width' in concurrently-executing code; this is an error in the Swift 6 language mode
 59 |                         if view == views.last {
 60 |                             width = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICustomTagListView/SwiftUICustomTagListView.swift:60:29: warning: mutation of captured var 'width' in concurrently-executing code; this is an error in the Swift 6 language mode
 58 |                         let result = width
 59 |                         if view == views.last {
 60 |                             width = 0
    |                             `- warning: mutation of captured var 'width' in concurrently-executing code; this is an error in the Swift 6 language mode
 61 |                         } else {
 62 |                             width -= dimension.width
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICustomTagListView/SwiftUICustomTagListView.swift:62:29: warning: mutation of captured var 'width' in concurrently-executing code; this is an error in the Swift 6 language mode
 60 |                             width = 0
 61 |                         } else {
 62 |                             width -= dimension.width
    |                             `- warning: mutation of captured var 'width' in concurrently-executing code; this is an error in the Swift 6 language mode
 63 |                         }
 64 |                         return result
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICustomTagListView/SwiftUICustomTagListView.swift:67:38: warning: reference to captured var 'height' in concurrently-executing code; this is an error in the Swift 6 language mode
 65 |                     })
 66 |                     .alignmentGuide(.top, computeValue: { dimension in
 67 |                         let result = height
    |                                      `- warning: reference to captured var 'height' in concurrently-executing code; this is an error in the Swift 6 language mode
 68 |                         if view == views.last {
 69 |                             height = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICustomTagListView/SwiftUICustomTagListView.swift:69:29: warning: mutation of captured var 'height' in concurrently-executing code; this is an error in the Swift 6 language mode
 67 |                         let result = height
 68 |                         if view == views.last {
 69 |                             height = 0
    |                             `- warning: mutation of captured var 'height' in concurrently-executing code; this is an error in the Swift 6 language mode
 70 |                         }
 71 |                         return result
[4/7] Compiling SwiftUICustomTagListView SwiftUICustomTagView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICustomTagListView/SwiftUICustomTagView.swift:27:17: warning: main actor-isolated instance method 'hash(into:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
 8 | import SwiftUI
 9 |
10 | public struct SwiftUICustomTagView<Content: View>: View, Hashable {
   |                                                          `- note: add '@preconcurrency' to the 'Hashable' conformance to defer isolation checking to run time
11 |
12 |     private let id = UUID()
   :
25 |     }
26 |
27 |     public func hash(into hasher: inout Hasher) {
   |                 |- warning: main actor-isolated instance method 'hash(into:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
   |                 `- note: add 'nonisolated' to 'hash(into:)' to make this instance method not isolated to the actor
28 |         hasher.combine(id)
29 |     }
Swift.Hashable:3:10: note: 'hash(into:)' declared here
1 | public protocol Hashable : Equatable {
2 |     var hashValue: Int { get }
3 |     func hash(into hasher: inout Hasher)
  |          `- note: 'hash(into:)' declared here
4 |     func _rawHashValue(seed: Int) -> Int
5 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICustomTagListView/SwiftUICustomTagView.swift:23:24: warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
21 |     }
22 |
23 |     public static func == (lhs: SwiftUICustomTagView, rhs: SwiftUICustomTagView) -> Bool {
   |                        |- warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
   |                        `- note: add 'nonisolated' to '==' to make this operator function not isolated to the actor
24 |         return lhs.id == rhs.id
25 |     }
Swift.Equatable:2:17: note: '==' declared here
1 | public protocol Equatable {
2 |     static func == (lhs: Self, rhs: Self) -> Bool
  |                 `- note: '==' declared here
3 | }
[5/7] Compiling SwiftUICustomTagListView Color+.swift
[6/7] Emitting module SwiftUICustomTagListView
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICustomTagListView/SwiftUICustomTagView.swift:27:17: warning: main actor-isolated instance method 'hash(into:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
 8 | import SwiftUI
 9 |
10 | public struct SwiftUICustomTagView<Content: View>: View, Hashable {
   |                                                          `- note: add '@preconcurrency' to the 'Hashable' conformance to defer isolation checking to run time
11 |
12 |     private let id = UUID()
   :
25 |     }
26 |
27 |     public func hash(into hasher: inout Hasher) {
   |                 |- warning: main actor-isolated instance method 'hash(into:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
   |                 `- note: add 'nonisolated' to 'hash(into:)' to make this instance method not isolated to the actor
28 |         hasher.combine(id)
29 |     }
Swift.Hashable:3:10: note: 'hash(into:)' declared here
1 | public protocol Hashable : Equatable {
2 |     var hashValue: Int { get }
3 |     func hash(into hasher: inout Hasher)
  |          `- note: 'hash(into:)' declared here
4 |     func _rawHashValue(seed: Int) -> Int
5 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICustomTagListView/SwiftUICustomTagView.swift:23:24: warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
21 |     }
22 |
23 |     public static func == (lhs: SwiftUICustomTagView, rhs: SwiftUICustomTagView) -> Bool {
   |                        |- warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
   |                        `- note: add 'nonisolated' to '==' to make this operator function not isolated to the actor
24 |         return lhs.id == rhs.id
25 |     }
Swift.Equatable:2:17: note: '==' declared here
1 | public protocol Equatable {
2 |     static func == (lhs: Self, rhs: Self) -> Bool
  |                 `- note: '==' declared here
3 | }
[7/7] Compiling SwiftUICustomTagListView SampleTagView.swift
Build complete! (13.58s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftUICustomTagListView",
  "name" : "SwiftUICustomTagListView",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftUICustomTagListView",
      "targets" : [
        "SwiftUICustomTagListView"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftUICustomTagListViewTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftUICustomTagListViewTests",
      "path" : "Tests/SwiftUICustomTagListViewTests",
      "sources" : [
        "SwiftUICustomTagListViewTests.swift"
      ],
      "target_dependencies" : [
        "SwiftUICustomTagListView"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftUICustomTagListView",
      "module_type" : "SwiftTarget",
      "name" : "SwiftUICustomTagListView",
      "path" : "Sources/SwiftUICustomTagListView",
      "product_memberships" : [
        "SwiftUICustomTagListView"
      ],
      "sources" : [
        "Sample/Color+.swift",
        "Sample/SampleTagView.swift",
        "SwiftUICustomTagListView.swift",
        "SwiftUICustomTagView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.