The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of TextBuffer, reference 0.1.0 (b444d6), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 09:38:43 UTC.

Swift 6 data race errors: 15

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/CleanCocoa/TextBuffer.git
Reference: 0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/CleanCocoa/TextBuffer
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at b444d60 add README
Cloned https://github.com/CleanCocoa/TextBuffer.git
Revision (git rev-parse @):
b444d6033cb2f3dc9b3efa284e7ba1e0dfd2148d
SUCCESS checkout https://github.com/CleanCocoa/TextBuffer.git at 0.1.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/CleanCocoa/TextBuffer.git
https://github.com/CleanCocoa/TextBuffer.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TextBuffer",
  "name" : "TextBuffer",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "TextBuffer",
      "targets" : [
        "TextBuffer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "TextBufferTesting",
      "targets" : [
        "TextBufferTesting"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TextBufferTests",
      "module_type" : "SwiftTarget",
      "name" : "TextBufferTests",
      "path" : "Tests/TextBufferTests",
      "sources" : [
        "BufferWordRangeTests.swift",
        "Helpers.swift",
        "MakeBufferWithSelectionFromStringTests.swift",
        "MutableStringBufferTests.swift",
        "NSRange+ContainsTests.swift",
        "NSRange+OrderTests.swift",
        "NSRange+ResizedTests.swift",
        "NSRange+ShiftedTests.swift",
        "NSRange+SubtractingTests.swift",
        "NSTextViewBufferTests.swift"
      ],
      "target_dependencies" : [
        "TextBuffer",
        "TextBufferTesting"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TextBufferTesting",
      "module_type" : "SwiftTarget",
      "name" : "TextBufferTesting",
      "path" : "Sources/TextBufferTesting",
      "product_memberships" : [
        "TextBufferTesting"
      ],
      "sources" : [
        "MakeBufferWithSelectionFromString.swift",
        "assertBufferState.swift"
      ],
      "target_dependencies" : [
        "TextBuffer"
      ],
      "type" : "library"
    },
    {
      "c99name" : "TextBuffer",
      "module_type" : "SwiftTarget",
      "name" : "TextBuffer",
      "path" : "Sources/TextBuffer",
      "product_memberships" : [
        "TextBuffer",
        "TextBufferTesting"
      ],
      "sources" : [
        "Bool+inverted.swift",
        "Buffer/Buffer+contains.swift",
        "Buffer/Buffer+wordRange.swift",
        "Buffer/Buffer.swift",
        "Buffer/BufferAccessFailure.swift",
        "Buffer/MutableStringBuffer.swift",
        "Buffer/NSMutableString+BufferCompatibility.swift",
        "Buffer/NSTextViewBuffer.swift",
        "Buffer/UTF16.swift",
        "Buffer/Undoable+NSTextViewBuffer.swift",
        "Buffer/Undoable.swift",
        "NSRange+Order.swift",
        "NSRange+Resized.swift",
        "NSRange+Shifted.swift",
        "NSRange+Subtracting.swift",
        "NSRange+containsRange.swift",
        "NSRange+expandedToOther.swift",
        "NSRange+notFound.swift",
        "NSRange+prefix.swift",
        "NSRange+suffix.swift",
        "NSString+locationUpToCharacter.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/23] Emitting module TextBuffer
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:29:24: warning: main actor-isolated property 'selectedRange' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 27 |     @inlinable
 28 |     open var selectedRange: Buffer.Range {
 29 |         get { textView.selectedRange }
    |                        `- warning: main actor-isolated property 'selectedRange' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 30 |         set { textView.selectedRange = newValue }
 31 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:94:19: note: property declared here
 92 | @property (getter=isRulerVisible, readonly) BOOL rulerVisible;
 93 |
 94 | @property NSRange selectedRange;
    |                   `- note: property declared here
 95 |
 96 | - (void)scrollRangeToVisible:(NSRange)range;
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:30:24: warning: main actor-isolated property 'selectedRange' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 28 |     open var selectedRange: Buffer.Range {
 29 |         get { textView.selectedRange }
 30 |         set { textView.selectedRange = newValue }
    |                        `- warning: main actor-isolated property 'selectedRange' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 31 |     }
 32 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:94:19: note: mutation of this property is only permitted within the actor
 92 | @property (getter=isRulerVisible, readonly) BOOL rulerVisible;
 93 |
 94 | @property NSRange selectedRange;
    |                   `- note: mutation of this property is only permitted within the actor
 95 |
 96 | - (void)scrollRangeToVisible:(NSRange)range;
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:34:79: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 32 |
 33 |     @inlinable
 34 |     open var range: Buffer.Range { Buffer.Range(location: 0, length: textView.nsMutableString.length) }
    |                                                                               `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 35 |
 36 |     @inlinable
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:37:42: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 35 |
 36 |     @inlinable
 37 |     open var content: Content { textView.nsMutableString as Buffer.Content }
    |                                          `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 38 |
 39 |     /// Wraps `textView` as the target of all ``Buffer`` related actions.
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:47:18: warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 44 |     /// Wrap the execution of `body` in `beginEditing()`/`endEditing()` calls to group changes inside into a single `NSTextStorage.processEditing()` run.
 45 |     @inlinable
 46 |     open func wrapAsEditing<T>(_ body: () throws -> T) rethrows -> T {
    |               `- note: add '@MainActor' to make instance method 'wrapAsEditing' part of global actor 'MainActor'
 47 |         textView.textStorage?.beginEditing()
    |                  `- warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 48 |         defer { textView.textStorage?.endEditing() }
 49 |         return try body()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:113:55: note: property declared here
111 | @property (nullable, readonly, assign) NSLayoutManager *layoutManager;
112 |
113 | @property (nullable, readonly, assign) NSTextStorage *textStorage;
    |                                                       `- note: property declared here
114 |
115 | // The text views's text layout manager, if its text container is configured with one; null otherwise.
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:48:26: warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 44 |     /// Wrap the execution of `body` in `beginEditing()`/`endEditing()` calls to group changes inside into a single `NSTextStorage.processEditing()` run.
 45 |     @inlinable
 46 |     open func wrapAsEditing<T>(_ body: () throws -> T) rethrows -> T {
    |               `- note: add '@MainActor' to make instance method 'wrapAsEditing' part of global actor 'MainActor'
 47 |         textView.textStorage?.beginEditing()
 48 |         defer { textView.textStorage?.endEditing() }
    |                          `- warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 49 |         return try body()
 50 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:113:55: note: property declared here
111 | @property (nullable, readonly, assign) NSLayoutManager *layoutManager;
112 |
113 | @property (nullable, readonly, assign) NSTextStorage *textStorage;
    |                                                       `- note: property declared here
114 |
115 | // The text views's text layout manager, if its text container is configured with one; null otherwise.
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:60:25: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 51 |
 52 |     @inlinable
 53 |     open func lineRange(for searchRange: Buffer.Range) throws -> Buffer.Range {
    |               `- note: add '@MainActor' to make instance method 'lineRange(for:)' part of global actor 'MainActor'
 54 |         guard contains(range: searchRange) else {
 55 |             throw BufferAccessFailure.outOfRange(
    :
 58 |             )
 59 |         }
 60 |         return textView.nsMutableString.lineRange(for: searchRange)
    |                         `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 61 |     }
 62 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:72:25: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 62 |
 63 |     @inlinable
 64 |     open func content(in subrange: UTF16Range) throws -> Buffer.Content {
    |               `- note: add '@MainActor' to make instance method 'content(in:)' part of global actor 'MainActor'
 65 |         guard contains(range: subrange) else {
 66 |             throw BufferAccessFailure.outOfRange(
    :
 70 |         }
 71 |
 72 |         return textView.nsMutableString.unsafeContent(in: subrange)
    |                         `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 73 |     }
 74 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:78:25: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 74 |
 75 |     @inlinable
 76 |     open func unsafeCharacter(at location: Buffer.Location) -> Buffer.Content {
    |               `- note: add '@MainActor' to make instance method 'unsafeCharacter(at:)' part of global actor 'MainActor'
 77 |         // Raises an `NSExceptionName` of name `.rangeException` if `location` is out of bounds.
 78 |         return textView.nsMutableString.unsafeCharacter(at: location)
    |                         `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 79 |     }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:91:22: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 89 |
 90 |         wrapAsEditing {
 91 |             textView.nsMutableString.insert(content, at: location)
    |                      `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 92 |         }
 93 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:105:22: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
103 |
104 |         wrapAsEditing {
105 |             textView.nsMutableString.deleteCharacters(in: deletedRange)
    |                      `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
106 |         }
107 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:118:22: warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 |
109 |     @inlinable
110 |     open func replace(range replacementRange: Buffer.Range, with content: Buffer.Content) throws {
    |               `- note: add '@MainActor' to make instance method 'replace(range:with:)' part of global actor 'MainActor'
111 |         guard contains(range: replacementRange) else {
112 |             throw BufferAccessFailure.outOfRange(requested: replacementRange, available: self.range)
    :
116 |         defer {
117 |             // Restore the recoverable part of the formerly selected range. By default, when the replaced range overlaps with the text view's selection, it removes the selection and switches to 0-length insertion point.
118 |             textView.setSelectedRange(selectedRange
    |                      `- warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
119 |                 .subtracting(replacementRange)
120 |                 .shifted(by: replacementRange.location <= selectedRange.location ? length(of: content) : 0))
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 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:124:22: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
122 |
123 |         wrapAsEditing {
124 |             textView.nsMutableString.replaceCharacters(in: replacementRange, with: content)
    |                      `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
125 |         }
126 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:130:24: warning: call to main actor-isolated instance method 'shouldChangeText(in:replacementString:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 |
128 |     @inlinable
129 |     open func modifying<T>(affectedRange: Buffer.Range, _ block: () -> T) throws -> T {
    |               `- note: add '@MainActor' to make instance method 'modifying(affectedRange:_:)' part of global actor 'MainActor'
130 |         guard textView.shouldChangeText(in: affectedRange, replacementString: nil) else {
    |                        `- warning: call to main actor-isolated instance method 'shouldChangeText(in:replacementString:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
131 |             throw BufferAccessFailure.modificationForbidden(in: affectedRange)
132 |         }
AppKit.NSTextView.shouldChangeText:2:22: note: calls to instance method 'shouldChangeText(in:replacementString:)' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func shouldChangeText(in affectedCharRange: NSRange, replacementString: String?) -> Bool}
  |                      |- note: calls to instance method 'shouldChangeText(in:replacementString:)' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:133:26: warning: call to main actor-isolated instance method 'didChangeText()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 |
128 |     @inlinable
129 |     open func modifying<T>(affectedRange: Buffer.Range, _ block: () -> T) throws -> T {
    |               `- note: add '@MainActor' to make instance method 'modifying(affectedRange:_:)' part of global actor 'MainActor'
130 |         guard textView.shouldChangeText(in: affectedRange, replacementString: nil) else {
131 |             throw BufferAccessFailure.modificationForbidden(in: affectedRange)
132 |         }
133 |         defer { textView.didChangeText() }
    |                          `- warning: call to main actor-isolated instance method 'didChangeText()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |         return wrapAsEditing {
AppKit.NSTextView.didChangeText:2:22: note: calls to instance method 'didChangeText()' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func didChangeText()}
  |                      |- note: calls to instance method 'didChangeText()' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
[5/25] Compiling TextBuffer NSRange+suffix.swift
[6/25] Compiling TextBuffer NSString+locationUpToCharacter.swift
[7/25] Compiling TextBuffer NSRange+notFound.swift
[8/25] Compiling TextBuffer NSRange+prefix.swift
[9/25] Compiling TextBuffer Undoable+NSTextViewBuffer.swift
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/Undoable+NSTextViewBuffer.swift:13:34: warning: main actor-isolated property 'undoManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
11 |     ) {
12 |         self.init(base) {
13 |             return base.textView.undoManager
   |                                  `- warning: main actor-isolated property 'undoManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
14 |         }
15 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:308:55: note: property declared here
306 |
307 | @interface NSResponder(NSUndoSupport)
308 | @property (nullable, readonly, strong) NSUndoManager *undoManager;
    |                                                       `- note: property declared here
309 | @end
310 |
[10/25] Compiling TextBuffer Undoable.swift
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/Undoable+NSTextViewBuffer.swift:13:34: warning: main actor-isolated property 'undoManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
11 |     ) {
12 |         self.init(base) {
13 |             return base.textView.undoManager
   |                                  `- warning: main actor-isolated property 'undoManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
14 |         }
15 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:308:55: note: property declared here
306 |
307 | @interface NSResponder(NSUndoSupport)
308 | @property (nullable, readonly, strong) NSUndoManager *undoManager;
    |                                                       `- note: property declared here
309 | @end
310 |
[11/25] Compiling TextBuffer MutableStringBuffer.swift
[12/25] Compiling TextBuffer NSMutableString+BufferCompatibility.swift
[13/25] Compiling TextBuffer NSRange+Order.swift
[14/25] Compiling TextBuffer NSRange+Resized.swift
[15/25] Compiling TextBuffer Buffer.swift
[16/25] Compiling TextBuffer BufferAccessFailure.swift
[17/25] Compiling TextBuffer NSRange+containsRange.swift
[18/25] Compiling TextBuffer NSRange+expandedToOther.swift
[19/25] Compiling TextBuffer NSRange+Shifted.swift
[20/25] Compiling TextBuffer NSRange+Subtracting.swift
[21/25] Compiling TextBuffer Bool+inverted.swift
[22/25] Compiling TextBuffer Buffer+contains.swift
[23/25] Compiling TextBuffer Buffer+wordRange.swift
[24/25] Compiling TextBuffer NSTextViewBuffer.swift
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:29:24: warning: main actor-isolated property 'selectedRange' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 27 |     @inlinable
 28 |     open var selectedRange: Buffer.Range {
 29 |         get { textView.selectedRange }
    |                        `- warning: main actor-isolated property 'selectedRange' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 30 |         set { textView.selectedRange = newValue }
 31 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:94:19: note: property declared here
 92 | @property (getter=isRulerVisible, readonly) BOOL rulerVisible;
 93 |
 94 | @property NSRange selectedRange;
    |                   `- note: property declared here
 95 |
 96 | - (void)scrollRangeToVisible:(NSRange)range;
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:30:24: warning: main actor-isolated property 'selectedRange' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 28 |     open var selectedRange: Buffer.Range {
 29 |         get { textView.selectedRange }
 30 |         set { textView.selectedRange = newValue }
    |                        `- warning: main actor-isolated property 'selectedRange' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 31 |     }
 32 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:94:19: note: mutation of this property is only permitted within the actor
 92 | @property (getter=isRulerVisible, readonly) BOOL rulerVisible;
 93 |
 94 | @property NSRange selectedRange;
    |                   `- note: mutation of this property is only permitted within the actor
 95 |
 96 | - (void)scrollRangeToVisible:(NSRange)range;
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:34:79: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 32 |
 33 |     @inlinable
 34 |     open var range: Buffer.Range { Buffer.Range(location: 0, length: textView.nsMutableString.length) }
    |                                                                               `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 35 |
 36 |     @inlinable
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:37:42: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 35 |
 36 |     @inlinable
 37 |     open var content: Content { textView.nsMutableString as Buffer.Content }
    |                                          `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 38 |
 39 |     /// Wraps `textView` as the target of all ``Buffer`` related actions.
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:47:18: warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 44 |     /// Wrap the execution of `body` in `beginEditing()`/`endEditing()` calls to group changes inside into a single `NSTextStorage.processEditing()` run.
 45 |     @inlinable
 46 |     open func wrapAsEditing<T>(_ body: () throws -> T) rethrows -> T {
    |               `- note: add '@MainActor' to make instance method 'wrapAsEditing' part of global actor 'MainActor'
 47 |         textView.textStorage?.beginEditing()
    |                  `- warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 48 |         defer { textView.textStorage?.endEditing() }
 49 |         return try body()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:113:55: note: property declared here
111 | @property (nullable, readonly, assign) NSLayoutManager *layoutManager;
112 |
113 | @property (nullable, readonly, assign) NSTextStorage *textStorage;
    |                                                       `- note: property declared here
114 |
115 | // The text views's text layout manager, if its text container is configured with one; null otherwise.
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:48:26: warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 44 |     /// Wrap the execution of `body` in `beginEditing()`/`endEditing()` calls to group changes inside into a single `NSTextStorage.processEditing()` run.
 45 |     @inlinable
 46 |     open func wrapAsEditing<T>(_ body: () throws -> T) rethrows -> T {
    |               `- note: add '@MainActor' to make instance method 'wrapAsEditing' part of global actor 'MainActor'
 47 |         textView.textStorage?.beginEditing()
 48 |         defer { textView.textStorage?.endEditing() }
    |                          `- warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 49 |         return try body()
 50 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:113:55: note: property declared here
111 | @property (nullable, readonly, assign) NSLayoutManager *layoutManager;
112 |
113 | @property (nullable, readonly, assign) NSTextStorage *textStorage;
    |                                                       `- note: property declared here
114 |
115 | // The text views's text layout manager, if its text container is configured with one; null otherwise.
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:60:25: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 51 |
 52 |     @inlinable
 53 |     open func lineRange(for searchRange: Buffer.Range) throws -> Buffer.Range {
    |               `- note: add '@MainActor' to make instance method 'lineRange(for:)' part of global actor 'MainActor'
 54 |         guard contains(range: searchRange) else {
 55 |             throw BufferAccessFailure.outOfRange(
    :
 58 |             )
 59 |         }
 60 |         return textView.nsMutableString.lineRange(for: searchRange)
    |                         `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 61 |     }
 62 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:72:25: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 62 |
 63 |     @inlinable
 64 |     open func content(in subrange: UTF16Range) throws -> Buffer.Content {
    |               `- note: add '@MainActor' to make instance method 'content(in:)' part of global actor 'MainActor'
 65 |         guard contains(range: subrange) else {
 66 |             throw BufferAccessFailure.outOfRange(
    :
 70 |         }
 71 |
 72 |         return textView.nsMutableString.unsafeContent(in: subrange)
    |                         `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 73 |     }
 74 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:78:25: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 74 |
 75 |     @inlinable
 76 |     open func unsafeCharacter(at location: Buffer.Location) -> Buffer.Content {
    |               `- note: add '@MainActor' to make instance method 'unsafeCharacter(at:)' part of global actor 'MainActor'
 77 |         // Raises an `NSExceptionName` of name `.rangeException` if `location` is out of bounds.
 78 |         return textView.nsMutableString.unsafeCharacter(at: location)
    |                         `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 79 |     }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:91:22: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 89 |
 90 |         wrapAsEditing {
 91 |             textView.nsMutableString.insert(content, at: location)
    |                      `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 92 |         }
 93 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:105:22: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
103 |
104 |         wrapAsEditing {
105 |             textView.nsMutableString.deleteCharacters(in: deletedRange)
    |                      `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
106 |         }
107 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:118:22: warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 |
109 |     @inlinable
110 |     open func replace(range replacementRange: Buffer.Range, with content: Buffer.Content) throws {
    |               `- note: add '@MainActor' to make instance method 'replace(range:with:)' part of global actor 'MainActor'
111 |         guard contains(range: replacementRange) else {
112 |             throw BufferAccessFailure.outOfRange(requested: replacementRange, available: self.range)
    :
116 |         defer {
117 |             // Restore the recoverable part of the formerly selected range. By default, when the replaced range overlaps with the text view's selection, it removes the selection and switches to 0-length insertion point.
118 |             textView.setSelectedRange(selectedRange
    |                      `- warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
119 |                 .subtracting(replacementRange)
120 |                 .shifted(by: replacementRange.location <= selectedRange.location ? length(of: content) : 0))
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 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:124:22: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
122 |
123 |         wrapAsEditing {
124 |             textView.nsMutableString.replaceCharacters(in: replacementRange, with: content)
    |                      `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
125 |         }
126 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:130:24: warning: call to main actor-isolated instance method 'shouldChangeText(in:replacementString:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 |
128 |     @inlinable
129 |     open func modifying<T>(affectedRange: Buffer.Range, _ block: () -> T) throws -> T {
    |               `- note: add '@MainActor' to make instance method 'modifying(affectedRange:_:)' part of global actor 'MainActor'
130 |         guard textView.shouldChangeText(in: affectedRange, replacementString: nil) else {
    |                        `- warning: call to main actor-isolated instance method 'shouldChangeText(in:replacementString:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
131 |             throw BufferAccessFailure.modificationForbidden(in: affectedRange)
132 |         }
AppKit.NSTextView.shouldChangeText:2:22: note: calls to instance method 'shouldChangeText(in:replacementString:)' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func shouldChangeText(in affectedCharRange: NSRange, replacementString: String?) -> Bool}
  |                      |- note: calls to instance method 'shouldChangeText(in:replacementString:)' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:133:26: warning: call to main actor-isolated instance method 'didChangeText()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 |
128 |     @inlinable
129 |     open func modifying<T>(affectedRange: Buffer.Range, _ block: () -> T) throws -> T {
    |               `- note: add '@MainActor' to make instance method 'modifying(affectedRange:_:)' part of global actor 'MainActor'
130 |         guard textView.shouldChangeText(in: affectedRange, replacementString: nil) else {
131 |             throw BufferAccessFailure.modificationForbidden(in: affectedRange)
132 |         }
133 |         defer { textView.didChangeText() }
    |                          `- warning: call to main actor-isolated instance method 'didChangeText()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |         return wrapAsEditing {
AppKit.NSTextView.didChangeText:2:22: note: calls to instance method 'didChangeText()' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func didChangeText()}
  |                      |- note: calls to instance method 'didChangeText()' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
[25/25] Compiling TextBuffer UTF16.swift
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:29:24: warning: main actor-isolated property 'selectedRange' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 27 |     @inlinable
 28 |     open var selectedRange: Buffer.Range {
 29 |         get { textView.selectedRange }
    |                        `- warning: main actor-isolated property 'selectedRange' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 30 |         set { textView.selectedRange = newValue }
 31 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:94:19: note: property declared here
 92 | @property (getter=isRulerVisible, readonly) BOOL rulerVisible;
 93 |
 94 | @property NSRange selectedRange;
    |                   `- note: property declared here
 95 |
 96 | - (void)scrollRangeToVisible:(NSRange)range;
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:30:24: warning: main actor-isolated property 'selectedRange' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 28 |     open var selectedRange: Buffer.Range {
 29 |         get { textView.selectedRange }
 30 |         set { textView.selectedRange = newValue }
    |                        `- warning: main actor-isolated property 'selectedRange' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 31 |     }
 32 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:94:19: note: mutation of this property is only permitted within the actor
 92 | @property (getter=isRulerVisible, readonly) BOOL rulerVisible;
 93 |
 94 | @property NSRange selectedRange;
    |                   `- note: mutation of this property is only permitted within the actor
 95 |
 96 | - (void)scrollRangeToVisible:(NSRange)range;
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:34:79: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 32 |
 33 |     @inlinable
 34 |     open var range: Buffer.Range { Buffer.Range(location: 0, length: textView.nsMutableString.length) }
    |                                                                               `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 35 |
 36 |     @inlinable
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:37:42: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 35 |
 36 |     @inlinable
 37 |     open var content: Content { textView.nsMutableString as Buffer.Content }
    |                                          `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 38 |
 39 |     /// Wraps `textView` as the target of all ``Buffer`` related actions.
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:47:18: warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 44 |     /// Wrap the execution of `body` in `beginEditing()`/`endEditing()` calls to group changes inside into a single `NSTextStorage.processEditing()` run.
 45 |     @inlinable
 46 |     open func wrapAsEditing<T>(_ body: () throws -> T) rethrows -> T {
    |               `- note: add '@MainActor' to make instance method 'wrapAsEditing' part of global actor 'MainActor'
 47 |         textView.textStorage?.beginEditing()
    |                  `- warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 48 |         defer { textView.textStorage?.endEditing() }
 49 |         return try body()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:113:55: note: property declared here
111 | @property (nullable, readonly, assign) NSLayoutManager *layoutManager;
112 |
113 | @property (nullable, readonly, assign) NSTextStorage *textStorage;
    |                                                       `- note: property declared here
114 |
115 | // The text views's text layout manager, if its text container is configured with one; null otherwise.
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:48:26: warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 44 |     /// Wrap the execution of `body` in `beginEditing()`/`endEditing()` calls to group changes inside into a single `NSTextStorage.processEditing()` run.
 45 |     @inlinable
 46 |     open func wrapAsEditing<T>(_ body: () throws -> T) rethrows -> T {
    |               `- note: add '@MainActor' to make instance method 'wrapAsEditing' part of global actor 'MainActor'
 47 |         textView.textStorage?.beginEditing()
 48 |         defer { textView.textStorage?.endEditing() }
    |                          `- warning: main actor-isolated property 'textStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 49 |         return try body()
 50 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:113:55: note: property declared here
111 | @property (nullable, readonly, assign) NSLayoutManager *layoutManager;
112 |
113 | @property (nullable, readonly, assign) NSTextStorage *textStorage;
    |                                                       `- note: property declared here
114 |
115 | // The text views's text layout manager, if its text container is configured with one; null otherwise.
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:60:25: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 51 |
 52 |     @inlinable
 53 |     open func lineRange(for searchRange: Buffer.Range) throws -> Buffer.Range {
    |               `- note: add '@MainActor' to make instance method 'lineRange(for:)' part of global actor 'MainActor'
 54 |         guard contains(range: searchRange) else {
 55 |             throw BufferAccessFailure.outOfRange(
    :
 58 |             )
 59 |         }
 60 |         return textView.nsMutableString.lineRange(for: searchRange)
    |                         `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 61 |     }
 62 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:72:25: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 62 |
 63 |     @inlinable
 64 |     open func content(in subrange: UTF16Range) throws -> Buffer.Content {
    |               `- note: add '@MainActor' to make instance method 'content(in:)' part of global actor 'MainActor'
 65 |         guard contains(range: subrange) else {
 66 |             throw BufferAccessFailure.outOfRange(
    :
 70 |         }
 71 |
 72 |         return textView.nsMutableString.unsafeContent(in: subrange)
    |                         `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 73 |     }
 74 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:78:25: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 74 |
 75 |     @inlinable
 76 |     open func unsafeCharacter(at location: Buffer.Location) -> Buffer.Content {
    |               `- note: add '@MainActor' to make instance method 'unsafeCharacter(at:)' part of global actor 'MainActor'
 77 |         // Raises an `NSExceptionName` of name `.rangeException` if `location` is out of bounds.
 78 |         return textView.nsMutableString.unsafeCharacter(at: location)
    |                         `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 79 |     }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:91:22: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
 89 |
 90 |         wrapAsEditing {
 91 |             textView.nsMutableString.insert(content, at: location)
    |                      `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 92 |         }
 93 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:105:22: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
103 |
104 |         wrapAsEditing {
105 |             textView.nsMutableString.deleteCharacters(in: deletedRange)
    |                      `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
106 |         }
107 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:118:22: warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 |
109 |     @inlinable
110 |     open func replace(range replacementRange: Buffer.Range, with content: Buffer.Content) throws {
    |               `- note: add '@MainActor' to make instance method 'replace(range:with:)' part of global actor 'MainActor'
111 |         guard contains(range: replacementRange) else {
112 |             throw BufferAccessFailure.outOfRange(requested: replacementRange, available: self.range)
    :
116 |         defer {
117 |             // Restore the recoverable part of the formerly selected range. By default, when the replaced range overlaps with the text view's selection, it removes the selection and switches to 0-length insertion point.
118 |             textView.setSelectedRange(selectedRange
    |                      `- warning: call to main actor-isolated instance method 'setSelectedRange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
119 |                 .subtracting(replacementRange)
120 |                 .shifted(by: replacementRange.location <= selectedRange.location ? length(of: content) : 0))
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 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:124:22: warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  7 |     /// `NSString` contents of the receiver avoiding Swift `String` bridging overhead.
  8 |     @usableFromInline @inline(__always)
  9 |     var nsMutableString: NSMutableString {
    |         `- note: property declared here
 10 |         guard let textStorage = self.textStorage else {
 11 |             preconditionFailure("NSTextView.textStorage expected to be non-nil")
    :
122 |
123 |         wrapAsEditing {
124 |             textView.nsMutableString.replaceCharacters(in: replacementRange, with: content)
    |                      `- warning: main actor-isolated property 'nsMutableString' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
125 |         }
126 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:130:24: warning: call to main actor-isolated instance method 'shouldChangeText(in:replacementString:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 |
128 |     @inlinable
129 |     open func modifying<T>(affectedRange: Buffer.Range, _ block: () -> T) throws -> T {
    |               `- note: add '@MainActor' to make instance method 'modifying(affectedRange:_:)' part of global actor 'MainActor'
130 |         guard textView.shouldChangeText(in: affectedRange, replacementString: nil) else {
    |                        `- warning: call to main actor-isolated instance method 'shouldChangeText(in:replacementString:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
131 |             throw BufferAccessFailure.modificationForbidden(in: affectedRange)
132 |         }
AppKit.NSTextView.shouldChangeText:2:22: note: calls to instance method 'shouldChangeText(in:replacementString:)' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func shouldChangeText(in affectedCharRange: NSRange, replacementString: String?) -> Bool}
  |                      |- note: calls to instance method 'shouldChangeText(in:replacementString:)' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/TextBuffer/Buffer/NSTextViewBuffer.swift:133:26: warning: call to main actor-isolated instance method 'didChangeText()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 |
128 |     @inlinable
129 |     open func modifying<T>(affectedRange: Buffer.Range, _ block: () -> T) throws -> T {
    |               `- note: add '@MainActor' to make instance method 'modifying(affectedRange:_:)' part of global actor 'MainActor'
130 |         guard textView.shouldChangeText(in: affectedRange, replacementString: nil) else {
131 |             throw BufferAccessFailure.modificationForbidden(in: affectedRange)
132 |         }
133 |         defer { textView.didChangeText() }
    |                          `- warning: call to main actor-isolated instance method 'didChangeText()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |         return wrapAsEditing {
AppKit.NSTextView.didChangeText:2:22: note: calls to instance method 'didChangeText()' from outside of its actor context are implicitly asynchronous
1 | class NSTextView {
2 | @MainActor open func didChangeText()}
  |                      |- note: calls to instance method 'didChangeText()' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSText'
3 |
[26/28] Compiling TextBufferTesting assertBufferState.swift
[27/28] Emitting module TextBufferTesting
[28/28] Compiling TextBufferTesting MakeBufferWithSelectionFromString.swift
Build complete! (12.36s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TextBuffer",
  "name" : "TextBuffer",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "TextBuffer",
      "targets" : [
        "TextBuffer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "TextBufferTesting",
      "targets" : [
        "TextBufferTesting"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TextBufferTests",
      "module_type" : "SwiftTarget",
      "name" : "TextBufferTests",
      "path" : "Tests/TextBufferTests",
      "sources" : [
        "BufferWordRangeTests.swift",
        "Helpers.swift",
        "MakeBufferWithSelectionFromStringTests.swift",
        "MutableStringBufferTests.swift",
        "NSRange+ContainsTests.swift",
        "NSRange+OrderTests.swift",
        "NSRange+ResizedTests.swift",
        "NSRange+ShiftedTests.swift",
        "NSRange+SubtractingTests.swift",
        "NSTextViewBufferTests.swift"
      ],
      "target_dependencies" : [
        "TextBuffer",
        "TextBufferTesting"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TextBufferTesting",
      "module_type" : "SwiftTarget",
      "name" : "TextBufferTesting",
      "path" : "Sources/TextBufferTesting",
      "product_memberships" : [
        "TextBufferTesting"
      ],
      "sources" : [
        "MakeBufferWithSelectionFromString.swift",
        "assertBufferState.swift"
      ],
      "target_dependencies" : [
        "TextBuffer"
      ],
      "type" : "library"
    },
    {
      "c99name" : "TextBuffer",
      "module_type" : "SwiftTarget",
      "name" : "TextBuffer",
      "path" : "Sources/TextBuffer",
      "product_memberships" : [
        "TextBuffer",
        "TextBufferTesting"
      ],
      "sources" : [
        "Bool+inverted.swift",
        "Buffer/Buffer+contains.swift",
        "Buffer/Buffer+wordRange.swift",
        "Buffer/Buffer.swift",
        "Buffer/BufferAccessFailure.swift",
        "Buffer/MutableStringBuffer.swift",
        "Buffer/NSMutableString+BufferCompatibility.swift",
        "Buffer/NSTextViewBuffer.swift",
        "Buffer/UTF16.swift",
        "Buffer/Undoable+NSTextViewBuffer.swift",
        "Buffer/Undoable.swift",
        "NSRange+Order.swift",
        "NSRange+Resized.swift",
        "NSRange+Shifted.swift",
        "NSRange+Subtracting.swift",
        "NSRange+containsRange.swift",
        "NSRange+expandedToOther.swift",
        "NSRange+notFound.swift",
        "NSRange+prefix.swift",
        "NSRange+suffix.swift",
        "NSString+locationUpToCharacter.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.