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 DSFSecureTextField, reference 2.0.1 (b82c3e), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 13:52:05 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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dagronf/DSFSecureTextField.git
Reference: 2.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dagronf/DSFSecureTextField
 * tag               2.0.1      -> FETCH_HEAD
HEAD is now at b82c3e3 Added missing control size (Bug #1)
Cloned https://github.com/dagronf/DSFSecureTextField.git
Revision (git rev-parse @):
b82c3e3908bc42549fc9b08135a9d0d7696c048e
SUCCESS checkout https://github.com/dagronf/DSFSecureTextField.git at 2.0.1
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/dagronf/DSFSecureTextField.git
https://github.com/dagronf/DSFSecureTextField.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DSFSecureTextField",
  "name" : "DSFSecureTextField",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "DSFSecureTextField",
      "targets" : [
        "DSFSecureTextField"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "DSFSecureTextFieldStatic",
      "targets" : [
        "DSFSecureTextField"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "DSFSecureTextFieldDynamic",
      "targets" : [
        "DSFSecureTextField"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DSFSecureTextFieldTests",
      "module_type" : "SwiftTarget",
      "name" : "DSFSecureTextFieldTests",
      "path" : "Tests/DSFSecureTextFieldTests",
      "sources" : [
        "DSFSecureTextFieldTests.swift"
      ],
      "target_dependencies" : [
        "DSFSecureTextField"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DSFSecureTextField",
      "module_type" : "SwiftTarget",
      "name" : "DSFSecureTextField",
      "path" : "Sources/DSFSecureTextField",
      "product_memberships" : [
        "DSFSecureTextField",
        "DSFSecureTextFieldStatic",
        "DSFSecureTextFieldDynamic"
      ],
      "sources" : [
        "DSFSecureTextField.swift",
        "private/DSFPasswordButton.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
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/6] Write sources
[1/6] Write swift-version-2F0A5646E1D333AE.txt
[3/9] Compiling DSFSecureTextField DSFPasswordButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFSecureTextField/private/DSFPasswordButton.swift:54:8: warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 52 | 	override func awakeFromNib() {
 53 | 		super.awakeFromNib()
 54 | 		self.setup()
    |        `- warning: call to main actor-isolated instance method 'setup()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 55 | 	}
 56 |
    :
 64 | 	}
 65 |
 66 | 	private func setup() {
    |               |- note: calls to instance method 'setup()' from outside of its actor context are implicitly asynchronous
    |               `- note: main actor isolation inferred from inheritance from class 'NSButton'
 67 | 		self.translatesAutoresizingMaskIntoConstraints = false
 68 | 		self.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)
[4/9] Emitting module DSFSecureTextField
/Users/admin/builder/spi-builder-workspace/Sources/DSFSecureTextField/DSFSecureTextField.swift:226:10: warning: main actor-isolated property 'userInterfaceLayoutDirection' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
221 |
222 | @usableFromInline internal let __rightPadding = 32.0
223 | @inlinable internal func __tweak(_ cell: NSTextFieldCell, _ rect: NSRect) -> NSRect {
    |                          `- note: add '@MainActor' to make global function '__tweak' part of global actor 'MainActor'
224 | 	var newRect = rect
225 | 	newRect.size.width -= __rightPadding
226 | 	if cell.userInterfaceLayoutDirection == .rightToLeft { newRect.origin.x += __rightPadding }
    |          `- warning: main actor-isolated property 'userInterfaceLayoutDirection' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
227 | 	return newRect
228 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCell.h:197:42: note: property declared here
195 | /* Bi-directional User Interface. It specifies the general UI layout flow directions.
196 | */
197 | @property NSUserInterfaceLayoutDirection userInterfaceLayoutDirection API_AVAILABLE(macos(10.6));
    |                                          `- note: property declared here
198 |
199 | /* Returns a custom field editor for editing inside controlView. This is an override point for NSCell subclasses designed to work with its own custom field editor. This message is sent to the selected cell of controlView in -[NSWindow fieldEditor:forObject:]. Returning non-nil from this method indicates skipping the standard field editor querying processes including -windowWillReturnFieldEditor:toObject: delegation. The default NSCell implementation returns nil. The field editor returned from this method should have isFieldEditor == YES.
[5/9] Compiling DSFSecureTextField DSFSecureTextField.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFSecureTextField/DSFSecureTextField.swift:226:10: warning: main actor-isolated property 'userInterfaceLayoutDirection' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
221 |
222 | @usableFromInline internal let __rightPadding = 32.0
223 | @inlinable internal func __tweak(_ cell: NSTextFieldCell, _ rect: NSRect) -> NSRect {
    |                          `- note: add '@MainActor' to make global function '__tweak' part of global actor 'MainActor'
224 | 	var newRect = rect
225 | 	newRect.size.width -= __rightPadding
226 | 	if cell.userInterfaceLayoutDirection == .rightToLeft { newRect.origin.x += __rightPadding }
    |          `- warning: main actor-isolated property 'userInterfaceLayoutDirection' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
227 | 	return newRect
228 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCell.h:197:42: note: property declared here
195 | /* Bi-directional User Interface. It specifies the general UI layout flow directions.
196 | */
197 | @property NSUserInterfaceLayoutDirection userInterfaceLayoutDirection API_AVAILABLE(macos(10.6));
    |                                          `- note: property declared here
198 |
199 | /* Returns a custom field editor for editing inside controlView. This is an override point for NSCell subclasses designed to work with its own custom field editor. This message is sent to the selected cell of controlView in -[NSWindow fieldEditor:forObject:]. Returning non-nil from this method indicates skipping the standard field editor querying processes including -windowWillReturnFieldEditor:toObject: delegation. The default NSCell implementation returns nil. The field editor returned from this method should have isFieldEditor == YES.
[5/9] Write Objects.LinkFileList
[7/9] Archiving libDSFSecureTextFieldStatic.a
[8/9] Linking libDSFSecureTextFieldDynamic.dylib
Build complete! (8.36s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DSFSecureTextField",
  "name" : "DSFSecureTextField",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "DSFSecureTextField",
      "targets" : [
        "DSFSecureTextField"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "DSFSecureTextFieldStatic",
      "targets" : [
        "DSFSecureTextField"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "DSFSecureTextFieldDynamic",
      "targets" : [
        "DSFSecureTextField"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DSFSecureTextFieldTests",
      "module_type" : "SwiftTarget",
      "name" : "DSFSecureTextFieldTests",
      "path" : "Tests/DSFSecureTextFieldTests",
      "sources" : [
        "DSFSecureTextFieldTests.swift"
      ],
      "target_dependencies" : [
        "DSFSecureTextField"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DSFSecureTextField",
      "module_type" : "SwiftTarget",
      "name" : "DSFSecureTextField",
      "path" : "Sources/DSFSecureTextField",
      "product_memberships" : [
        "DSFSecureTextField",
        "DSFSecureTextFieldStatic",
        "DSFSecureTextFieldDynamic"
      ],
      "sources" : [
        "DSFSecureTextField.swift",
        "private/DSFPasswordButton.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.