Build Information
Successful build of DSFPagerControl, reference main (9da3ea
), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 04:58:21 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/DSFPagerControl.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dagronf/DSFPagerControl
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 9da3ea3 Additional style
Cloned https://github.com/dagronf/DSFPagerControl.git
Revision (git rev-parse @):
9da3ea3712fec487ed496bd3905b8c01754a7921
SUCCESS checkout https://github.com/dagronf/DSFPagerControl.git at main
Fetching https://github.com/dagronf/DSFAppearanceManager
[1/459] Fetching dsfappearancemanager
Fetched https://github.com/dagronf/DSFAppearanceManager from cache (1.10s)
Computing version for https://github.com/dagronf/DSFAppearanceManager
Computed https://github.com/dagronf/DSFAppearanceManager at 3.5.1 (1.69s)
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": "dsfpagercontrol",
"name": "DSFPagerControl",
"url": "https://github.com/dagronf/DSFPagerControl.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DSFPagerControl",
"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/DSFPagerControl.git
[1/312] Fetching dsfpagercontrol
Fetched https://github.com/dagronf/DSFPagerControl.git from cache (0.72s)
Fetching https://github.com/dagronf/DSFAppearanceManager from cache
Fetched https://github.com/dagronf/DSFAppearanceManager from cache (0.40s)
Computing version for https://github.com/dagronf/DSFAppearanceManager
Computed https://github.com/dagronf/DSFAppearanceManager at 3.5.1 (0.45s)
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/DSFPagerControl.git
Working copy of https://github.com/dagronf/DSFPagerControl.git resolved at main (9da3ea3)
warning: '.resolve-product-dependencies': dependency 'dsfpagercontrol' is not used by any target
Found 1 product dependencies
- DSFAppearanceManager
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/dagronf/DSFPagerControl.git
https://github.com/dagronf/DSFPagerControl.git
{
"dependencies" : [
{
"identity" : "dsfappearancemanager",
"requirement" : {
"range" : [
{
"lower_bound" : "3.5.0",
"upper_bound" : "3.6.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/DSFAppearanceManager"
}
],
"manifest_display_name" : "DSFPagerControl",
"name" : "DSFPagerControl",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "DSFPagerControl",
"targets" : [
"DSFPagerControl"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "DSFPagerControl-static",
"targets" : [
"DSFPagerControl"
],
"type" : {
"library" : [
"static"
]
}
},
{
"name" : "DSFPagerControl-shared",
"targets" : [
"DSFPagerControl"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"targets" : [
{
"c99name" : "DSFPagerControlTests",
"module_type" : "SwiftTarget",
"name" : "DSFPagerControlTests",
"path" : "Tests/DSFPagerControlTests",
"sources" : [
"DSFPagerControlTests.swift"
],
"target_dependencies" : [
"DSFPagerControl"
],
"type" : "test"
},
{
"c99name" : "DSFPagerControl",
"module_type" : "SwiftTarget",
"name" : "DSFPagerControl",
"path" : "Sources/DSFPagerControl",
"product_dependencies" : [
"DSFAppearanceManager"
],
"product_memberships" : [
"DSFPagerControl",
"DSFPagerControl-static",
"DSFPagerControl-shared"
],
"sources" : [
"DSFPagerControl+CustomShapes.swift",
"DSFPagerControl+Interation.swift",
"DSFPagerControl+Shape.swift",
"DSFPagerControl+SwiftUI.swift",
"DSFPagerControl.swift",
"DSFPagerControlHandling.swift",
"private/util/CATransaction+extensions.swift",
"private/util/CGPath+extensions.swift",
"private/util/DSFDebounce.swift",
"private/util/NSBezierPath+extensions.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/7] Write sources
[2/7] Write swift-version-2F0A5646E1D333AE.txt
[4/19] Compiling DSFAppearanceManager WeakBag.swift
[5/20] Compiling DSFAppearanceManager WeakBox.swift
[6/20] Compiling DSFAppearanceManager AutoplayAnimatedImages.swift
[7/20] Compiling DSFAppearanceManager NSAppearance+extensions.swift
[8/20] Compiling DSFAppearanceManager DSFDebounce.swift
[9/20] Compiling DSFAppearanceManager DSFSimpleLock.swift
[10/20] Compiling DSFAppearanceManager DSFAppearanceManager+Listeners.swift
[11/20] Compiling DSFAppearanceManager DSFAppearanceManager.swift
[12/20] Compiling DSFAppearanceManager NSView+Appearance.swift
[13/20] Compiling DSFAppearanceManager NSWindow+Appearance.swift
[14/20] Emitting module DSFAppearanceManager
[15/20] Compiling DSFAppearanceManager DSFAppearanceCache.swift
[16/20] Compiling DSFAppearanceManager DSFAppearanceManager+ChangeDetector.swift
[17/30] Compiling DSFPagerControl DSFPagerControlHandling.swift
[18/31] Compiling DSFPagerControl CATransaction+extensions.swift
[19/31] Compiling DSFPagerControl CGPath+extensions.swift
[20/31] Compiling DSFPagerControl DSFDebounce.swift
[21/31] Compiling DSFPagerControl NSBezierPath+extensions.swift
[22/31] Compiling DSFPagerControl DSFPagerControl.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFPagerControl/DSFPagerControl.swift:310:14: warning: main actor-isolated instance method 'appearanceDidChange()' cannot be used to satisfy nonisolated requirement from protocol 'DSFAppearanceCacheNotifiable'; this is an error in the Swift 6 language mode
295 | }
296 |
297 | extension DSFPagerControl: DSFAppearanceCacheNotifiable {
| `- note: add '@preconcurrency' to the 'DSFAppearanceCacheNotifiable' conformance to defer isolation checking to run time
298 |
299 | func setup() {
:
308 | }
309 |
310 | public func appearanceDidChange() {
| |- warning: main actor-isolated instance method 'appearanceDidChange()' cannot be used to satisfy nonisolated requirement from protocol 'DSFAppearanceCacheNotifiable'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'appearanceDidChange()' to make this instance method not isolated to the actor
311 | self.colorsDidChange()
312 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFAppearanceManager/Sources/DSFAppearanceManager/DSFAppearanceCache.swift:38:13: note: mark the protocol requirement 'appearanceDidChange()' 'async' to allow actor-isolated conformances
36 | /// A protocol for receiving appearance notifications
37 | @objc public protocol DSFAppearanceCacheNotifiable: NSObjectProtocol {
38 | @objc func appearanceDidChange()
| `- note: mark the protocol requirement 'appearanceDidChange()' 'async' to allow actor-isolated conformances
39 | }
40 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFPagerControl/DSFPagerControl.swift:271:8: warning: call to main actor-isolated instance method 'rebuildDotLayers()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
269 |
270 | override func prepareForInterfaceBuilder() {
271 | self.rebuildDotLayers()
| `- warning: call to main actor-isolated instance method 'rebuildDotLayers()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
272 | self.selectionDidChange()
273 | }
:
324 | }
325 |
326 | func rebuildDotLayers() {
| |- note: calls to instance method 'rebuildDotLayers()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
327 |
328 | self.dotLayers.forEach { $0.removeFromSuperlayer() }
/Users/admin/builder/spi-builder-workspace/Sources/DSFPagerControl/DSFPagerControl.swift:272:8: warning: call to main actor-isolated instance method 'selectionDidChange()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
270 | override func prepareForInterfaceBuilder() {
271 | self.rebuildDotLayers()
272 | self.selectionDidChange()
| `- warning: call to main actor-isolated instance method 'selectionDidChange()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
273 | }
274 |
:
312 | }
313 |
314 | func selectionDidChange() {
| |- note: calls to instance method 'selectionDidChange()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
315 | self.dotLayers.enumerated().forEach { l in
316 | l.element.isSelected = (l.offset == self._selected)
/Users/admin/builder/spi-builder-workspace/Sources/DSFPagerControl/DSFPagerControl.swift:507:32: warning: main actor-isolated property 'isEnabled' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
59 |
60 | /// A Boolean value that indicates whether the receiver reacts to input events
61 | @IBInspectable public var isEnabled: Bool = true {
| `- note: property declared here
62 | didSet {
63 | self.needsLayout = true
:
505 | CATransaction.withDisabledActions(DSFAppearanceManager.ReduceMotion) {
506 |
507 | self.opacity = self.parent.isEnabled ? 1.0 : 0.2
| `- warning: main actor-isolated property 'isEnabled' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
508 |
509 | self.parent.usingEffectiveAppearance {
/Users/admin/builder/spi-builder-workspace/Sources/DSFPagerControl/DSFPagerControl.swift:509:17: warning: call to main actor-isolated instance method 'usingEffectiveAppearance' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
507 | self.opacity = self.parent.isEnabled ? 1.0 : 0.2
508 |
509 | self.parent.usingEffectiveAppearance {
| `- warning: call to main actor-isolated instance method 'usingEffectiveAppearance' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
510 | if self.isSelected {
511 | self.fillColor = self.parent._selectedFillColor.cgColor
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFAppearanceManager/Sources/DSFAppearanceManager/NSView+Appearance.swift:39:13: note: calls to instance method 'usingEffectiveAppearance' from outside of its actor context are implicitly asynchronous
37 | ///
38 | /// See [Discussion](https://dagronf.wordpress.com/2020/08/20/my-nscolor-colorset-colors-arent-changing-when-going-dark/)
39 | @objc func usingEffectiveAppearance(_ block: () -> Void) {
| `- note: calls to instance method 'usingEffectiveAppearance' from outside of its actor context are implicitly asynchronous
40 | self.effectiveAppearance.usingAsDrawingAppearance {
41 | block()
/Users/admin/builder/spi-builder-workspace/Sources/DSFPagerControl/DSFPagerControl.swift:511:36: warning: main actor-isolated property '_selectedFillColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
435 |
436 | extension DSFPagerControl {
437 | var _selectedFillColor: NSColor {
| `- note: property declared here
438 | if let s = self.selectedColorBlock {
439 | return s()
:
509 | self.parent.usingEffectiveAppearance {
510 | if self.isSelected {
511 | self.fillColor = self.parent._selectedFillColor.cgColor
| `- warning: main actor-isolated property '_selectedFillColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
512 | self.strokeColor = self.parent._selectedFillColor.cgColor
513 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFPagerControl/DSFPagerControl.swift:512:38: warning: main actor-isolated property '_selectedFillColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
435 |
436 | extension DSFPagerControl {
437 | var _selectedFillColor: NSColor {
| `- note: property declared here
438 | if let s = self.selectedColorBlock {
439 | return s()
:
510 | if self.isSelected {
511 | self.fillColor = self.parent._selectedFillColor.cgColor
512 | self.strokeColor = self.parent._selectedFillColor.cgColor
| `- warning: main actor-isolated property '_selectedFillColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
513 | }
514 | else {
/Users/admin/builder/spi-builder-workspace/Sources/DSFPagerControl/DSFPagerControl.swift:516:39: warning: main actor-isolated property '_selectedFillColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
435 |
436 | extension DSFPagerControl {
437 | var _selectedFillColor: NSColor {
| `- note: property declared here
438 | if let s = self.selectedColorBlock {
439 | return s()
:
514 | else {
515 | if DSFAppearanceManager.IncreaseContrast {
516 | self.strokeColor = self.parent._selectedFillColor.cgColor
| `- warning: main actor-isolated property '_selectedFillColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
517 | self.fillColor = nil
518 | self.lineWidth = 1
/Users/admin/builder/spi-builder-workspace/Sources/DSFPagerControl/DSFPagerControl.swift:520:27: warning: main actor-isolated property 'bordered' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
123 |
124 | /// Uses the selected color to draw a 0.5px border around each unselected page dot
125 | @IBInspectable public var bordered: Bool = false {
| `- note: property declared here
126 | didSet {
127 | self.colorsDidChange()
:
518 | self.lineWidth = 1
519 | }
520 | else if self.parent.bordered {
| `- warning: main actor-isolated property 'bordered' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
521 | self.strokeColor = self.parent._selectedFillColor.cgColor
522 | self.fillColor = self.parent._unselectedStrokeColor.cgColor
/Users/admin/builder/spi-builder-workspace/Sources/DSFPagerControl/DSFPagerControl.swift:521:39: warning: main actor-isolated property '_selectedFillColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
435 |
436 | extension DSFPagerControl {
437 | var _selectedFillColor: NSColor {
| `- note: property declared here
438 | if let s = self.selectedColorBlock {
439 | return s()
:
519 | }
520 | else if self.parent.bordered {
521 | self.strokeColor = self.parent._selectedFillColor.cgColor
| `- warning: main actor-isolated property '_selectedFillColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
522 | self.fillColor = self.parent._unselectedStrokeColor.cgColor
523 | self.lineWidth = 0.5
/Users/admin/builder/spi-builder-workspace/Sources/DSFPagerControl/DSFPagerControl.swift:522:37: warning: main actor-isolated property '_unselectedStrokeColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
441 | return .textColor
442 | }
443 | var _unselectedStrokeColor: NSColor {
| `- note: property declared here
444 | if let s = self.unselectedColorBlock {
445 | return s()
:
520 | else if self.parent.bordered {
521 | self.strokeColor = self.parent._selectedFillColor.cgColor
522 | self.fillColor = self.parent._unselectedStrokeColor.cgColor
| `- warning: main actor-isolated property '_unselectedStrokeColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
523 | self.lineWidth = 0.5
524 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFPagerControl/DSFPagerControl.swift:526:37: warning: main actor-isolated property '_unselectedStrokeColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
441 | return .textColor
442 | }
443 | var _unselectedStrokeColor: NSColor {
| `- note: property declared here
444 | if let s = self.unselectedColorBlock {
445 | return s()
:
524 | }
525 | else {
526 | self.fillColor = self.parent._unselectedStrokeColor.cgColor
| `- warning: main actor-isolated property '_unselectedStrokeColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
527 | self.strokeColor = self.parent._unselectedStrokeColor.cgColor
528 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFPagerControl/DSFPagerControl.swift:527:39: warning: main actor-isolated property '_unselectedStrokeColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
441 | return .textColor
442 | }
443 | var _unselectedStrokeColor: NSColor {
| `- note: property declared here
444 | if let s = self.unselectedColorBlock {
445 | return s()
:
525 | else {
526 | self.fillColor = self.parent._unselectedStrokeColor.cgColor
527 | self.strokeColor = self.parent._unselectedStrokeColor.cgColor
| `- warning: main actor-isolated property '_unselectedStrokeColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
528 | }
529 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFPagerControl/DSFPagerControl.swift:536:28: warning: main actor-isolated property 'indicatorShape' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
80 |
81 | /// The indicator shape
82 | @objc public var indicatorShape: DSFPagerControlIndicatorShape = HorizontalIndicatorShape() {
| `- note: property declared here
83 | didSet {
84 | self.rebuildDotLayers()
:
534 | override func layoutSublayers() {
535 | super.layoutSublayers()
536 | self.path = self.parent.indicatorShape.path(
| `- warning: main actor-isolated property 'indicatorShape' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
537 | selectedPage: index,
538 | totalPageCount: self.parent.pageCount
/Users/admin/builder/spi-builder-workspace/Sources/DSFPagerControl/DSFPagerControl.swift:538:33: warning: main actor-isolated property 'pageCount' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 |
49 | /// The number of pages within the control
50 | @IBInspectable public dynamic var pageCount: Int {
| `- note: property declared here
51 | get { self._pageCount }
52 | set {
:
536 | self.path = self.parent.indicatorShape.path(
537 | selectedPage: index,
538 | totalPageCount: self.parent.pageCount
| `- warning: main actor-isolated property 'pageCount' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
539 | )
540 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFPagerControl/DSFPagerControl.swift:509:17: warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
507 | self.opacity = self.parent.isEnabled ? 1.0 : 0.2
508 |
509 | self.parent.usingEffectiveAppearance {
| |- warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> Void' to main actor-isolated instance method 'usingEffectiveAppearance' risks causing races in between task-isolated and main actor-isolated uses
510 | if self.isSelected {
511 | self.fillColor = self.parent._selectedFillColor.cgColor
[23/31] Compiling DSFPagerControl DSFPagerControl+CustomShapes.swift
[24/31] Compiling DSFPagerControl DSFPagerControl+Shape.swift
[25/31] Emitting module DSFPagerControl
/Users/admin/builder/spi-builder-workspace/Sources/DSFPagerControl/DSFPagerControl.swift:310:14: warning: main actor-isolated instance method 'appearanceDidChange()' cannot be used to satisfy nonisolated requirement from protocol 'DSFAppearanceCacheNotifiable'; this is an error in the Swift 6 language mode
295 | }
296 |
297 | extension DSFPagerControl: DSFAppearanceCacheNotifiable {
| `- note: add '@preconcurrency' to the 'DSFAppearanceCacheNotifiable' conformance to defer isolation checking to run time
298 |
299 | func setup() {
:
308 | }
309 |
310 | public func appearanceDidChange() {
| |- warning: main actor-isolated instance method 'appearanceDidChange()' cannot be used to satisfy nonisolated requirement from protocol 'DSFAppearanceCacheNotifiable'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'appearanceDidChange()' to make this instance method not isolated to the actor
311 | self.colorsDidChange()
312 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFAppearanceManager/Sources/DSFAppearanceManager/DSFAppearanceCache.swift:38:13: note: mark the protocol requirement 'appearanceDidChange()' 'async' to allow actor-isolated conformances
36 | /// A protocol for receiving appearance notifications
37 | @objc public protocol DSFAppearanceCacheNotifiable: NSObjectProtocol {
38 | @objc func appearanceDidChange()
| `- note: mark the protocol requirement 'appearanceDidChange()' 'async' to allow actor-isolated conformances
39 | }
40 |
[26/31] Compiling DSFPagerControl DSFPagerControl+Interation.swift
[27/31] Compiling DSFPagerControl DSFPagerControl+SwiftUI.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFPagerControl/DSFPagerControl+SwiftUI.swift:176:14: warning: main actor-isolated property 'selectedPage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
14 |
15 | private let pageCount: Int
16 | @Binding private var selectedPage: Int
| `- note: property declared here
17 |
18 | private let indicatorShape: DSFPagerControlIndicatorShape
:
173 |
174 | /// Called when the pager changed to a new page
175 | @objc public func pagerControl(_ pager: DSFPagerControl, didMoveToPage page: Int) {
| `- note: add '@MainActor' to make instance method 'pagerControl(_:didMoveToPage:)' part of global actor 'MainActor'
176 | if parent.selectedPage != page {
| `- warning: main actor-isolated property 'selectedPage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
177 | DispatchQueue.main.async { [weak self] in
178 | self?.parent.selectedPage = page
/Users/admin/builder/spi-builder-workspace/Sources/DSFPagerControl/DSFPagerControl+SwiftUI.swift:178:6: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
176 | if parent.selectedPage != page {
177 | DispatchQueue.main.async { [weak self] in
178 | self?.parent.selectedPage = page
| |- 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
179 | }
180 | }
[27/31] Write Objects.LinkFileList
/Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning duplicate member name 'DSFDebounce.swift.o' from '/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/DSFAppearanceManager.build/DSFDebounce.swift.o(DSFDebounce.swift.o)' and '/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/DSFPagerControl.build/DSFDebounce.swift.o(DSFDebounce.swift.o)'
[29/31] Archiving libDSFPagerControl-static.a
[30/31] Linking libDSFPagerControl-shared.dylib
Build complete! (12.21s)
Build complete.
{
"dependencies" : [
{
"identity" : "dsfappearancemanager",
"requirement" : {
"range" : [
{
"lower_bound" : "3.5.0",
"upper_bound" : "3.6.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/DSFAppearanceManager"
}
],
"manifest_display_name" : "DSFPagerControl",
"name" : "DSFPagerControl",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "DSFPagerControl",
"targets" : [
"DSFPagerControl"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "DSFPagerControl-static",
"targets" : [
"DSFPagerControl"
],
"type" : {
"library" : [
"static"
]
}
},
{
"name" : "DSFPagerControl-shared",
"targets" : [
"DSFPagerControl"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"targets" : [
{
"c99name" : "DSFPagerControlTests",
"module_type" : "SwiftTarget",
"name" : "DSFPagerControlTests",
"path" : "Tests/DSFPagerControlTests",
"sources" : [
"DSFPagerControlTests.swift"
],
"target_dependencies" : [
"DSFPagerControl"
],
"type" : "test"
},
{
"c99name" : "DSFPagerControl",
"module_type" : "SwiftTarget",
"name" : "DSFPagerControl",
"path" : "Sources/DSFPagerControl",
"product_dependencies" : [
"DSFAppearanceManager"
],
"product_memberships" : [
"DSFPagerControl",
"DSFPagerControl-static",
"DSFPagerControl-shared"
],
"sources" : [
"DSFPagerControl+CustomShapes.swift",
"DSFPagerControl+Interation.swift",
"DSFPagerControl+Shape.swift",
"DSFPagerControl+SwiftUI.swift",
"DSFPagerControl.swift",
"DSFPagerControlHandling.swift",
"private/util/CATransaction+extensions.swift",
"private/util/CGPath+extensions.swift",
"private/util/DSFDebounce.swift",
"private/util/NSBezierPath+extensions.swift"
],
"type" : "library"
}
],
"tools_version" : "5.4"
}
Done.