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

Swift 6 data race errors: 2

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/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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/dagronf/DSFFloatLabelledTextControl.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/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/6] Compiling DSFFloatLabelledTextField utils.swift
[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] 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.
[6/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 |
Build complete! (23.17s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.