This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 4

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/chipjarred/CustomToolTip.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/chipjarred/CustomToolTip
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/chipjarred/CustomToolTip.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/4] Write sources
[2/4] Write swift-version-6F35C1178C84523A.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 ToolTipControl.swift
/Users/admin/builder/spi-builder-workspace/Sources/CustomToolTip/CustomToolTipWindow.swift:3:12: warning: var 'defaultMargins' is not concurrency-safe because it is non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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
[9/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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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
[10/16] Compiling CustomToolTip NSImage+Extension.swift
[11/16] Compiling CustomToolTip NSTrackingArea+Extension.swift
[12/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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 | // -------------------------------------
[13/16] Compiling CustomToolTip NSBitmapImageRep+Extension.swift
[14/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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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:145:26: note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
143 |     @MainActor open func orderFront(_ sender: Any?)
144 |     open func orderBack(_ sender: Any?)
145 |     @MainActor open func orderOut(_ sender: Any?)
    |                          `- note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
146 |     open func order(_ place: NSWindow.OrderingMode, relativeTo otherWin: Int)
147 |     @available(swift, obsoleted: 3, renamed: "order(_:relativeTo:)")
[15/16] Compiling CustomToolTip Debugging.swift
[16/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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 | // -------------------------------------
Build complete! (27.84s)
Fetching https://github.com/chipjarred/SwizzleHelper.git
[1/158] Fetching swizzlehelper
Fetched https://github.com/chipjarred/SwizzleHelper.git from cache (0.72s)
Computing version for https://github.com/chipjarred/SwizzleHelper.git
Computed https://github.com/chipjarred/SwizzleHelper.git at 1.0.2 (0.66s)
Creating working copy for https://github.com/chipjarred/SwizzleHelper.git
Working copy of https://github.com/chipjarred/SwizzleHelper.git resolved at 1.0.2
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.