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 DeckUI, reference 1.0.1 (25c7f3), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 04:04:54 UTC.

Swift 6 data race errors: 4

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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/joshdholtz/DeckUI.git
Reference: 1.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/joshdholtz/DeckUI
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at 25c7f35 Merge pull request #2 from noppefoxwolf/feature/SlideDirectionNone
Cloned https://github.com/joshdholtz/DeckUI.git
Revision (git rev-parse @):
25c7f35f7f8f49e57763af164f6cbc25eeafd048
SUCCESS checkout https://github.com/joshdholtz/DeckUI.git at 1.0.1
========================================
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": "deckui",
      "name": "DeckUI",
      "url": "https://github.com/joshdholtz/DeckUI.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DeckUI",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/joshdholtz/DeckUI.git
[15/701] Fetching deckui
Fetched https://github.com/joshdholtz/DeckUI.git from cache (0.96s)
Creating working copy for https://github.com/joshdholtz/DeckUI.git
Working copy of https://github.com/joshdholtz/DeckUI.git resolved at 1.0.1 (25c7f35)
warning: '.resolve-product-dependencies': dependency 'deckui' 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/joshdholtz/DeckUI.git
https://github.com/joshdholtz/DeckUI.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DeckUI",
  "name" : "DeckUI",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "DeckUI",
      "targets" : [
        "DeckUI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DeckUITests",
      "module_type" : "SwiftTarget",
      "name" : "DeckUITests",
      "path" : "Tests/DeckUITests",
      "sources" : [
        "DeckUITests.swift"
      ],
      "target_dependencies" : [
        "DeckUI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DeckUI",
      "module_type" : "SwiftTarget",
      "name" : "DeckUI",
      "path" : "Sources/DeckUI",
      "product_memberships" : [
        "DeckUI"
      ],
      "sources" : [
        "DSL/ContentItem.swift",
        "DSL/ContentItems/Bullets.swift",
        "DSL/ContentItems/Code.swift",
        "DSL/ContentItems/Columns.swift",
        "DSL/ContentItems/Media.swift",
        "DSL/ContentItems/RawView.swift",
        "DSL/ContentItems/Title.swift",
        "DSL/ContentItems/Words.swift",
        "DSL/Deck.swift",
        "DSL/Slide.swift",
        "DSL/Theme.swift",
        "DeckUI.swift",
        "Views/CameraView.swift",
        "Views/Presenter.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
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/16] Compiling DeckUI Slide.swift
[4/16] Compiling DeckUI Deck.swift
[5/16] Compiling DeckUI Title.swift
[6/16] Compiling DeckUI Words.swift
[7/16] Emitting module DeckUI
/Users/admin/builder/spi-builder-workspace/Sources/DeckUI/DSL/Theme.swift:40:23: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'Theme' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import SwiftUI
  9 |
 10 | public struct Theme {
    |               `- note: consider making struct 'Theme' conform to the 'Sendable' protocol
 11 |     var background: Color
 12 |     var title: Foreground
    :
 38 |
 39 | extension Theme {
 40 |     public static let standard: Theme = .black
    |                       |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'Theme' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 41 |
 42 |     public static let dark: Theme = Theme(
/Users/admin/builder/spi-builder-workspace/Sources/DeckUI/DSL/Theme.swift:42:23: warning: static property 'dark' is not concurrency-safe because non-'Sendable' type 'Theme' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import SwiftUI
  9 |
 10 | public struct Theme {
    |               `- note: consider making struct 'Theme' conform to the 'Sendable' protocol
 11 |     var background: Color
 12 |     var title: Foreground
    :
 40 |     public static let standard: Theme = .black
 41 |
 42 |     public static let dark: Theme = Theme(
    |                       |- warning: static property 'dark' is not concurrency-safe because non-'Sendable' type 'Theme' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'dark' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |         background: Color(hex: "#221d29"),
 44 |         title: Foreground(
/Users/admin/builder/spi-builder-workspace/Sources/DeckUI/DSL/Theme.swift:66:23: warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'Theme' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import SwiftUI
  9 |
 10 | public struct Theme {
    |               `- note: consider making struct 'Theme' conform to the 'Sendable' protocol
 11 |     var background: Color
 12 |     var title: Foreground
    :
 64 |     )
 65 |
 66 |     public static let black: Theme = Theme(
    |                       |- warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'Theme' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'black' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 67 |         background: Color(hex: "#000000"),
 68 |         title: Foreground(
/Users/admin/builder/spi-builder-workspace/Sources/DeckUI/DSL/Theme.swift:90:23: warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'Theme' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import SwiftUI
  9 |
 10 | public struct Theme {
    |               `- note: consider making struct 'Theme' conform to the 'Sendable' protocol
 11 |     var background: Color
 12 |     var title: Foreground
    :
 88 |     )
 89 |
 90 |     public static let white: Theme = Theme(
    |                       |- warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'Theme' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'white' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 91 |         background: Color(hex: "#FFFFFF"),
 92 |         title: Foreground(
[8/16] Compiling DeckUI Theme.swift
/Users/admin/builder/spi-builder-workspace/Sources/DeckUI/DSL/Theme.swift:40:23: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'Theme' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import SwiftUI
  9 |
 10 | public struct Theme {
    |               `- note: consider making struct 'Theme' conform to the 'Sendable' protocol
 11 |     var background: Color
 12 |     var title: Foreground
    :
 38 |
 39 | extension Theme {
 40 |     public static let standard: Theme = .black
    |                       |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'Theme' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 41 |
 42 |     public static let dark: Theme = Theme(
/Users/admin/builder/spi-builder-workspace/Sources/DeckUI/DSL/Theme.swift:42:23: warning: static property 'dark' is not concurrency-safe because non-'Sendable' type 'Theme' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import SwiftUI
  9 |
 10 | public struct Theme {
    |               `- note: consider making struct 'Theme' conform to the 'Sendable' protocol
 11 |     var background: Color
 12 |     var title: Foreground
    :
 40 |     public static let standard: Theme = .black
 41 |
 42 |     public static let dark: Theme = Theme(
    |                       |- warning: static property 'dark' is not concurrency-safe because non-'Sendable' type 'Theme' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'dark' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |         background: Color(hex: "#221d29"),
 44 |         title: Foreground(
/Users/admin/builder/spi-builder-workspace/Sources/DeckUI/DSL/Theme.swift:66:23: warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'Theme' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import SwiftUI
  9 |
 10 | public struct Theme {
    |               `- note: consider making struct 'Theme' conform to the 'Sendable' protocol
 11 |     var background: Color
 12 |     var title: Foreground
    :
 64 |     )
 65 |
 66 |     public static let black: Theme = Theme(
    |                       |- warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'Theme' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'black' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 67 |         background: Color(hex: "#000000"),
 68 |         title: Foreground(
/Users/admin/builder/spi-builder-workspace/Sources/DeckUI/DSL/Theme.swift:90:23: warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'Theme' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import SwiftUI
  9 |
 10 | public struct Theme {
    |               `- note: consider making struct 'Theme' conform to the 'Sendable' protocol
 11 |     var background: Color
 12 |     var title: Foreground
    :
 88 |     )
 89 |
 90 |     public static let white: Theme = Theme(
    |                       |- warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'Theme' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'white' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 91 |         background: Color(hex: "#FFFFFF"),
 92 |         title: Foreground(
[9/16] Compiling DeckUI CameraView.swift
/Users/admin/builder/spi-builder-workspace/Sources/DeckUI/Views/CameraView.swift:89:29: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 87 |                     if granted {
 88 |                         DispatchQueue.main.async {
 89 |                             self?.isGranted = granted
    |                             |- 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
 90 |                         }
 91 |                     }
[10/16] Compiling DeckUI Media.swift
[11/16] Compiling DeckUI RawView.swift
[12/16] Compiling DeckUI DeckUI.swift
[13/16] Compiling DeckUI Code.swift
/Users/admin/builder/spi-builder-workspace/Sources/DeckUI/DSL/ContentItems/Code.swift:27:13: warning: call to main actor-isolated initializer 'init(lines:enableHighlight:theme:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 23 |
 24 |     // TODO: Use theme
 25 |     public func buildView(theme: Theme) -> AnyView {
    |                 `- note: add '@MainActor' to make instance method 'buildView(theme:)' part of global actor 'MainActor'
 26 |         AnyView(
 27 |             CodeView(lines: self.lines, enableHighlight: self.enableHighlight, theme: theme)
    |             `- warning: call to main actor-isolated initializer 'init(lines:enableHighlight:theme:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 28 |         )
 29 |     }
    :
 45 |     }
 46 |
 47 |     init(lines: [String], enableHighlight: Bool, theme: Theme) {
    |     |- note: calls to initializer 'init(lines:enableHighlight:theme:)' from outside of its actor context are implicitly asynchronous
    |     `- note: main actor isolation inferred from conformance to protocol 'View'
 48 |         self.lines = lines
 49 |         self.enableHighlight = enableHighlight
/Users/admin/builder/spi-builder-workspace/Sources/DeckUI/DSL/ContentItems/Code.swift:27:13: warning: sending 'theme' risks causing data races; this is an error in the Swift 6 language mode
 25 |     public func buildView(theme: Theme) -> AnyView {
 26 |         AnyView(
 27 |             CodeView(lines: self.lines, enableHighlight: self.enableHighlight, theme: theme)
    |             |- warning: sending 'theme' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: sending task-isolated 'theme' to main actor-isolated initializer 'init(lines:enableHighlight:theme:)' risks causing data races between main actor-isolated and task-isolated uses
 28 |         )
 29 |     }
[14/16] Compiling DeckUI Columns.swift
/Users/admin/builder/spi-builder-workspace/Sources/DeckUI/DSL/ContentItems/Code.swift:27:13: warning: call to main actor-isolated initializer 'init(lines:enableHighlight:theme:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 23 |
 24 |     // TODO: Use theme
 25 |     public func buildView(theme: Theme) -> AnyView {
    |                 `- note: add '@MainActor' to make instance method 'buildView(theme:)' part of global actor 'MainActor'
 26 |         AnyView(
 27 |             CodeView(lines: self.lines, enableHighlight: self.enableHighlight, theme: theme)
    |             `- warning: call to main actor-isolated initializer 'init(lines:enableHighlight:theme:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 28 |         )
 29 |     }
    :
 45 |     }
 46 |
 47 |     init(lines: [String], enableHighlight: Bool, theme: Theme) {
    |     |- note: calls to initializer 'init(lines:enableHighlight:theme:)' from outside of its actor context are implicitly asynchronous
    |     `- note: main actor isolation inferred from conformance to protocol 'View'
 48 |         self.lines = lines
 49 |         self.enableHighlight = enableHighlight
/Users/admin/builder/spi-builder-workspace/Sources/DeckUI/DSL/ContentItems/Code.swift:27:13: warning: sending 'theme' risks causing data races; this is an error in the Swift 6 language mode
 25 |     public func buildView(theme: Theme) -> AnyView {
 26 |         AnyView(
 27 |             CodeView(lines: self.lines, enableHighlight: self.enableHighlight, theme: theme)
    |             |- warning: sending 'theme' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: sending task-isolated 'theme' to main actor-isolated initializer 'init(lines:enableHighlight:theme:)' risks causing data races between main actor-isolated and task-isolated uses
 28 |         )
 29 |     }
[15/16] Compiling DeckUI ContentItem.swift
[16/16] Compiling DeckUI Bullets.swift
[17/17] Compiling DeckUI Presenter.swift
Build complete! (10.66s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DeckUI",
  "name" : "DeckUI",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "DeckUI",
      "targets" : [
        "DeckUI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DeckUITests",
      "module_type" : "SwiftTarget",
      "name" : "DeckUITests",
      "path" : "Tests/DeckUITests",
      "sources" : [
        "DeckUITests.swift"
      ],
      "target_dependencies" : [
        "DeckUI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DeckUI",
      "module_type" : "SwiftTarget",
      "name" : "DeckUI",
      "path" : "Sources/DeckUI",
      "product_memberships" : [
        "DeckUI"
      ],
      "sources" : [
        "DSL/ContentItem.swift",
        "DSL/ContentItems/Bullets.swift",
        "DSL/ContentItems/Code.swift",
        "DSL/ContentItems/Columns.swift",
        "DSL/ContentItems/Media.swift",
        "DSL/ContentItems/RawView.swift",
        "DSL/ContentItems/Title.swift",
        "DSL/ContentItems/Words.swift",
        "DSL/Deck.swift",
        "DSL/Slide.swift",
        "DSL/Theme.swift",
        "DeckUI.swift",
        "Views/CameraView.swift",
        "Views/Presenter.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Done.