The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of DSFDragSlider, reference main (995359), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 02:41:10 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 -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/dagronf/DSFDragSlider.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dagronf/DSFDragSlider
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 9953590 Workaround for Xcode 14 SwiftUI breaking
Cloned https://github.com/dagronf/DSFDragSlider.git
Revision (git rev-parse @):
9953590dd1b35a1deeecfd564a7fe5e16aa7851c
SUCCESS checkout https://github.com/dagronf/DSFDragSlider.git at main
Fetching https://github.com/dagronf/DSFAppearanceManager
[8/398] Fetching dsfappearancemanager
Fetched https://github.com/dagronf/DSFAppearanceManager from cache (1.19s)
Computing version for https://github.com/dagronf/DSFAppearanceManager
Computed https://github.com/dagronf/DSFAppearanceManager at 3.5.1 (0.57s)
Creating working copy for https://github.com/dagronf/DSFAppearanceManager
Working copy of https://github.com/dagronf/DSFAppearanceManager resolved at 3.5.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": "dsfdragslider",
      "name": "DSFDragSlider",
      "url": "https://github.com/dagronf/DSFDragSlider.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DSFDragSlider",
      "dependencies": [
        {
          "identity": "dsfappearancemanager",
          "name": "DSFAppearanceManager",
          "url": "https://github.com/dagronf/DSFAppearanceManager",
          "version": "3.5.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DSFAppearanceManager",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/dagronf/DSFDragSlider.git
[1/146] Fetching dsfdragslider
Fetched https://github.com/dagronf/DSFDragSlider.git from cache (0.75s)
Fetching https://github.com/dagronf/DSFAppearanceManager from cache
Fetched https://github.com/dagronf/DSFAppearanceManager from cache (0.44s)
Computing version for https://github.com/dagronf/DSFAppearanceManager
Computed https://github.com/dagronf/DSFAppearanceManager at 3.5.1 (0.02s)
Creating working copy for https://github.com/dagronf/DSFAppearanceManager
Working copy of https://github.com/dagronf/DSFAppearanceManager resolved at 3.5.1
Creating working copy for https://github.com/dagronf/DSFDragSlider.git
Working copy of https://github.com/dagronf/DSFDragSlider.git resolved at main (9953590)
warning: '.resolve-product-dependencies': dependency 'dsfdragslider' is not used by any target
Found 1 product dependencies
  - DSFAppearanceManager
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/dagronf/DSFDragSlider.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/7] Write sources
[2/7] Write swift-version--7754E27361AE5C74.txt
[4/19] Compiling DSFAppearanceManager WeakBag.swift
[5/19] Compiling DSFAppearanceManager DSFSimpleLock.swift
[6/20] Compiling DSFAppearanceManager WeakBox.swift
[7/20] Compiling DSFAppearanceManager AutoplayAnimatedImages.swift
[8/20] Compiling DSFAppearanceManager NSAppearance+extensions.swift
[9/20] Compiling DSFAppearanceManager DSFDebounce.swift
[10/20] Compiling DSFAppearanceManager DSFAppearanceManager+Listeners.swift
[11/20] Emitting module DSFAppearanceManager
[12/20] Compiling DSFAppearanceManager DSFAppearanceCache.swift
[13/20] Compiling DSFAppearanceManager DSFAppearanceManager+ChangeDetector.swift
[14/20] Compiling DSFAppearanceManager NSWindow+Appearance.swift
[15/20] Compiling DSFAppearanceManager DSFAppearanceManager.swift
[16/20] Compiling DSFAppearanceManager NSView+Appearance.swift
[17/27] Compiling DSFDragSlider DSFKeyedPanGestureRecognizer.swift
[18/27] Compiling DSFDragSlider NSGraphicsContext+extensions.swift
[19/27] Compiling DSFDragSlider DSFDragSlider+private.swift
[20/27] Compiling DSFDragSlider DSFDragSliderProtocol.swift
[21/27] Compiling DSFDragSlider DSFDragSlider.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFDragSlider/DSFDragSlider.swift:129:9: warning: call to main actor-isolated instance method 'removeGestureRecognizer' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | 	deinit {
128 | 		if let r = self.recognizer {
129 | 			self.removeGestureRecognizer(r)
    |         `- warning: call to main actor-isolated instance method 'removeGestureRecognizer' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
130 | 			self.recognizer = nil
131 | 		}
AppKit.NSView:7:26: note: calls to instance method 'removeGestureRecognizer' from outside of its actor context are implicitly asynchronous
5 |     open func addGestureRecognizer(_ gestureRecognizer: NSGestureRecognizer)
6 |     @available(macOS 10.10, *)
7 |     @MainActor open func removeGestureRecognizer(_ gestureRecognizer: NSGestureRecognizer)
  |                          `- note: calls to instance method 'removeGestureRecognizer' from outside of its actor context are implicitly asynchronous
8 | }
[22/27] Emitting module DSFDragSlider
/Users/admin/builder/spi-builder-workspace/Sources/DSFDragSlider/DSFDragSlider+SwiftUI.swift:148:5: warning: let 'DemoConfig' is not concurrency-safe because non-'Sendable' type 'DSFDragSliderUI.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
 34 | 	public typealias NSViewType = DSFDragSlider
 35 |
 36 | 	public struct Configuration {
    |                `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
 37 | 		let range: CGRect
 38 | 		let deltaX: CGFloat
    :
146 |
147 | @available(macOS 10.15, *)
148 | let DemoConfig = DSFDragSliderUI.Configuration(
    |     |- warning: let 'DemoConfig' is not concurrency-safe because non-'Sendable' type 'DSFDragSliderUI.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate 'DemoConfig' 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
149 | 	range: CGRect(x: -1000, y: -1000, width: 2000, height: 2000),
150 | 	deltaX: 1,
[23/27] Compiling DSFDragSlider DSFDragSlider+SwiftUI.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFDragSlider/DSFDragSlider+SwiftUI.swift:148:5: warning: let 'DemoConfig' is not concurrency-safe because non-'Sendable' type 'DSFDragSliderUI.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
 34 | 	public typealias NSViewType = DSFDragSlider
 35 |
 36 | 	public struct Configuration {
    |                `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
 37 | 		let range: CGRect
 38 | 		let deltaX: CGFloat
    :
146 |
147 | @available(macOS 10.15, *)
148 | let DemoConfig = DSFDragSliderUI.Configuration(
    |     |- warning: let 'DemoConfig' is not concurrency-safe because non-'Sendable' type 'DSFDragSliderUI.Configuration' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate 'DemoConfig' 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
149 | 	range: CGRect(x: -1000, y: -1000, width: 2000, height: 2000),
150 | 	deltaX: 1,
/Users/admin/builder/spi-builder-workspace/Sources/DSFDragSlider/DSFDragSlider+SwiftUI.swift:128:11: warning: main actor-isolated property 'currentPosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 47 |
 48 | 	@Binding var configuration: Configuration
 49 | 	@Binding var currentPosition: CGPoint
    |               `- note: mutation of this property is only permitted within the actor
 50 | 	let isEnabled: Bool
 51 |
    :
125 | 		}
126 |
127 | 		public func dragSlider(_ dragSlide: DSFDragSlider, didChangePosition point: CGPoint) {
    |               `- note: add '@MainActor' to make instance method 'dragSlider(_:didChangePosition:)' part of global actor 'MainActor'
128 | 			parent.currentPosition = point
    |           `- warning: main actor-isolated property 'currentPosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
129 | 			parent.dragChangedBlock?(point)
130 | 		}
/Users/admin/builder/spi-builder-workspace/Sources/DSFDragSlider/DSFDragSlider+SwiftUI.swift:129:11: warning: main actor-isolated property 'dragChangedBlock' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 50 | 	let isEnabled: Bool
 51 |
 52 | 	private var dragChangedBlock: ((CGPoint) -> Void)? = nil
    |              `- note: property declared here
 53 | 	private var dragEndedBlock: ((CGPoint) -> Void)? = nil
 54 |
    :
125 | 		}
126 |
127 | 		public func dragSlider(_ dragSlide: DSFDragSlider, didChangePosition point: CGPoint) {
    |               `- note: add '@MainActor' to make instance method 'dragSlider(_:didChangePosition:)' part of global actor 'MainActor'
128 | 			parent.currentPosition = point
129 | 			parent.dragChangedBlock?(point)
    |           `- warning: main actor-isolated property 'dragChangedBlock' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | 		}
131 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFDragSlider/DSFDragSlider+SwiftUI.swift:137:11: warning: main actor-isolated property 'currentPosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 47 |
 48 | 	@Binding var configuration: Configuration
 49 | 	@Binding var currentPosition: CGPoint
    |               `- note: mutation of this property is only permitted within the actor
 50 | 	let isEnabled: Bool
 51 |
    :
134 | 		}
135 |
136 | 		public func dragSlider(_ dragSlide: DSFDragSlider, didEndDragAtPoint point: CGPoint) {
    |               `- note: add '@MainActor' to make instance method 'dragSlider(_:didEndDragAtPoint:)' part of global actor 'MainActor'
137 | 			parent.currentPosition = point
    |           `- warning: main actor-isolated property 'currentPosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
138 | 			parent.dragEndedBlock?(point)
139 | 		}
/Users/admin/builder/spi-builder-workspace/Sources/DSFDragSlider/DSFDragSlider+SwiftUI.swift:138:11: warning: main actor-isolated property 'dragEndedBlock' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 51 |
 52 | 	private var dragChangedBlock: ((CGPoint) -> Void)? = nil
 53 | 	private var dragEndedBlock: ((CGPoint) -> Void)? = nil
    |              `- note: property declared here
 54 |
 55 | 	public init(
    :
134 | 		}
135 |
136 | 		public func dragSlider(_ dragSlide: DSFDragSlider, didEndDragAtPoint point: CGPoint) {
    |               `- note: add '@MainActor' to make instance method 'dragSlider(_:didEndDragAtPoint:)' part of global actor 'MainActor'
137 | 			parent.currentPosition = point
138 | 			parent.dragEndedBlock?(point)
    |           `- warning: main actor-isolated property 'dragEndedBlock' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
139 | 		}
140 | 	}
[23/27] Write Objects.LinkFileList
[25/27] Archiving libDSFDragSlider-static.a
[26/27] Linking libDSFDragSlider-shared.dylib
Build complete! (20.88s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "dsfappearancemanager",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.3.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/dagronf/DSFAppearanceManager"
    }
  ],
  "manifest_display_name" : "DSFDragSlider",
  "name" : "DSFDragSlider",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.11"
    }
  ],
  "products" : [
    {
      "name" : "DSFDragSlider",
      "targets" : [
        "DSFDragSlider"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "DSFDragSlider-static",
      "targets" : [
        "DSFDragSlider"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "DSFDragSlider-shared",
      "targets" : [
        "DSFDragSlider"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DSFDragSliderTests",
      "module_type" : "SwiftTarget",
      "name" : "DSFDragSliderTests",
      "path" : "Tests/DSFDragSliderTests",
      "sources" : [
        "DSFDragSliderTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "DSFDragSlider"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DSFDragSlider",
      "module_type" : "SwiftTarget",
      "name" : "DSFDragSlider",
      "path" : "Sources/DSFDragSlider",
      "product_dependencies" : [
        "DSFAppearanceManager"
      ],
      "product_memberships" : [
        "DSFDragSlider",
        "DSFDragSlider-static",
        "DSFDragSlider-shared"
      ],
      "sources" : [
        "DSFDragSlider+SwiftUI.swift",
        "DSFDragSlider.swift",
        "DSFDragSliderProtocol.swift",
        "private/DSFDragSlider+private.swift",
        "private/DSFKeyedPanGestureRecognizer.swift",
        "private/NSGraphicsContext+extensions.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.