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 InputMask, reference master (b01794), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 15:49:34 UTC.

Swift 6 data race errors: 3

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/RedMadRobot/input-mask-ios.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/RedMadRobot/input-mask-ios
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at b01794f add: macOS sample
Cloned https://github.com/RedMadRobot/input-mask-ios.git
Revision (git rev-parse @):
b01794f2c00d42f8cd2928087c3fd61fe65d12d0
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/RedMadRobot/input-mask-ios.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": "input-mask-ios",
      "name": "InputMask",
      "url": "https://github.com/RedMadRobot/input-mask-ios.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/input-mask-ios",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/RedMadRobot/input-mask-ios.git
[1/2367] Fetching input-mask-ios
Fetched https://github.com/RedMadRobot/input-mask-ios.git from cache (1.29s)
Creating working copy for https://github.com/RedMadRobot/input-mask-ios.git
Working copy of https://github.com/RedMadRobot/input-mask-ios.git resolved at master (b01794f)
warning: '.resolve-product-dependencies': dependency 'input-mask-ios' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/RedMadRobot/input-mask-ios.git
https://github.com/RedMadRobot/input-mask-ios.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "InputMask",
  "name" : "InputMask",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "InputMask",
      "targets" : [
        "InputMask"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "InputMaskTests",
      "module_type" : "SwiftTarget",
      "name" : "InputMaskTests",
      "path" : "Source/InputMask",
      "sources" : [
        "InputMaskTests/Classes/Helper/StringTests.swift",
        "InputMaskTests/Classes/Mask/CustomNotationEllipticalCase.swift",
        "InputMaskTests/Classes/Mask/DayMonthYearCase.swift",
        "InputMaskTests/Classes/Mask/DayMonthYearShortCase.swift",
        "InputMaskTests/Classes/Mask/DecimalNumberCase.swift",
        "InputMaskTests/Classes/Mask/EndlessIntegerCase.swift",
        "InputMaskTests/Classes/Mask/EscapedCase.swift",
        "InputMaskTests/Classes/Mask/MaskTestCase.swift",
        "InputMaskTests/Classes/Mask/MonthYearCase.swift",
        "InputMaskTests/Classes/Mask/MonthYearDoubleSlashCase.swift",
        "InputMaskTests/Classes/Mask/NameCase.swift",
        "InputMaskTests/Classes/Mask/PhoneCase.swift",
        "InputMaskTests/Classes/Mask/Reversed/LargeNumberTests.swift",
        "InputMaskTests/Classes/Mask/SillyEllipticalCase.swift",
        "InputMaskTests/Classes/Mask/SillyPiEllipticalCase.swift",
        "InputMaskTests/Classes/Mask/WildcardCase.swift",
        "InputMaskTests/Classes/Mask/YearACCase.swift",
        "InputMaskTests/Classes/Mask/YearCase.swift"
      ],
      "target_dependencies" : [
        "InputMask"
      ],
      "type" : "test"
    },
    {
      "c99name" : "InputMask",
      "module_type" : "SwiftTarget",
      "name" : "InputMask",
      "path" : "Source/InputMask/InputMask",
      "product_memberships" : [
        "InputMask"
      ],
      "sources" : [
        "Classes/Helper/AffinityCalculationStrategy.swift",
        "Classes/Helper/CaretStringIterator.swift",
        "Classes/Helper/CharacterSet.swift",
        "Classes/Helper/Compiler.swift",
        "Classes/Helper/FormatSanitizer.swift",
        "Classes/Helper/RTLCaretStringIterator.swift",
        "Classes/Helper/String.swift",
        "Classes/Mask.swift",
        "Classes/Model/CaretString.swift",
        "Classes/Model/Country.swift",
        "Classes/Model/Next.swift",
        "Classes/Model/Notation.swift",
        "Classes/Model/State.swift",
        "Classes/Model/State/EOLState.swift",
        "Classes/Model/State/FixedState.swift",
        "Classes/Model/State/FreeState.swift",
        "Classes/Model/State/OptionalValueState.swift",
        "Classes/Model/State/ValueState.swift",
        "Classes/RTLMask.swift",
        "Classes/View/MaskedTextField+Modifiers.swift",
        "Classes/View/MaskedTextField.swift",
        "Classes/View/MaskedTextInputListener.swift",
        "Classes/View/NumberInputListener.swift",
        "Classes/View/PhoneInputListener.swift",
        "Classes/View/TextViewListener.swift",
        "Classes/View/UITextInput.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7.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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/27] Emitting module InputMask
/Users/admin/builder/spi-builder-workspace/Source/InputMask/InputMask/Classes/Mask.swift:78:24: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 76 |
 77 |     private let initialState: State
 78 |     private static var cache: [String: Mask] = [:]
    |                        |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'cache' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 79 |
 80 |     /**
/Users/admin/builder/spi-builder-workspace/Source/InputMask/InputMask/Classes/Model/Country.swift:156:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Country]' may have shared mutable state; this is an error in the Swift 6 language mode
 13 |  Model object representing a **Country** record operated by the ``PhoneInputListener``.
 14 |  */
 15 | public struct Country {
    |               `- note: consider making struct 'Country' conform to the 'Sendable' protocol
 16 |     /**
 17 |      International country name.
    :
154 |      Feel free to append/correct & file PRs, see https://countrycode.org
155 |      */
156 |     public static let all: [Country] = [
    |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Country]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
157 |         Country(
158 |             name: "Canada",
/Users/admin/builder/spi-builder-workspace/Source/InputMask/InputMask/Classes/RTLMask.swift:17:24: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |  */
16 | public class RTLMask: Mask {
17 |     private static var cache: [String: RTLMask] = [:]
   |                        |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'cache' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |     public required init(format: String, customNotations: [Notation] = []) throws {
[4/29] Compiling InputMask State.swift
[5/29] Compiling InputMask EOLState.swift
[6/29] Compiling InputMask FixedState.swift
[7/29] Compiling InputMask AffinityCalculationStrategy.swift
[8/29] Compiling InputMask CaretStringIterator.swift
[9/29] Compiling InputMask CharacterSet.swift
[10/29] Compiling InputMask MaskedTextField.swift
[11/29] Compiling InputMask MaskedTextInputListener.swift
[12/29] Compiling InputMask NumberInputListener.swift
[13/29] Compiling InputMask PhoneInputListener.swift
[14/29] Compiling InputMask RTLMask.swift
/Users/admin/builder/spi-builder-workspace/Source/InputMask/InputMask/Classes/RTLMask.swift:17:24: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |  */
16 | public class RTLMask: Mask {
17 |     private static var cache: [String: RTLMask] = [:]
   |                        |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'cache' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |     public required init(format: String, customNotations: [Notation] = []) throws {
[15/29] Compiling InputMask MaskedTextField+Modifiers.swift
/Users/admin/builder/spi-builder-workspace/Source/InputMask/InputMask/Classes/RTLMask.swift:17:24: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |  */
16 | public class RTLMask: Mask {
17 |     private static var cache: [String: RTLMask] = [:]
   |                        |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'cache' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |     public required init(format: String, customNotations: [Notation] = []) throws {
[16/29] Compiling InputMask FreeState.swift
[17/29] Compiling InputMask OptionalValueState.swift
[18/29] Compiling InputMask ValueState.swift
[19/29] Compiling InputMask String.swift
/Users/admin/builder/spi-builder-workspace/Source/InputMask/InputMask/Classes/Mask.swift:78:24: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 76 |
 77 |     private let initialState: State
 78 |     private static var cache: [String: Mask] = [:]
    |                        |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'cache' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 79 |
 80 |     /**
[20/29] Compiling InputMask Mask.swift
/Users/admin/builder/spi-builder-workspace/Source/InputMask/InputMask/Classes/Mask.swift:78:24: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 76 |
 77 |     private let initialState: State
 78 |     private static var cache: [String: Mask] = [:]
    |                        |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'cache' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 79 |
 80 |     /**
[21/29] Compiling InputMask CaretString.swift
/Users/admin/builder/spi-builder-workspace/Source/InputMask/InputMask/Classes/Mask.swift:78:24: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 76 |
 77 |     private let initialState: State
 78 |     private static var cache: [String: Mask] = [:]
    |                        |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'cache' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 79 |
 80 |     /**
[22/29] Compiling InputMask Country.swift
/Users/admin/builder/spi-builder-workspace/Source/InputMask/InputMask/Classes/Model/Country.swift:156:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Country]' may have shared mutable state; this is an error in the Swift 6 language mode
 13 |  Model object representing a **Country** record operated by the ``PhoneInputListener``.
 14 |  */
 15 | public struct Country {
    |               `- note: consider making struct 'Country' conform to the 'Sendable' protocol
 16 |     /**
 17 |      International country name.
    :
154 |      Feel free to append/correct & file PRs, see https://countrycode.org
155 |      */
156 |     public static let all: [Country] = [
    |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Country]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
157 |         Country(
158 |             name: "Canada",
[23/29] Compiling InputMask Next.swift
/Users/admin/builder/spi-builder-workspace/Source/InputMask/InputMask/Classes/Model/Country.swift:156:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Country]' may have shared mutable state; this is an error in the Swift 6 language mode
 13 |  Model object representing a **Country** record operated by the ``PhoneInputListener``.
 14 |  */
 15 | public struct Country {
    |               `- note: consider making struct 'Country' conform to the 'Sendable' protocol
 16 |     /**
 17 |      International country name.
    :
154 |      Feel free to append/correct & file PRs, see https://countrycode.org
155 |      */
156 |     public static let all: [Country] = [
    |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Country]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
157 |         Country(
158 |             name: "Canada",
[24/29] Compiling InputMask Notation.swift
/Users/admin/builder/spi-builder-workspace/Source/InputMask/InputMask/Classes/Model/Country.swift:156:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Country]' may have shared mutable state; this is an error in the Swift 6 language mode
 13 |  Model object representing a **Country** record operated by the ``PhoneInputListener``.
 14 |  */
 15 | public struct Country {
    |               `- note: consider making struct 'Country' conform to the 'Sendable' protocol
 16 |     /**
 17 |      International country name.
    :
154 |      Feel free to append/correct & file PRs, see https://countrycode.org
155 |      */
156 |     public static let all: [Country] = [
    |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Country]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
157 |         Country(
158 |             name: "Canada",
[25/29] Compiling InputMask Compiler.swift
[26/29] Compiling InputMask FormatSanitizer.swift
[27/29] Compiling InputMask RTLCaretStringIterator.swift
[28/29] Compiling InputMask TextViewListener.swift
/Users/admin/builder/spi-builder-workspace/Source/InputMask/InputMask/Classes/View/TextViewListener.swift:45:18: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 42 |     private var textBefore: String = ""
 43 |
 44 |     open func attachDelegateToTextView(_ textView: NSTextView) {
    |               `- note: add '@MainActor' to make instance method 'attachDelegateToTextView' part of global actor 'MainActor'
 45 |         textView.delegate = self
    |                  `- warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 46 |         textBefore = textView.string
 47 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:413:51: note: mutation of this property is only permitted within the actor
411 | /*************************** NSText methods ***************************/
412 |
413 | @property (nullable, weak) id<NSTextViewDelegate> delegate;
    |                                                   `- note: mutation of this property is only permitted within the actor
414 | @property (getter=isEditable) BOOL editable;
415 | @property (getter=isSelectable) BOOL selectable;
/Users/admin/builder/spi-builder-workspace/Source/InputMask/InputMask/Classes/View/TextViewListener.swift:46:31: warning: main actor-isolated property 'string' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 42 |     private var textBefore: String = ""
 43 |
 44 |     open func attachDelegateToTextView(_ textView: NSTextView) {
    |               `- note: add '@MainActor' to make instance method 'attachDelegateToTextView' part of global actor 'MainActor'
 45 |         textView.delegate = self
 46 |         textBefore = textView.string
    |                               `- warning: main actor-isolated property 'string' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 47 |     }
 48 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:69:28: note: property declared here
 67 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 68 |
 69 | @property (copy) NSString *string;
    |                            `- note: property declared here
 70 |
 71 | - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string;
/Users/admin/builder/spi-builder-workspace/Source/InputMask/InputMask/Classes/View/TextViewListener.swift:158:15: warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
138 |
139 |     @discardableResult
140 |     open func put(text: String, into field: NSTextView, autocomplete putAutocomplete: Bool? = nil) -> Mask.Result {
    |               `- note: add '@MainActor' to make instance method 'put(text:into:autocomplete:)' part of global actor 'MainActor'
141 |         let autocomplete: Bool = putAutocomplete ?? self.autocomplete
142 |         let mask: Mask = pickMask(
    :
156 |         )
157 |
158 |         field.string = result.formattedText.string
    |               `- warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
159 |         field.setSelectedRange(
160 |             NSRange(
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:69:28: note: mutation of this property is only permitted within the actor
 67 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 68 |
 69 | @property (copy) NSString *string;
    |                            `- note: mutation of this property is only permitted within the actor
 70 |
 71 | - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string;
/Users/admin/builder/spi-builder-workspace/Source/InputMask/InputMask/Classes/View/TextViewListener.swift:159:15: warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
138 |
139 |     @discardableResult
140 |     open func put(text: String, into field: NSTextView, autocomplete putAutocomplete: Bool? = nil) -> Mask.Result {
    |               `- note: add '@MainActor' to make instance method 'put(text:into:autocomplete:)' part of global actor 'MainActor'
141 |         let autocomplete: Bool = putAutocomplete ?? self.autocomplete
142 |         let mask: Mask = pickMask(
    :
157 |
158 |         field.string = result.formattedText.string
159 |         field.setSelectedRange(
    |               `- warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
160 |             NSRange(
161 |                 location: result.formattedText.string.distanceFromStartIndex(to: result.formattedText.caretPosition),
AppKit.NSTextView.setSelectedRange:2:22: note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func setSelectedRange(_ charRange: NSRange)}
  |                      |- note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
[29/29] Compiling InputMask UITextInput.swift
/Users/admin/builder/spi-builder-workspace/Source/InputMask/InputMask/Classes/View/TextViewListener.swift:45:18: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 42 |     private var textBefore: String = ""
 43 |
 44 |     open func attachDelegateToTextView(_ textView: NSTextView) {
    |               `- note: add '@MainActor' to make instance method 'attachDelegateToTextView' part of global actor 'MainActor'
 45 |         textView.delegate = self
    |                  `- warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 46 |         textBefore = textView.string
 47 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:413:51: note: mutation of this property is only permitted within the actor
411 | /*************************** NSText methods ***************************/
412 |
413 | @property (nullable, weak) id<NSTextViewDelegate> delegate;
    |                                                   `- note: mutation of this property is only permitted within the actor
414 | @property (getter=isEditable) BOOL editable;
415 | @property (getter=isSelectable) BOOL selectable;
/Users/admin/builder/spi-builder-workspace/Source/InputMask/InputMask/Classes/View/TextViewListener.swift:46:31: warning: main actor-isolated property 'string' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 42 |     private var textBefore: String = ""
 43 |
 44 |     open func attachDelegateToTextView(_ textView: NSTextView) {
    |               `- note: add '@MainActor' to make instance method 'attachDelegateToTextView' part of global actor 'MainActor'
 45 |         textView.delegate = self
 46 |         textBefore = textView.string
    |                               `- warning: main actor-isolated property 'string' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 47 |     }
 48 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:69:28: note: property declared here
 67 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 68 |
 69 | @property (copy) NSString *string;
    |                            `- note: property declared here
 70 |
 71 | - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string;
/Users/admin/builder/spi-builder-workspace/Source/InputMask/InputMask/Classes/View/TextViewListener.swift:158:15: warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
138 |
139 |     @discardableResult
140 |     open func put(text: String, into field: NSTextView, autocomplete putAutocomplete: Bool? = nil) -> Mask.Result {
    |               `- note: add '@MainActor' to make instance method 'put(text:into:autocomplete:)' part of global actor 'MainActor'
141 |         let autocomplete: Bool = putAutocomplete ?? self.autocomplete
142 |         let mask: Mask = pickMask(
    :
156 |         )
157 |
158 |         field.string = result.formattedText.string
    |               `- warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
159 |         field.setSelectedRange(
160 |             NSRange(
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:69:28: note: mutation of this property is only permitted within the actor
 67 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 68 |
 69 | @property (copy) NSString *string;
    |                            `- note: mutation of this property is only permitted within the actor
 70 |
 71 | - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string;
/Users/admin/builder/spi-builder-workspace/Source/InputMask/InputMask/Classes/View/TextViewListener.swift:159:15: warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
138 |
139 |     @discardableResult
140 |     open func put(text: String, into field: NSTextView, autocomplete putAutocomplete: Bool? = nil) -> Mask.Result {
    |               `- note: add '@MainActor' to make instance method 'put(text:into:autocomplete:)' part of global actor 'MainActor'
141 |         let autocomplete: Bool = putAutocomplete ?? self.autocomplete
142 |         let mask: Mask = pickMask(
    :
157 |
158 |         field.string = result.formattedText.string
159 |         field.setSelectedRange(
    |               `- warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
160 |             NSRange(
161 |                 location: result.formattedText.string.distanceFromStartIndex(to: result.formattedText.caretPosition),
AppKit.NSTextView.setSelectedRange:2:22: note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func setSelectedRange(_ charRange: NSRange)}
  |                      |- note: calls to instance method 'setSelectedRange' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
Build complete! (7.63s)
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/Source/InputMask/InputMask/Supporting Files/Info.plist
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "InputMask",
  "name" : "InputMask",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "InputMask",
      "targets" : [
        "InputMask"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "InputMaskTests",
      "module_type" : "SwiftTarget",
      "name" : "InputMaskTests",
      "path" : "Source/InputMask",
      "sources" : [
        "InputMaskTests/Classes/Helper/StringTests.swift",
        "InputMaskTests/Classes/Mask/CustomNotationEllipticalCase.swift",
        "InputMaskTests/Classes/Mask/DayMonthYearCase.swift",
        "InputMaskTests/Classes/Mask/DayMonthYearShortCase.swift",
        "InputMaskTests/Classes/Mask/DecimalNumberCase.swift",
        "InputMaskTests/Classes/Mask/EndlessIntegerCase.swift",
        "InputMaskTests/Classes/Mask/EscapedCase.swift",
        "InputMaskTests/Classes/Mask/MaskTestCase.swift",
        "InputMaskTests/Classes/Mask/MonthYearCase.swift",
        "InputMaskTests/Classes/Mask/MonthYearDoubleSlashCase.swift",
        "InputMaskTests/Classes/Mask/NameCase.swift",
        "InputMaskTests/Classes/Mask/PhoneCase.swift",
        "InputMaskTests/Classes/Mask/Reversed/LargeNumberTests.swift",
        "InputMaskTests/Classes/Mask/SillyEllipticalCase.swift",
        "InputMaskTests/Classes/Mask/SillyPiEllipticalCase.swift",
        "InputMaskTests/Classes/Mask/WildcardCase.swift",
        "InputMaskTests/Classes/Mask/YearACCase.swift",
        "InputMaskTests/Classes/Mask/YearCase.swift"
      ],
      "target_dependencies" : [
        "InputMask"
      ],
      "type" : "test"
    },
    {
      "c99name" : "InputMask",
      "module_type" : "SwiftTarget",
      "name" : "InputMask",
      "path" : "Source/InputMask/InputMask",
      "product_memberships" : [
        "InputMask"
      ],
      "sources" : [
        "Classes/Helper/AffinityCalculationStrategy.swift",
        "Classes/Helper/CaretStringIterator.swift",
        "Classes/Helper/CharacterSet.swift",
        "Classes/Helper/Compiler.swift",
        "Classes/Helper/FormatSanitizer.swift",
        "Classes/Helper/RTLCaretStringIterator.swift",
        "Classes/Helper/String.swift",
        "Classes/Mask.swift",
        "Classes/Model/CaretString.swift",
        "Classes/Model/Country.swift",
        "Classes/Model/Next.swift",
        "Classes/Model/Notation.swift",
        "Classes/Model/State.swift",
        "Classes/Model/State/EOLState.swift",
        "Classes/Model/State/FixedState.swift",
        "Classes/Model/State/FreeState.swift",
        "Classes/Model/State/OptionalValueState.swift",
        "Classes/Model/State/ValueState.swift",
        "Classes/RTLMask.swift",
        "Classes/View/MaskedTextField+Modifiers.swift",
        "Classes/View/MaskedTextField.swift",
        "Classes/View/MaskedTextInputListener.swift",
        "Classes/View/NumberInputListener.swift",
        "Classes/View/PhoneInputListener.swift",
        "Classes/View/TextViewListener.swift",
        "Classes/View/UITextInput.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7.1"
}
Done.