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 SwiftUIEKtensions, reference master (bf96c0), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 18:17:11 UTC.

Swift 6 data race errors: 1

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/EnesKaraosman/SwiftUIEKtensions.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/EnesKaraosman/SwiftUIEKtensions
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at bf96c0d feat: add readSize view modifiers
Cloned https://github.com/EnesKaraosman/SwiftUIEKtensions.git
Revision (git rev-parse @):
bf96c0d841d2bc81dac0d7e28aa9ab71cd7d6c2a
SUCCESS checkout https://github.com/EnesKaraosman/SwiftUIEKtensions.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": "swiftuiektensions",
      "name": "SwiftUIEKtensions",
      "url": "https://github.com/EnesKaraosman/SwiftUIEKtensions.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUIEKtensions",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/EnesKaraosman/SwiftUIEKtensions.git
[1/248] Fetching swiftuiektensions
Fetched https://github.com/EnesKaraosman/SwiftUIEKtensions.git from cache (0.74s)
Creating working copy for https://github.com/EnesKaraosman/SwiftUIEKtensions.git
Working copy of https://github.com/EnesKaraosman/SwiftUIEKtensions.git resolved at master (bf96c0d)
warning: '.resolve-product-dependencies': dependency 'swiftuiektensions' 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/EnesKaraosman/SwiftUIEKtensions.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/21] Compiling SwiftUIEKtensions MailView.swift
[4/21] Compiling SwiftUIEKtensions StatefulMultipleSelectionList.swift
[5/21] Compiling SwiftUIEKtensions StatefulSingleSelectionList.swift
[6/21] Compiling SwiftUIEKtensions StatelessMultipleSelectionList.swift
[7/22] Compiling SwiftUIEKtensions View+Keyboard.swift
[8/22] Compiling SwiftUIEKtensions DeviceOrientationBasedView.swift
[9/22] Compiling SwiftUIEKtensions LazyView.swift
[10/22] Compiling SwiftUIEKtensions ImagePickerView.swift
[11/22] Compiling SwiftUIEKtensions EdgeInsets+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/ScrollViewProxy+Additions.swift:19:21: warning: capture of 'self' with non-sendable type 'ScrollViewProxy' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 |             if animate {
18 |                 withAnimation(.easeInOut(duration: 1)) {
19 |                     self.scrollTo(id, anchor: position)
   |                     `- warning: capture of 'self' with non-sendable type 'ScrollViewProxy' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 |                 }
21 |             } else {
SwiftUI.ScrollViewProxy:2:15: note: struct 'ScrollViewProxy' does not conform to the 'Sendable' protocol
1 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
2 | public struct ScrollViewProxy {
  |               `- note: struct 'ScrollViewProxy' does not conform to the 'Sendable' protocol
3 |     public func scrollTo<ID>(_ id: ID, anchor: UnitPoint? = nil) where ID : Hashable
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/ScrollViewProxy+Additions.swift:19:21: warning: capture of 'self' with non-sendable type 'ScrollViewProxy' in an isolated closure; this is an error in the Swift 6 language mode
17 |             if animate {
18 |                 withAnimation(.easeInOut(duration: 1)) {
19 |                     self.scrollTo(id, anchor: position)
   |                     `- warning: capture of 'self' with non-sendable type 'ScrollViewProxy' in an isolated closure; this is an error in the Swift 6 language mode
20 |                 }
21 |             } else {
SwiftUI.ScrollViewProxy:2:15: note: struct 'ScrollViewProxy' does not conform to the 'Sendable' protocol
1 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
2 | public struct ScrollViewProxy {
  |               `- note: struct 'ScrollViewProxy' does not conform to the 'Sendable' protocol
3 |     public func scrollTo<ID>(_ id: ID, anchor: UnitPoint? = nil) where ID : Hashable
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/ScrollViewProxy+Additions.swift:19:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
17 |             if animate {
18 |                 withAnimation(.easeInOut(duration: 1)) {
19 |                     self.scrollTo(id, anchor: position)
   |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
20 |                 }
21 |             } else {
[12/22] Compiling SwiftUIEKtensions ScrollViewProxy+Additions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/ScrollViewProxy+Additions.swift:19:21: warning: capture of 'self' with non-sendable type 'ScrollViewProxy' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 |             if animate {
18 |                 withAnimation(.easeInOut(duration: 1)) {
19 |                     self.scrollTo(id, anchor: position)
   |                     `- warning: capture of 'self' with non-sendable type 'ScrollViewProxy' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 |                 }
21 |             } else {
SwiftUI.ScrollViewProxy:2:15: note: struct 'ScrollViewProxy' does not conform to the 'Sendable' protocol
1 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
2 | public struct ScrollViewProxy {
  |               `- note: struct 'ScrollViewProxy' does not conform to the 'Sendable' protocol
3 |     public func scrollTo<ID>(_ id: ID, anchor: UnitPoint? = nil) where ID : Hashable
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/ScrollViewProxy+Additions.swift:19:21: warning: capture of 'self' with non-sendable type 'ScrollViewProxy' in an isolated closure; this is an error in the Swift 6 language mode
17 |             if animate {
18 |                 withAnimation(.easeInOut(duration: 1)) {
19 |                     self.scrollTo(id, anchor: position)
   |                     `- warning: capture of 'self' with non-sendable type 'ScrollViewProxy' in an isolated closure; this is an error in the Swift 6 language mode
20 |                 }
21 |             } else {
SwiftUI.ScrollViewProxy:2:15: note: struct 'ScrollViewProxy' does not conform to the 'Sendable' protocol
1 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
2 | public struct ScrollViewProxy {
  |               `- note: struct 'ScrollViewProxy' does not conform to the 'Sendable' protocol
3 |     public func scrollTo<ID>(_ id: ID, anchor: UnitPoint? = nil) where ID : Hashable
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/ScrollViewProxy+Additions.swift:19:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
17 |             if animate {
18 |                 withAnimation(.easeInOut(duration: 1)) {
19 |                     self.scrollTo(id, anchor: position)
   |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
20 |                 }
21 |             } else {
[13/22] Compiling SwiftUIEKtensions View+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/View+Extension.swift:140:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
138 |
139 | struct SizePreferenceKey: PreferenceKey {
140 |     static var defaultValue: CGSize = .zero
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
141 |
142 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {}
[14/22] Compiling SwiftUIEKtensions KeyValueStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/View+Extension.swift:140:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
138 |
139 | struct SizePreferenceKey: PreferenceKey {
140 |     static var defaultValue: CGSize = .zero
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
141 |
142 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {}
[15/22] Compiling SwiftUIEKtensions SelectableItem.swift
[16/22] Compiling SwiftUIEKtensions CheckmarkModifier.swift
[17/22] Compiling SwiftUIEKtensions DeviceOrientation.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/Binding+Extension.swift:14:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 |     func didSet(execute: @escaping (Value) -> Void) -> Binding {
13 |         return Binding(
14 |             get: { wrappedValue },
   |                    `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 |             set: {
16 |                 wrappedValue = $0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/Binding+Extension.swift:16:17: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 |             get: { wrappedValue },
15 |             set: {
16 |                 wrappedValue = $0
   |                 `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 |                 execute($0)
18 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/Binding+Extension.swift:17:17: warning: capture of 'execute' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 |             set: {
16 |                 wrappedValue = $0
17 |                 execute($0)
   |                 |- warning: capture of 'execute' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
18 |             }
19 |         )
[18/22] Compiling SwiftUIEKtensions Binding+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/Binding+Extension.swift:14:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 |     func didSet(execute: @escaping (Value) -> Void) -> Binding {
13 |         return Binding(
14 |             get: { wrappedValue },
   |                    `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 |             set: {
16 |                 wrappedValue = $0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/Binding+Extension.swift:16:17: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 |             get: { wrappedValue },
15 |             set: {
16 |                 wrappedValue = $0
   |                 `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 |                 execute($0)
18 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/Binding+Extension.swift:17:17: warning: capture of 'execute' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 |             set: {
16 |                 wrappedValue = $0
17 |                 execute($0)
   |                 |- warning: capture of 'execute' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
18 |             }
19 |         )
[19/22] Emitting module SwiftUIEKtensions
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/View+Extension.swift:140:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
138 |
139 | struct SizePreferenceKey: PreferenceKey {
140 |     static var defaultValue: CGSize = .zero
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
141 |
142 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {}
[20/22] Compiling SwiftUIEKtensions Bundle+Extension.swift
[21/22] Compiling SwiftUIEKtensions Color+Extension.swift
[22/22] Compiling SwiftUIEKtensions StatelessSingleSelectionList.swift
Build complete! (22.54s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftUIEKtensions",
  "name" : "SwiftUIEKtensions",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftUIEKtensions",
      "targets" : [
        "SwiftUIEKtensions"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftUIEKtensionsTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftUIEKtensionsTests",
      "path" : "Tests/SwiftUIEKtensionsTests",
      "sources" : [
        "SwiftUIEKtensionsTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SwiftUIEKtensions"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftUIEKtensions",
      "module_type" : "SwiftTarget",
      "name" : "SwiftUIEKtensions",
      "path" : "Sources/SwiftUIEKtensions",
      "product_memberships" : [
        "SwiftUIEKtensions"
      ],
      "sources" : [
        "DeviceOrientation.swift",
        "Extensions/Binding+Extension.swift",
        "Extensions/Bundle+Extension.swift",
        "Extensions/Color+Extension.swift",
        "Extensions/EdgeInsets+Extension.swift",
        "Extensions/ScrollViewProxy+Additions.swift",
        "Extensions/View+Extension.swift",
        "Other/KeyValueStorage.swift",
        "Protocols/SelectableItem.swift",
        "View Modifiers/CheckmarkModifier.swift",
        "View Modifiers/View+Keyboard.swift",
        "Views/DeviceOrientationBasedView.swift",
        "Views/LazyView.swift",
        "Views/Representables/ImagePickerView.swift",
        "Views/Representables/MailView.swift",
        "Views/StatefulMultipleSelectionList.swift",
        "Views/StatefulSingleSelectionList.swift",
        "Views/StatelessMultipleSelectionList.swift",
        "Views/StatelessSingleSelectionList.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.