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 CustomToolTip, reference 1.0.3 (370678), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 08:40:13 UTC.

Swift 6 data race errors: 4

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/chipjarred/CustomToolTip.git
Reference: 1.0.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/chipjarred/CustomToolTip
 * tag               1.0.3      -> FETCH_HEAD
HEAD is now at 370678c Changed dependency on SwizzleHelper to use explicit version rather than named branch.
Cloned https://github.com/chipjarred/CustomToolTip.git
Revision (git rev-parse @):
370678c439eaac158928a70a802affbb55d95c02
SUCCESS checkout https://github.com/chipjarred/CustomToolTip.git at 1.0.3
Fetching https://github.com/chipjarred/SwizzleHelper.git
[1/158] Fetching swizzlehelper
Fetched https://github.com/chipjarred/SwizzleHelper.git from cache (0.70s)
Computing version for https://github.com/chipjarred/SwizzleHelper.git
Computed https://github.com/chipjarred/SwizzleHelper.git at 1.0.2 (0.52s)
Creating working copy for https://github.com/chipjarred/SwizzleHelper.git
Working copy of https://github.com/chipjarred/SwizzleHelper.git resolved at 1.0.2
========================================
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": "customtooltip",
      "name": "CustomToolTip",
      "url": "https://github.com/chipjarred/CustomToolTip.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CustomToolTip",
      "dependencies": [
        {
          "identity": "swizzlehelper",
          "name": "SwizzleHelper",
          "url": "https://github.com/chipjarred/SwizzleHelper.git",
          "version": "1.0.2",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwizzleHelper",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/chipjarred/CustomToolTip.git
[4/193] Fetching customtooltip
Fetched https://github.com/chipjarred/CustomToolTip.git from cache (0.82s)
Fetching https://github.com/chipjarred/SwizzleHelper.git from cache
Fetched https://github.com/chipjarred/SwizzleHelper.git from cache (0.47s)
Computing version for https://github.com/chipjarred/SwizzleHelper.git
Computed https://github.com/chipjarred/SwizzleHelper.git at 1.0.2 (0.03s)
Creating working copy for https://github.com/chipjarred/CustomToolTip.git
Working copy of https://github.com/chipjarred/CustomToolTip.git resolved at 1.0.3 (370678c)
Creating working copy for https://github.com/chipjarred/SwizzleHelper.git
Working copy of https://github.com/chipjarred/SwizzleHelper.git resolved at 1.0.2
warning: '.resolve-product-dependencies': dependency 'customtooltip' is not used by any target
Found 1 product dependencies
  - SwizzleHelper
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/chipjarred/CustomToolTip.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/4] Write sources
[2/4] Write swift-version--7754E27361AE5C74.txt
[3/4] Compiling SwizzleHelperObjC swizzleHelper.m
[5/7] Emitting module SwizzleHelper
[6/7] Compiling SwizzleHelper NSObject+AssociatedObjects.swift
[7/7] Compiling SwizzleHelper NSObject+Swizzling.swift
[8/16] Compiling CustomToolTip NSTrackingArea+Extension.swift
[9/16] Compiling CustomToolTip ToolTipControl.swift
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/CustomToolTipWindow.swift:3:12: warning: var 'defaultMargins' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  1 | import AppKit
  2 |
  3 | public var defaultMargins: CGSize = CGSize(width: 5, height: 5)
    |            |- warning: var 'defaultMargins' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'defaultMargins' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'defaultMargins' 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
  4 | public var defaultBackgroundColor: NSColor = .windowBackgroundColor
  5 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/CustomToolTipWindow.swift:4:12: warning: var 'defaultBackgroundColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | public var defaultMargins: CGSize = CGSize(width: 5, height: 5)
  4 | public var defaultBackgroundColor: NSColor = .windowBackgroundColor
    |            |- warning: var 'defaultBackgroundColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'defaultBackgroundColor' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'defaultBackgroundColor' 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
  5 |
  6 | // MARK:- Custom Tool Tip Window
[10/16] Compiling CustomToolTip NSImage+Extension.swift
[11/16] Compiling CustomToolTip NSCursor+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/NSCursor+Extension.swift:3:17: warning: var 'cachedCursorRect' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  1 | import AppKit
  2 |
  3 | fileprivate var cachedCursorRect = CGRect.zero
    |                 |- warning: var 'cachedCursorRect' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                 |- note: convert 'cachedCursorRect' to a 'let' constant to make 'Sendable' shared state immutable
    |                 |- note: annotate 'cachedCursorRect' 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
  4 | fileprivate weak var cachedCursorImage: NSImage? = nil
  5 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/NSCursor+Extension.swift:4:22: warning: var 'cachedCursorImage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | fileprivate var cachedCursorRect = CGRect.zero
  4 | fileprivate weak var cachedCursorImage: NSImage? = nil
    |                      |- warning: var 'cachedCursorImage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: convert 'cachedCursorImage' to a 'let' constant to make 'Sendable' shared state immutable
    |                      |- note: annotate 'cachedCursorImage' 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
  5 |
  6 | // -------------------------------------
[12/16] Compiling CustomToolTip Debugging.swift
[13/16] Compiling CustomToolTip CustomToolTipWindow.swift
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/CustomToolTipWindow.swift:3:12: warning: var 'defaultMargins' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  1 | import AppKit
  2 |
  3 | public var defaultMargins: CGSize = CGSize(width: 5, height: 5)
    |            |- warning: var 'defaultMargins' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'defaultMargins' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'defaultMargins' 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
  4 | public var defaultBackgroundColor: NSColor = .windowBackgroundColor
  5 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/CustomToolTipWindow.swift:4:12: warning: var 'defaultBackgroundColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | public var defaultMargins: CGSize = CGSize(width: 5, height: 5)
  4 | public var defaultBackgroundColor: NSColor = .windowBackgroundColor
    |            |- warning: var 'defaultBackgroundColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'defaultBackgroundColor' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'defaultBackgroundColor' 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
  5 |
  6 | // MARK:- Custom Tool Tip Window
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/CustomToolTipWindow.swift:102:14: warning: call to main actor-isolated instance method 'orderOut' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
100 |
101 |     // -------------------------------------
102 |     deinit { orderOut(nil) }
    |              `- warning: call to main actor-isolated instance method 'orderOut' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
103 |
104 |     // -------------------------------------
AppKit.NSWindow:147:26: note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
 145 |     @MainActor open func orderFront(_ sender: Any?)
 146 |     open func orderBack(_ sender: Any?)
 147 |     @MainActor open func orderOut(_ sender: Any?)
     |                          `- note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
 148 |     open func order(_ place: NSWindow.OrderingMode, relativeTo otherWin: Int)
 149 |     @available(swift, obsoleted: 3, renamed: "order(_:relativeTo:)")
[14/16] Emitting module CustomToolTip
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/CustomToolTipWindow.swift:3:12: warning: var 'defaultMargins' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  1 | import AppKit
  2 |
  3 | public var defaultMargins: CGSize = CGSize(width: 5, height: 5)
    |            |- warning: var 'defaultMargins' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'defaultMargins' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'defaultMargins' 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
  4 | public var defaultBackgroundColor: NSColor = .windowBackgroundColor
  5 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/CustomToolTipWindow.swift:4:12: warning: var 'defaultBackgroundColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | public var defaultMargins: CGSize = CGSize(width: 5, height: 5)
  4 | public var defaultBackgroundColor: NSColor = .windowBackgroundColor
    |            |- warning: var 'defaultBackgroundColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'defaultBackgroundColor' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'defaultBackgroundColor' 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
  5 |
  6 | // MARK:- Custom Tool Tip Window
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/NSCursor+Extension.swift:3:17: warning: var 'cachedCursorRect' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  1 | import AppKit
  2 |
  3 | fileprivate var cachedCursorRect = CGRect.zero
    |                 |- warning: var 'cachedCursorRect' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                 |- note: convert 'cachedCursorRect' to a 'let' constant to make 'Sendable' shared state immutable
    |                 |- note: annotate 'cachedCursorRect' 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
  4 | fileprivate weak var cachedCursorImage: NSImage? = nil
  5 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/NSCursor+Extension.swift:4:22: warning: var 'cachedCursorImage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | fileprivate var cachedCursorRect = CGRect.zero
  4 | fileprivate weak var cachedCursorImage: NSImage? = nil
    |                      |- warning: var 'cachedCursorImage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: convert 'cachedCursorImage' to a 'let' constant to make 'Sendable' shared state immutable
    |                      |- note: annotate 'cachedCursorImage' 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
  5 |
  6 | // -------------------------------------
[15/16] Compiling CustomToolTip NSView+CustomToolTip.swift
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/CustomToolTipWindow.swift:3:12: warning: var 'defaultMargins' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  1 | import AppKit
  2 |
  3 | public var defaultMargins: CGSize = CGSize(width: 5, height: 5)
    |            |- warning: var 'defaultMargins' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'defaultMargins' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'defaultMargins' 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
  4 | public var defaultBackgroundColor: NSColor = .windowBackgroundColor
  5 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/CustomToolTipWindow.swift:4:12: warning: var 'defaultBackgroundColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | public var defaultMargins: CGSize = CGSize(width: 5, height: 5)
  4 | public var defaultBackgroundColor: NSColor = .windowBackgroundColor
    |            |- warning: var 'defaultBackgroundColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'defaultBackgroundColor' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'defaultBackgroundColor' 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
  5 |
  6 | // MARK:- Custom Tool Tip Window
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/NSView+CustomToolTip.swift:297:34: warning: call to main actor-isolated instance method 'scheduledShowToolTip()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
295 |         let asyncDelay: DispatchTimeInterval = .milliseconds(Int(delay * 1000))
296 |         dispatchQueue.asyncAfter(deadline: .now() + asyncDelay) {
297 |             [weak self] in self?.scheduledShowToolTip()
    |                                  `- warning: call to main actor-isolated instance method 'scheduledShowToolTip()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
298 |         }
299 |     }
    :
305 |      to check again after a short delay.
306 |      */
307 |     private func scheduledShowToolTip()
    |                  `- note: calls to instance method 'scheduledShowToolTip()' from outside of its actor context are implicitly asynchronous
308 |     {
309 |         let repeatDelay: TimeInterval = 0.1
[16/16] Compiling CustomToolTip NSBitmapImageRep+Extension.swift
Build complete! (12.58s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swizzlehelper",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/chipjarred/SwizzleHelper.git"
    }
  ],
  "manifest_display_name" : "CustomToolTip",
  "name" : "CustomToolTip",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.14"
    }
  ],
  "products" : [
    {
      "name" : "CustomToolTip",
      "targets" : [
        "CustomToolTip"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CustomToolTipTests",
      "module_type" : "SwiftTarget",
      "name" : "CustomToolTipTests",
      "path" : "Tests/CustomToolTipTests",
      "sources" : [
        "CustomToolTipTests.swift"
      ],
      "target_dependencies" : [
        "CustomToolTip"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CustomToolTip",
      "module_type" : "SwiftTarget",
      "name" : "CustomToolTip",
      "path" : "Sources/CustomToolTip",
      "product_dependencies" : [
        "SwizzleHelper"
      ],
      "product_memberships" : [
        "CustomToolTip"
      ],
      "sources" : [
        "CustomToolTipWindow.swift",
        "Debugging.swift",
        "NSBitmapImageRep+Extension.swift",
        "NSCursor+Extension.swift",
        "NSImage+Extension.swift",
        "NSTrackingArea+Extension.swift",
        "NSView+CustomToolTip.swift",
        "ToolTipControl.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.