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 DSFFloatLabelledTextField, reference master (637703), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 01:08:15 UTC.

Swift 6 data race errors: 2

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dagronf/DSFFloatLabelledTextControl.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dagronf/DSFFloatLabelledTextControl
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 637703b Update documentation
Cloned https://github.com/dagronf/DSFFloatLabelledTextControl.git
Revision (git rev-parse @):
637703bd5e482b4d7feb3b83ed9e67d939d5d389
SUCCESS checkout https://github.com/dagronf/DSFFloatLabelledTextControl.git at master
========================================
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": "dsffloatlabelledtextcontrol",
      "name": "DSFFloatLabelledTextField",
      "url": "https://github.com/dagronf/DSFFloatLabelledTextControl.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DSFFloatLabelledTextControl",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/dagronf/DSFFloatLabelledTextControl.git
[6/299] Fetching dsffloatlabelledtextcontrol
Fetched https://github.com/dagronf/DSFFloatLabelledTextControl.git from cache (0.84s)
Creating working copy for https://github.com/dagronf/DSFFloatLabelledTextControl.git
Working copy of https://github.com/dagronf/DSFFloatLabelledTextControl.git resolved at master (637703b)
warning: '.resolve-product-dependencies': dependency 'dsffloatlabelledtextcontrol' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/dagronf/DSFFloatLabelledTextControl.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/6] Compiling DSFFloatLabelledTextField DSFFloatLabelledSecureTextField.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFFloatLabelledTextField/DSFFloatLabelledSecureTextField.swift:424:6: warning: main actor-isolated property 'topOffset' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
421 | // MARK: - Cell definition
422 |
423 | private class DSFFloatLabelledSecureTextFieldCell: NSSecureTextFieldCell, DSFFloatLabelledTextFieldCellProtocol {
    |                                                                           `- note: add '@preconcurrency' to the 'DSFFloatLabelledTextFieldCellProtocol' conformance to defer isolation checking to run time
424 | 	var topOffset: CGFloat = 0
    |      `- warning: main actor-isolated property 'topOffset' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
425 |
426 | 	private func offset() -> CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/DSFFloatLabelledTextField/private/utils.swift:31:6: note: 'topOffset' declared here
29 |
30 | protocol DSFFloatLabelledTextFieldCellProtocol {
31 | 	var topOffset: CGFloat { get set }
   |      `- note: 'topOffset' declared here
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFFloatLabelledTextField/DSFFloatLabelledSecureTextField.swift:189:10: warning: call to main actor-isolated instance method 'reconfigureControl()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
187 | 		// Listen to changes in the primary font so we can reconfigure to match
188 | 		self.fontObserver = self.observe(\.font, options: [.new]) { [weak self] _, _ in
189 | 			self?.reconfigureControl()
    |          `- warning: call to main actor-isolated instance method 'reconfigureControl()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
190 | 		}
191 |
    :
272 |
273 | 	/// Change the layout if any changes occur
274 | 	private func reconfigureControl() {
    |               `- note: calls to instance method 'reconfigureControl()' from outside of its actor context are implicitly asynchronous
275 | 		if self.isCurrentFocus() {
276 | 			/// If we are currently editing, then finish before changing.
/Users/admin/builder/spi-builder-workspace/Sources/DSFFloatLabelledTextField/DSFFloatLabelledSecureTextField.swift:195:23: warning: main actor-isolated property 'stringValue' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
193 | 		self.placeholderObserver = self.observe(\.placeholderString, options: [.new]) { [weak self] _, _ in
194 | 			guard let `self` = self else { return }
195 | 			self.floatingLabel.stringValue = self.placeholderString!
    |                       `- warning: main actor-isolated property 'stringValue' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
196 | 			self.reconfigureControl()
197 | 		}
AppKit.NSControl:24:25: note: mutation of this property is only permitted within the actor
22 |     @MainActor open var formatter: Formatter? { get set }
23 |     open var objectValue: Any? { get set }
24 |     @MainActor open var stringValue: String { get set }
   |                         `- note: mutation of this property is only permitted within the actor
25 |     @NSCopying open var attributedStringValue: NSAttributedString { get set }
26 |     open var intValue: Int32 { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFFloatLabelledTextField/DSFFloatLabelledSecureTextField.swift:195:42: warning: main actor-isolated property 'placeholderString' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
 75 |
 76 | 	// Override so that we can update when the developer changes the placeholder string
 77 | 	open override var placeholderString: String? {
    |                    `- note: property declared here
 78 | 		get {
 79 | 			return super.placeholderString
    :
193 | 		self.placeholderObserver = self.observe(\.placeholderString, options: [.new]) { [weak self] _, _ in
194 | 			guard let `self` = self else { return }
195 | 			self.floatingLabel.stringValue = self.placeholderString!
    |                                          `- warning: main actor-isolated property 'placeholderString' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
196 | 			self.reconfigureControl()
197 | 		}
/Users/admin/builder/spi-builder-workspace/Sources/DSFFloatLabelledTextField/DSFFloatLabelledSecureTextField.swift:196:9: warning: call to main actor-isolated instance method 'reconfigureControl()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | 			guard let `self` = self else { return }
195 | 			self.floatingLabel.stringValue = self.placeholderString!
196 | 			self.reconfigureControl()
    |         `- warning: call to main actor-isolated instance method 'reconfigureControl()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
197 | 		}
198 | 	}
    :
272 |
273 | 	/// Change the layout if any changes occur
274 | 	private func reconfigureControl() {
    |               `- note: calls to instance method 'reconfigureControl()' from outside of its actor context are implicitly asynchronous
275 | 		if self.isCurrentFocus() {
276 | 			/// If we are currently editing, then finish before changing.
[4/6] Compiling DSFFloatLabelledTextField DSFFloatLabelledTextField.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFFloatLabelledTextField/DSFFloatLabelledTextField.swift:424:6: warning: main actor-isolated property 'topOffset' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
421 | // MARK: - Cell definition
422 |
423 | private class DSFFloatLabelledTextFieldCell: NSTextFieldCell, DSFFloatLabelledTextFieldCellProtocol {
    |                                                               `- note: add '@preconcurrency' to the 'DSFFloatLabelledTextFieldCellProtocol' conformance to defer isolation checking to run time
424 | 	var topOffset: CGFloat = 0
    |      `- warning: main actor-isolated property 'topOffset' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
425 |
426 | 	private func offset() -> CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/DSFFloatLabelledTextField/private/utils.swift:31:6: note: 'topOffset' declared here
29 |
30 | protocol DSFFloatLabelledTextFieldCellProtocol {
31 | 	var topOffset: CGFloat { get set }
   |      `- note: 'topOffset' declared here
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFFloatLabelledTextField/DSFFloatLabelledTextField.swift:189:10: warning: call to main actor-isolated instance method 'reconfigureControl()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
187 | 		// Listen to changes in the primary font so we can reconfigure to match
188 | 		self.fontObserver = self.observe(\.font, options: [.new]) { [weak self] _, _ in
189 | 			self?.reconfigureControl()
    |          `- warning: call to main actor-isolated instance method 'reconfigureControl()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
190 | 		}
191 |
    :
272 |
273 | 	/// Change the layout if any changes occur
274 | 	private func reconfigureControl() {
    |               `- note: calls to instance method 'reconfigureControl()' from outside of its actor context are implicitly asynchronous
275 | 		if self.isCurrentFocus() {
276 | 			/// If we are currently editing, then finish before changing.
/Users/admin/builder/spi-builder-workspace/Sources/DSFFloatLabelledTextField/DSFFloatLabelledTextField.swift:195:23: warning: main actor-isolated property 'stringValue' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
193 | 		self.placeholderObserver = self.observe(\.placeholderString, options: [.new]) { [weak self] _, _ in
194 | 			guard let `self` = self else { return }
195 | 			self.floatingLabel.stringValue = self.placeholderString!
    |                       `- warning: main actor-isolated property 'stringValue' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
196 | 			self.reconfigureControl()
197 | 		}
AppKit.NSControl:24:25: note: mutation of this property is only permitted within the actor
22 |     @MainActor open var formatter: Formatter? { get set }
23 |     open var objectValue: Any? { get set }
24 |     @MainActor open var stringValue: String { get set }
   |                         `- note: mutation of this property is only permitted within the actor
25 |     @NSCopying open var attributedStringValue: NSAttributedString { get set }
26 |     open var intValue: Int32 { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFFloatLabelledTextField/DSFFloatLabelledTextField.swift:195:42: warning: main actor-isolated property 'placeholderString' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
 75 |
 76 | 	// Override so that we can update when the developer changes the placeholder string
 77 | 	open override var placeholderString: String? {
    |                    `- note: property declared here
 78 | 		get {
 79 | 			return super.placeholderString
    :
193 | 		self.placeholderObserver = self.observe(\.placeholderString, options: [.new]) { [weak self] _, _ in
194 | 			guard let `self` = self else { return }
195 | 			self.floatingLabel.stringValue = self.placeholderString!
    |                                          `- warning: main actor-isolated property 'placeholderString' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
196 | 			self.reconfigureControl()
197 | 		}
/Users/admin/builder/spi-builder-workspace/Sources/DSFFloatLabelledTextField/DSFFloatLabelledTextField.swift:196:9: warning: call to main actor-isolated instance method 'reconfigureControl()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | 			guard let `self` = self else { return }
195 | 			self.floatingLabel.stringValue = self.placeholderString!
196 | 			self.reconfigureControl()
    |         `- warning: call to main actor-isolated instance method 'reconfigureControl()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
197 | 		}
198 | 	}
    :
272 |
273 | 	/// Change the layout if any changes occur
274 | 	private func reconfigureControl() {
    |               `- note: calls to instance method 'reconfigureControl()' from outside of its actor context are implicitly asynchronous
275 | 		if self.isCurrentFocus() {
276 | 			/// If we are currently editing, then finish before changing.
[5/6] Emitting module DSFFloatLabelledTextField
/Users/admin/builder/spi-builder-workspace/Sources/DSFFloatLabelledTextField/DSFFloatLabelledSecureTextField.swift:424:6: warning: main actor-isolated property 'topOffset' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
421 | // MARK: - Cell definition
422 |
423 | private class DSFFloatLabelledSecureTextFieldCell: NSSecureTextFieldCell, DSFFloatLabelledTextFieldCellProtocol {
    |                                                                           `- note: add '@preconcurrency' to the 'DSFFloatLabelledTextFieldCellProtocol' conformance to defer isolation checking to run time
424 | 	var topOffset: CGFloat = 0
    |      `- warning: main actor-isolated property 'topOffset' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
425 |
426 | 	private func offset() -> CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/DSFFloatLabelledTextField/private/utils.swift:31:6: note: 'topOffset' declared here
29 |
30 | protocol DSFFloatLabelledTextFieldCellProtocol {
31 | 	var topOffset: CGFloat { get set }
   |      `- note: 'topOffset' declared here
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFFloatLabelledTextField/DSFFloatLabelledTextField.swift:424:6: warning: main actor-isolated property 'topOffset' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
421 | // MARK: - Cell definition
422 |
423 | private class DSFFloatLabelledTextFieldCell: NSTextFieldCell, DSFFloatLabelledTextFieldCellProtocol {
    |                                                               `- note: add '@preconcurrency' to the 'DSFFloatLabelledTextFieldCellProtocol' conformance to defer isolation checking to run time
424 | 	var topOffset: CGFloat = 0
    |      `- warning: main actor-isolated property 'topOffset' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
425 |
426 | 	private func offset() -> CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/DSFFloatLabelledTextField/private/utils.swift:31:6: note: 'topOffset' declared here
29 |
30 | protocol DSFFloatLabelledTextFieldCellProtocol {
31 | 	var topOffset: CGFloat { get set }
   |      `- note: 'topOffset' declared here
32 | }
33 |
[6/6] Compiling DSFFloatLabelledTextField utils.swift
Build complete! (9.60s)
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/DSFFloatLabelledTextField/DSFFloatLabelledTextField.swift.gyb
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DSFFloatLabelledTextField",
  "name" : "DSFFloatLabelledTextField",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.11"
    }
  ],
  "products" : [
    {
      "name" : "DSFFloatLabelledTextField",
      "targets" : [
        "DSFFloatLabelledTextField"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "DSFFloatLabelledTextField",
      "module_type" : "SwiftTarget",
      "name" : "DSFFloatLabelledTextField",
      "path" : "Sources/DSFFloatLabelledTextField",
      "product_memberships" : [
        "DSFFloatLabelledTextField"
      ],
      "sources" : [
        "DSFFloatLabelledSecureTextField.swift",
        "DSFFloatLabelledTextField.swift",
        "private/utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Done.