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

Swift 6 data race errors: 0

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/DSFSearchField.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dagronf/DSFSearchField
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 8f11843 Added maxRecents setting on the SwiftUI interface as a modifier
Cloned https://github.com/dagronf/DSFSearchField.git
Revision (git rev-parse @):
8f118439e1e74b3afb8dc8cbdc049d7979aa045e
SUCCESS checkout https://github.com/dagronf/DSFSearchField.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/dagronf/DSFSearchField.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/4] Copying Info.plist
[0/4] Write sources
[2/4] Copying Localizable.strings
[3/4] Write swift-version-6F35C1178C84523A.txt
[5/10] Compiling DSFSearchField resource_bundle_accessor.swift
[6/10] Compiling DSFSearchField SwiftUIHelpers.swift
[7/10] Compiling DSFSearchField LocalizationHelpers.swift
[8/10] Compiling DSFSearchField DSFSearchField.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFSearchField/DSFSearchField.swift:64:8: warning: main actor-isolated property 'delegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 62 |
 63 | 	deinit {
 64 | 		self.delegate = nil
    |        `- warning: main actor-isolated property 'delegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 65 | 		self.unbind(.value)
 66 | 	}
AppKit.NSSearchField:19:30: note: mutation of this property is only permitted within the actor
17 |     open var sendsSearchStringImmediately: Bool { get set }
18 |     @available(macOS 10.11, *)
19 |     @MainActor weak open var delegate: (any NSSearchFieldDelegate)? { get set }
   |                              `- note: mutation of this property is only permitted within the actor
20 |     @MainActor public init(frame frameRect: NSRect)
21 |     @MainActor public init?(coder: NSCoder)
[9/10] Emitting module DSFSearchField
[10/10] Compiling DSFSearchField DSFSearchField+SwiftUI.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFSearchField/DSFSearchField+SwiftUI.swift:85:19: warning: call to main actor-isolated initializer 'init(frame:recentsAutosaveName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 82 | @available(macOS 10.15, *)
 83 | public extension DSFSearchField.SwiftUI {
 84 | 	func makeNSView(context: Context) -> DSFSearchField {
    |       `- note: add '@MainActor' to make instance method 'makeNSView(context:)' part of global actor 'MainActor'
 85 | 		let searchBar = DSFSearchField(frame: .zero, recentsAutosaveName: self.autosaveName)
    |                   `- warning: call to main actor-isolated initializer 'init(frame:recentsAutosaveName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 86 |
 87 | 		if let bezelStyle = self.bezelStyle {
/Users/admin/builder/spi-builder-workspace/Sources/DSFSearchField/DSFSearchField.swift:51:15: note: calls to initializer 'init(frame:recentsAutosaveName:)' from outside of its actor context are implicitly asynchronous
 49 | 	///   - frameRect: The frame for the field
 50 | 	///   - recentsAutosaveName: The autosave name
 51 | 	@objc public init(frame frameRect: NSRect, recentsAutosaveName: NSSearchField.RecentsAutosaveName?) {
    |               `- note: calls to initializer 'init(frame:recentsAutosaveName:)' from outside of its actor context are implicitly asynchronous
 52 | 		super.init(frame: frameRect)
 53 | 		self.recentsAutosaveName = recentsAutosaveName
/Users/admin/builder/spi-builder-workspace/Sources/DSFSearchField/DSFSearchField+SwiftUI.swift:88:14: warning: main actor-isolated property 'bezelStyle' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 82 | @available(macOS 10.15, *)
 83 | public extension DSFSearchField.SwiftUI {
 84 | 	func makeNSView(context: Context) -> DSFSearchField {
    |       `- note: add '@MainActor' to make instance method 'makeNSView(context:)' part of global actor 'MainActor'
 85 | 		let searchBar = DSFSearchField(frame: .zero, recentsAutosaveName: self.autosaveName)
 86 |
 87 | 		if let bezelStyle = self.bezelStyle {
 88 | 			searchBar.bezelStyle = bezelStyle
    |              `- warning: main actor-isolated property 'bezelStyle' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 89 | 		}
 90 |
AppKit.NSTextField:29:25: note: mutation of this property is only permitted within the actor
27 |     open func textDidChange(_ notification: Notification)
28 |     open var acceptsFirstResponder: Bool { get }
29 |     @MainActor open var bezelStyle: NSTextField.BezelStyle { get set }
   |                         `- note: mutation of this property is only permitted within the actor
30 |     @available(macOS 10.8, *)
31 |     open var preferredMaxLayoutWidth: CGFloat { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFSearchField/DSFSearchField+SwiftUI.swift:91:13: warning: main actor-isolated property 'placeholderString' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 82 | @available(macOS 10.15, *)
 83 | public extension DSFSearchField.SwiftUI {
 84 | 	func makeNSView(context: Context) -> DSFSearchField {
    |       `- note: add '@MainActor' to make instance method 'makeNSView(context:)' part of global actor 'MainActor'
 85 | 		let searchBar = DSFSearchField(frame: .zero, recentsAutosaveName: self.autosaveName)
 86 |
    :
 89 | 		}
 90 |
 91 | 		searchBar.placeholderString = self.placeholderText
    |             `- warning: main actor-isolated property 'placeholderString' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 92 | 		searchBar.searchTermChangeCallback = { newTerm in
 93 | 			self.text = newTerm
AppKit.NSTextField:3:14: note: mutation of this property is only permitted within the actor
 1 | @MainActor open class NSTextField : NSControl, NSUserInterfaceValidations, NSAccessibilityNavigableStaticText, NSTextContent {
 2 |     @available(macOS 10.10, *)
 3 |     open var placeholderString: String? { get set }
   |              `- note: mutation of this property is only permitted within the actor
 4 |     @available(macOS 10.10, *)
 5 |     @NSCopying open var placeholderAttributedString: NSAttributedString? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFSearchField/DSFSearchField+SwiftUI.swift:92:13: warning: main actor-isolated property 'searchTermChangeCallback' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 82 | @available(macOS 10.15, *)
 83 | public extension DSFSearchField.SwiftUI {
 84 | 	func makeNSView(context: Context) -> DSFSearchField {
    |       `- note: add '@MainActor' to make instance method 'makeNSView(context:)' part of global actor 'MainActor'
 85 | 		let searchBar = DSFSearchField(frame: .zero, recentsAutosaveName: self.autosaveName)
 86 |
    :
 90 |
 91 | 		searchBar.placeholderString = self.placeholderText
 92 | 		searchBar.searchTermChangeCallback = { newTerm in
    |             `- warning: main actor-isolated property 'searchTermChangeCallback' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 93 | 			self.text = newTerm
 94 | 			self.onSearchTermChange?(newTerm)
/Users/admin/builder/spi-builder-workspace/Sources/DSFSearchField/DSFSearchField.swift:42:19: note: mutation of this property is only permitted within the actor
 40 |
 41 | 	/// An (optional) block-based interface for receiving search field changes
 42 | 	@objc public var searchTermChangeCallback: ((String) -> Void)? = nil
    |                   `- note: mutation of this property is only permitted within the actor
 43 |
 44 | 	/// Called when the user 'submits' the search (eg. presses return in the control)
/Users/admin/builder/spi-builder-workspace/Sources/DSFSearchField/DSFSearchField+SwiftUI.swift:96:13: warning: main actor-isolated property 'searchSubmitCallback' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 82 | @available(macOS 10.15, *)
 83 | public extension DSFSearchField.SwiftUI {
 84 | 	func makeNSView(context: Context) -> DSFSearchField {
    |       `- note: add '@MainActor' to make instance method 'makeNSView(context:)' part of global actor 'MainActor'
 85 | 		let searchBar = DSFSearchField(frame: .zero, recentsAutosaveName: self.autosaveName)
 86 |
    :
 94 | 			self.onSearchTermChange?(newTerm)
 95 | 		}
 96 | 		searchBar.searchSubmitCallback = { self.onSearchTermSubmit?($0) }
    |             `- warning: main actor-isolated property 'searchSubmitCallback' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 97 |
 98 | 		// Default the control to scrolling text
/Users/admin/builder/spi-builder-workspace/Sources/DSFSearchField/DSFSearchField.swift:45:19: note: mutation of this property is only permitted within the actor
 43 |
 44 | 	/// Called when the user 'submits' the search (eg. presses return in the control)
 45 | 	@objc public var searchSubmitCallback: ((String) -> Void)? = nil
    |                   `- note: mutation of this property is only permitted within the actor
 46 |
 47 | 	/// Create a search field
/Users/admin/builder/spi-builder-workspace/Sources/DSFSearchField/DSFSearchField+SwiftUI.swift:99:19: warning: main actor-isolated property 'wraps' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 82 | @available(macOS 10.15, *)
 83 | public extension DSFSearchField.SwiftUI {
 84 | 	func makeNSView(context: Context) -> DSFSearchField {
    |       `- note: add '@MainActor' to make instance method 'makeNSView(context:)' part of global actor 'MainActor'
 85 | 		let searchBar = DSFSearchField(frame: .zero, recentsAutosaveName: self.autosaveName)
 86 |
    :
 97 |
 98 | 		// Default the control to scrolling text
 99 | 		searchBar.cell?.wraps = false
    |                   `- warning: main actor-isolated property 'wraps' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
100 | 		searchBar.cell?.isScrollable = true
101 |
AppKit.NSCell:45:25: note: mutation of this property is only permitted within the actor
 43 |     open var highlighted: Bool { get set }
 44 |     open var alignment: NSTextAlignment { get set }
 45 |     @MainActor open var wraps: Bool { get set }
    |                         `- note: mutation of this property is only permitted within the actor
 46 |     open var font: NSFont? { get set }
 47 |     open var keyEquivalent: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFSearchField/DSFSearchField+SwiftUI.swift:99:13: warning: main actor-isolated property 'cell' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
 82 | @available(macOS 10.15, *)
 83 | public extension DSFSearchField.SwiftUI {
 84 | 	func makeNSView(context: Context) -> DSFSearchField {
    |       `- note: add '@MainActor' to make instance method 'makeNSView(context:)' part of global actor 'MainActor'
 85 | 		let searchBar = DSFSearchField(frame: .zero, recentsAutosaveName: self.autosaveName)
 86 |
    :
 97 |
 98 | 		// Default the control to scrolling text
 99 | 		searchBar.cell?.wraps = false
    |             `- warning: main actor-isolated property 'cell' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
100 | 		searchBar.cell?.isScrollable = true
101 |
AppKit.NSControl:5:25: note: property declared here
 3 |     open func setFloatingPointFormat(_ autoRange: Bool, left leftDigits: Int, right rightDigits: Int)
 4 |     open class var cellClass: AnyClass? { get set }
 5 |     @MainActor open var cell: NSCell? { get set }
   |                         `- note: property declared here
 6 |     open func selectedCell() -> NSCell?
 7 |     open func selectedTag() -> Int
/Users/admin/builder/spi-builder-workspace/Sources/DSFSearchField/DSFSearchField+SwiftUI.swift:100:19: warning: main actor-isolated property 'isScrollable' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 82 | @available(macOS 10.15, *)
 83 | public extension DSFSearchField.SwiftUI {
 84 | 	func makeNSView(context: Context) -> DSFSearchField {
    |       `- note: add '@MainActor' to make instance method 'makeNSView(context:)' part of global actor 'MainActor'
 85 | 		let searchBar = DSFSearchField(frame: .zero, recentsAutosaveName: self.autosaveName)
 86 |
    :
 98 | 		// Default the control to scrolling text
 99 | 		searchBar.cell?.wraps = false
100 | 		searchBar.cell?.isScrollable = true
    |                   `- warning: main actor-isolated property 'isScrollable' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
101 |
102 | 		if let maximumRecents = self.maximumRecents {
AppKit.NSCell:38:14: note: mutation of this property is only permitted within the actor
 36 |     @available(swift, obsoleted: 3, renamed: "isBezeled")
 37 |     open var bezeled: Bool { get set }
 38 |     open var isScrollable: Bool { get set }
    |              `- note: mutation of this property is only permitted within the actor
 39 |     @available(swift, obsoleted: 3, renamed: "isScrollable")
 40 |     open var scrollable: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFSearchField/DSFSearchField+SwiftUI.swift:100:13: warning: main actor-isolated property 'cell' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
 82 | @available(macOS 10.15, *)
 83 | public extension DSFSearchField.SwiftUI {
 84 | 	func makeNSView(context: Context) -> DSFSearchField {
    |       `- note: add '@MainActor' to make instance method 'makeNSView(context:)' part of global actor 'MainActor'
 85 | 		let searchBar = DSFSearchField(frame: .zero, recentsAutosaveName: self.autosaveName)
 86 |
    :
 98 | 		// Default the control to scrolling text
 99 | 		searchBar.cell?.wraps = false
100 | 		searchBar.cell?.isScrollable = true
    |             `- warning: main actor-isolated property 'cell' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
101 |
102 | 		if let maximumRecents = self.maximumRecents {
AppKit.NSControl:5:25: note: property declared here
 3 |     open func setFloatingPointFormat(_ autoRange: Bool, left leftDigits: Int, right rightDigits: Int)
 4 |     open class var cellClass: AnyClass? { get set }
 5 |     @MainActor open var cell: NSCell? { get set }
   |                         `- note: property declared here
 6 |     open func selectedCell() -> NSCell?
 7 |     open func selectedTag() -> Int
/Users/admin/builder/spi-builder-workspace/Sources/DSFSearchField/DSFSearchField+SwiftUI.swift:103:14: warning: main actor-isolated property 'maximumRecents' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 82 | @available(macOS 10.15, *)
 83 | public extension DSFSearchField.SwiftUI {
 84 | 	func makeNSView(context: Context) -> DSFSearchField {
    |       `- note: add '@MainActor' to make instance method 'makeNSView(context:)' part of global actor 'MainActor'
 85 | 		let searchBar = DSFSearchField(frame: .zero, recentsAutosaveName: self.autosaveName)
 86 |
    :
101 |
102 | 		if let maximumRecents = self.maximumRecents {
103 | 			searchBar.maximumRecents = maximumRecents
    |              `- warning: main actor-isolated property 'maximumRecents' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
104 | 		}
105 |
AppKit.NSSearchField:15:25: note: mutation of this property is only permitted within the actor
13 |     open var sendsWholeSearchString: Bool { get set }
14 |     @available(macOS 10.10, *)
15 |     @MainActor open var maximumRecents: Int { get set }
   |                         `- note: mutation of this property is only permitted within the actor
16 |     @available(macOS 10.10, *)
17 |     open var sendsSearchStringImmediately: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFSearchField/DSFSearchField+SwiftUI.swift:110:13: warning: main actor-isolated property 'stringValue' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
107 | 	}
108 |
109 | 	func updateNSView(_ searchBar: DSFSearchField, context: Context) {
    |       `- note: add '@MainActor' to make instance method 'updateNSView(_:context:)' part of global actor 'MainActor'
110 | 		searchBar.stringValue = text
    |             `- warning: main actor-isolated property 'stringValue' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
111 | 		if let bezelStyle = self.bezelStyle {
112 | 			searchBar.bezelStyle = bezelStyle
AppKit.NSControl:24:25: note: mutation of this property is only permitted within the actor
22 |     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/DSFSearchField/DSFSearchField+SwiftUI.swift:112:14: warning: main actor-isolated property 'bezelStyle' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
107 | 	}
108 |
109 | 	func updateNSView(_ searchBar: DSFSearchField, context: Context) {
    |       `- note: add '@MainActor' to make instance method 'updateNSView(_:context:)' part of global actor 'MainActor'
110 | 		searchBar.stringValue = text
111 | 		if let bezelStyle = self.bezelStyle {
112 | 			searchBar.bezelStyle = bezelStyle
    |              `- warning: main actor-isolated property 'bezelStyle' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
113 | 		}
114 |
AppKit.NSTextField:29:25: note: mutation of this property is only permitted within the actor
27 |     open func textDidChange(_ notification: Notification)
28 |     open var acceptsFirstResponder: Bool { get }
29 |     @MainActor open var bezelStyle: NSTextField.BezelStyle { get set }
   |                         `- note: mutation of this property is only permitted within the actor
30 |     @available(macOS 10.8, *)
31 |     open var preferredMaxLayoutWidth: CGFloat { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFSearchField/DSFSearchField+SwiftUI.swift:116:14: warning: main actor-isolated property 'maximumRecents' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
107 | 	}
108 |
109 | 	func updateNSView(_ searchBar: DSFSearchField, context: Context) {
    |       `- note: add '@MainActor' to make instance method 'updateNSView(_:context:)' part of global actor 'MainActor'
110 | 		searchBar.stringValue = text
111 | 		if let bezelStyle = self.bezelStyle {
    :
114 |
115 | 		if let maximumRecents = self.maximumRecents {
116 | 			searchBar.maximumRecents = maximumRecents
    |              `- warning: main actor-isolated property 'maximumRecents' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
117 | 		}
118 | 	}
AppKit.NSSearchField:15:25: note: mutation of this property is only permitted within the actor
13 |     open var sendsWholeSearchString: Bool { get set }
14 |     @available(macOS 10.10, *)
15 |     @MainActor open var maximumRecents: Int { get set }
   |                         `- note: mutation of this property is only permitted within the actor
16 |     @available(macOS 10.10, *)
17 |     open var sendsSearchStringImmediately: Bool { get set }
Build complete! (30.80s)
Build complete.
{
  "default_localization" : "en",
  "dependencies" : [
  ],
  "manifest_display_name" : "DSFSearchField",
  "name" : "DSFSearchField",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "DSFSearchField",
      "targets" : [
        "DSFSearchField"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DSFSearchFieldTests",
      "module_type" : "SwiftTarget",
      "name" : "DSFSearchFieldTests",
      "path" : "Tests/DSFSearchFieldTests",
      "sources" : [
        "DSFSearchFieldTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "DSFSearchField"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DSFSearchField",
      "module_type" : "SwiftTarget",
      "name" : "DSFSearchField",
      "path" : "Sources/DSFSearchField",
      "product_memberships" : [
        "DSFSearchField"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/DSFSearchField/localizations/en.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "en"
            }
          }
        }
      ],
      "sources" : [
        "DSFSearchField+SwiftUI.swift",
        "DSFSearchField.swift",
        "private/LocalizationHelpers.swift",
        "private/SwiftUIHelpers.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.