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 DSFComboButton, reference main (675b8c), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 08:35:51 UTC.

Swift 6 data race errors: 1

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/dagronf/DSFComboButton.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dagronf/DSFComboButton
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 675b8c1 Update macOS minimum version to 10.13, Swift to 5.4
Cloned https://github.com/dagronf/DSFComboButton.git
Revision (git rev-parse @):
675b8c13e0db5a759a6b757b09f7e18768830f29
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/dagronf/DSFComboButton.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": "dsfcombobutton",
      "name": "DSFComboButton",
      "url": "https://github.com/dagronf/DSFComboButton.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DSFComboButton",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/dagronf/DSFComboButton.git
[1/167] Fetching dsfcombobutton
Fetched https://github.com/dagronf/DSFComboButton.git from cache (0.67s)
Creating working copy for https://github.com/dagronf/DSFComboButton.git
Working copy of https://github.com/dagronf/DSFComboButton.git resolved at main (675b8c1)
warning: '.resolve-product-dependencies': dependency 'dsfcombobutton' 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/dagronf/DSFComboButton.git
https://github.com/dagronf/DSFComboButton.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DSFComboButton",
  "name" : "DSFComboButton",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "DSFComboButton",
      "targets" : [
        "DSFComboButton"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "DSFComboButton-static",
      "targets" : [
        "DSFComboButton"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "DSFComboButton-shared",
      "targets" : [
        "DSFComboButton"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DSFComboButtonTests",
      "module_type" : "SwiftTarget",
      "name" : "DSFComboButtonTests",
      "path" : "Tests/DSFComboButtonTests",
      "sources" : [
        "DSFComboButtonTests.swift"
      ],
      "target_dependencies" : [
        "DSFComboButton"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DSFComboButton",
      "module_type" : "SwiftTarget",
      "name" : "DSFComboButton",
      "path" : "Sources/DSFComboButton",
      "product_memberships" : [
        "DSFComboButton",
        "DSFComboButton-static",
        "DSFComboButton-shared"
      ],
      "sources" : [
        "DSFComboButton.swift",
        "private/DSFComboButton+private.swift",
        "private/DelayedMenuButton.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
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/6] Write sources
[1/6] Write swift-version-2F0A5646E1D333AE.txt
[3/10] Compiling DSFComboButton DSFComboButton+private.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFComboButton/private/DSFComboButton+private.swift:214:13: warning: let '__ArrowImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
212 |
213 | // The arrow image
214 | private let __ArrowImage: NSImage = {
    |             |- warning: let '__ArrowImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let '__ArrowImage' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
215 | 	let image = NSImage(
216 | 		size: CGSize(width: 7, height: 5),
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
 64 | __attribute__((objc_subclassing_restricted))
 65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
 66 | @interface NSImage : NSObject
    |            `- note: class 'NSImage' does not conform to the 'Sendable' protocol
 67 |
 68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/DSFComboButton/private/DSFComboButton+private.swift:164:8: warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 31 |
 32 | extension DSFComboButton {
 33 | 	func setup() {
    |       |- note: calls to instance method 'setup()' from outside of its actor context are implicitly asynchronous
    |       `- note: main actor isolation inferred from inheritance from class 'NSControl'
 34 | 		self.wantsLayer = true
 35 | 		self.layer!.masksToBounds = false
    :
162 | public extension DSFComboButton {
163 | 	override func prepareForInterfaceBuilder() {
164 | 		self.setup()
    |        `- warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
165 | 		self.rebuild()
166 | 	}
/Users/admin/builder/spi-builder-workspace/Sources/DSFComboButton/private/DSFComboButton+private.swift:165:8: warning: call to main actor-isolated instance method 'rebuild()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 41 | 	}
 42 |
 43 | 	func rebuild() {
    |       |- note: calls to instance method 'rebuild()' from outside of its actor context are implicitly asynchronous
    |       `- note: main actor isolation inferred from inheritance from class 'NSControl'
 44 | 		self.segmented = nil
 45 | 		self.unified = nil
    :
163 | 	override func prepareForInterfaceBuilder() {
164 | 		self.setup()
165 | 		self.rebuild()
    |        `- warning: call to main actor-isolated instance method 'rebuild()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
166 | 	}
167 |
[4/10] Compiling DSFComboButton DelayedMenuButton.swift
[5/10] Emitting module DSFComboButton
/Users/admin/builder/spi-builder-workspace/Sources/DSFComboButton/private/DSFComboButton+private.swift:214:13: warning: let '__ArrowImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
212 |
213 | // The arrow image
214 | private let __ArrowImage: NSImage = {
    |             |- warning: let '__ArrowImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let '__ArrowImage' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
215 | 	let image = NSImage(
216 | 		size: CGSize(width: 7, height: 5),
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
 64 | __attribute__((objc_subclassing_restricted))
 65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
 66 | @interface NSImage : NSObject
    |            `- note: class 'NSImage' does not conform to the 'Sendable' protocol
 67 |
 68 | #pragma mark - Initialization
[6/10] Compiling DSFComboButton DSFComboButton.swift
[6/10] Write Objects.LinkFileList
[8/10] Archiving libDSFComboButton-static.a
[9/10] Linking libDSFComboButton-shared.dylib
Build complete! (7.74s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DSFComboButton",
  "name" : "DSFComboButton",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "DSFComboButton",
      "targets" : [
        "DSFComboButton"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "DSFComboButton-static",
      "targets" : [
        "DSFComboButton"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "DSFComboButton-shared",
      "targets" : [
        "DSFComboButton"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DSFComboButtonTests",
      "module_type" : "SwiftTarget",
      "name" : "DSFComboButtonTests",
      "path" : "Tests/DSFComboButtonTests",
      "sources" : [
        "DSFComboButtonTests.swift"
      ],
      "target_dependencies" : [
        "DSFComboButton"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DSFComboButton",
      "module_type" : "SwiftTarget",
      "name" : "DSFComboButton",
      "path" : "Sources/DSFComboButton",
      "product_memberships" : [
        "DSFComboButton",
        "DSFComboButton-static",
        "DSFComboButton-shared"
      ],
      "sources" : [
        "DSFComboButton.swift",
        "private/DSFComboButton+private.swift",
        "private/DelayedMenuButton.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Done.