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 TextViewPlus, reference main (43f792), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 17:28:26 UTC.

Swift 6 data race errors: 0

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/ChimeHQ/TextViewPlus.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ChimeHQ/TextViewPlus
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 43f7923 Merge pull request #3 from kaunteya/char-modification
Cloned https://github.com/ChimeHQ/TextViewPlus.git
Revision (git rev-parse @):
43f79236f140426d297936a15f2e2feba61442bb
SUCCESS checkout https://github.com/ChimeHQ/TextViewPlus.git at main
Fetching https://github.com/ChimeHQ/Rearrange
[1/554] Fetching rearrange
Fetched https://github.com/ChimeHQ/Rearrange from cache (0.73s)
Computing version for https://github.com/ChimeHQ/Rearrange
Computed https://github.com/ChimeHQ/Rearrange at 1.6.0 (1.69s)
Creating working copy for https://github.com/ChimeHQ/Rearrange
Working copy of https://github.com/ChimeHQ/Rearrange resolved at 1.6.0
========================================
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": "textviewplus",
      "name": "TextViewPlus",
      "url": "https://github.com/ChimeHQ/TextViewPlus.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/TextViewPlus",
      "dependencies": [
        {
          "identity": "rearrange",
          "name": "Rearrange",
          "url": "https://github.com/ChimeHQ/Rearrange",
          "version": "1.8.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Rearrange",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/ChimeHQ/TextViewPlus.git
[1/272] Fetching textviewplus
Fetched https://github.com/ChimeHQ/TextViewPlus.git from cache (0.71s)
Fetching https://github.com/ChimeHQ/Rearrange from cache
Fetched https://github.com/ChimeHQ/Rearrange from cache (0.39s)
Computing version for https://github.com/ChimeHQ/Rearrange
Computed https://github.com/ChimeHQ/Rearrange at 1.8.1 (0.94s)
Creating working copy for https://github.com/ChimeHQ/Rearrange
Working copy of https://github.com/ChimeHQ/Rearrange resolved at 1.8.1
Creating working copy for https://github.com/ChimeHQ/TextViewPlus.git
Working copy of https://github.com/ChimeHQ/TextViewPlus.git resolved at main (43f7923)
warning: '.resolve-product-dependencies': dependency 'textviewplus' is not used by any target
Found 1 product dependencies
  - Rearrange
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ChimeHQ/TextViewPlus.git
https://github.com/ChimeHQ/TextViewPlus.git
{
  "dependencies" : [
    {
      "identity" : "rearrange",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.6.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ChimeHQ/Rearrange"
    }
  ],
  "manifest_display_name" : "TextViewPlus",
  "name" : "TextViewPlus",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "TextViewPlus",
      "targets" : [
        "TextViewPlus"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "BaseTextView",
      "targets" : [
        "BaseTextView"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TextViewPlusTests",
      "module_type" : "SwiftTarget",
      "name" : "TextViewPlusTests",
      "path" : "Tests/TextViewPlusTests",
      "sources" : [
        "TestableTextView.swift",
        "TextViewPlusTests.swift"
      ],
      "target_dependencies" : [
        "TextViewPlus"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TextViewPlus",
      "module_type" : "SwiftTarget",
      "name" : "TextViewPlus",
      "path" : "Sources/TextViewPlus",
      "product_dependencies" : [
        "Rearrange"
      ],
      "product_memberships" : [
        "TextViewPlus"
      ],
      "sources" : [
        "NSLayoutManager+Geometry.swift",
        "NSTextView+AttributedString.swift",
        "NSTextView+Behavior.swift",
        "NSTextView+Bounding.swift",
        "NSTextView+Geometry.swift",
        "NSTextView+Ranges.swift",
        "NSTextView+Selection.swift",
        "NSTextView+Style.swift",
        "NSTextView+Workarounds.swift",
        "ParagraphRenderingAttributeTextLayoutFragment.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "BaseTextViewTests",
      "module_type" : "SwiftTarget",
      "name" : "BaseTextViewTests",
      "path" : "Tests/BaseTextViewTests",
      "sources" : [
        "BaseTextViewTests.swift"
      ],
      "target_dependencies" : [
        "BaseTextView"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BaseTextView",
      "module_type" : "SwiftTarget",
      "name" : "BaseTextView",
      "path" : "Sources/BaseTextView",
      "product_memberships" : [
        "BaseTextView"
      ],
      "sources" : [
        "BaseTextView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
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/4] Write sources
[3/4] Write swift-version-2F0A5646E1D333AE.txt
[5/15] Compiling Rearrange UITextRange+Convenience.swift
[6/15] Compiling Rearrange String+NSRange.swift
[7/15] Compiling Rearrange NSRange+Shift.swift
[8/15] Compiling Rearrange NSRange+Convenience.swift
[9/15] Compiling Rearrange IndexSet+NSRange.swift
[10/15] Emitting module Rearrange
[11/15] Compiling Rearrange RangeMutation.swift
[12/15] Compiling Rearrange NSRange+ApplyMutation.swift
[13/15] Compiling Rearrange NSTextRange+NSRange.swift
[14/15] Emitting module BaseTextView
[15/15] Compiling BaseTextView BaseTextView.swift
[16/25] Compiling TextViewPlus NSTextView+Bounding.swift
[17/26] Compiling TextViewPlus NSTextView+Style.swift
[18/26] Compiling TextViewPlus NSTextView+Behavior.swift
[19/26] Compiling TextViewPlus NSLayoutManager+Geometry.swift
[20/26] Compiling TextViewPlus NSTextView+AttributedString.swift
/Users/admin/builder/spi-builder-workspace/Sources/TextViewPlus/NSTextView+AttributedString.swift:48:60: warning: capture of 'usableReplacementString' with non-sendable type 'NSAttributedString' in a '@Sendable' closure
 46 |
 47 |             manager.registerUndo(withTarget: self, handler: { (view) in
 48 |                 view.replaceString(in: inverseRange, with: usableReplacementString)
    |                                                            `- warning: capture of 'usableReplacementString' with non-sendable type 'NSAttributedString' in a '@Sendable' closure
 49 |             })
 50 |         }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAttributedString.h:29:12: note: class 'NSAttributedString' does not conform to the 'Sendable' protocol
 27 |
 28 | API_AVAILABLE(macos(10.0), ios(3.2), watchos(2.0), tvos(9.0))
 29 | @interface NSAttributedString : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
    |            `- note: class 'NSAttributedString' does not conform to the 'Sendable' protocol
 30 |
 31 | // Override these two APIs when subclassing NSAttributedString
/Users/admin/builder/spi-builder-workspace/Sources/TextViewPlus/NSTextView+AttributedString.swift:48:22: warning: call to main actor-isolated instance method 'replaceString(in:with:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 37 |
 38 |     /// Undoable replacement of attributed string in specified range
 39 |     func replaceString(in range: NSRange, with attributedString: NSAttributedString) {
    |          |- note: calls to instance method 'replaceString(in:with:)' from outside of its actor context are implicitly asynchronous
    |          `- note: main actor isolation inferred from inheritance from class 'NSText'
 40 |         if let manager = undoManager {
 41 |             let originalString = safeAttributedSubstring(forProposedRange: range, actualRange: nil)
    :
 46 |
 47 |             manager.registerUndo(withTarget: self, handler: { (view) in
 48 |                 view.replaceString(in: inverseRange, with: usableReplacementString)
    |                      `- warning: call to main actor-isolated instance method 'replaceString(in:with:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 49 |             })
 50 |         }
/Users/admin/builder/spi-builder-workspace/Sources/TextViewPlus/NSTextView+AttributedString.swift:72:22: warning: call to main actor-isolated instance method 'deleteString(in:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 70 |
 71 |             manager.registerUndo(withTarget: self, handler: { view in
 72 |                 view.deleteString(in: inverseRange)
    |                      `- warning: call to main actor-isolated instance method 'deleteString(in:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 73 |             })
 74 |         }
    :
 88 |
 89 |     /// Undoable deletion of string in specified range
 90 |     func deleteString(in range: NSRange) {
    |          |- note: calls to instance method 'deleteString(in:)' from outside of its actor context are implicitly asynchronous
    |          `- note: main actor isolation inferred from inheritance from class 'NSText'
 91 |         if let manager = undoManager {
 92 |             let originalString = safeAttributedSubstring(forProposedRange: range, actualRange: nil)
/Users/admin/builder/spi-builder-workspace/Sources/TextViewPlus/NSTextView+AttributedString.swift:96:35: warning: capture of 'usableReplacementString' with non-sendable type 'NSAttributedString' in a '@Sendable' closure
 94 |
 95 |             manager.registerUndo(withTarget: self, handler: { view in
 96 |                 view.insertString(usableReplacementString, at: range.location)
    |                                   `- warning: capture of 'usableReplacementString' with non-sendable type 'NSAttributedString' in a '@Sendable' closure
 97 |             })
 98 |         }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAttributedString.h:29:12: note: class 'NSAttributedString' does not conform to the 'Sendable' protocol
 27 |
 28 | API_AVAILABLE(macos(10.0), ios(3.2), watchos(2.0), tvos(9.0))
 29 | @interface NSAttributedString : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
    |            `- note: class 'NSAttributedString' does not conform to the 'Sendable' protocol
 30 |
 31 | // Override these two APIs when subclassing NSAttributedString
/Users/admin/builder/spi-builder-workspace/Sources/TextViewPlus/NSTextView+AttributedString.swift:96:22: warning: call to main actor-isolated instance method 'insertString(_:at:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 64 |
 65 |     /// Undoable insertion of attributed string at specified location
 66 |     func insertString(_ attributedString: NSAttributedString, at location: Int) {
    |          |- note: calls to instance method 'insertString(_:at:)' from outside of its actor context are implicitly asynchronous
    |          `- note: main actor isolation inferred from inheritance from class 'NSText'
 67 |         if let manager = undoManager {
 68 |             let inverseLength = attributedString.length
    :
 94 |
 95 |             manager.registerUndo(withTarget: self, handler: { view in
 96 |                 view.insertString(usableReplacementString, at: range.location)
    |                      `- warning: call to main actor-isolated instance method 'insertString(_:at:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 97 |             })
 98 |         }
[21/26] Emitting module TextViewPlus
[22/26] Compiling TextViewPlus NSTextView+Workarounds.swift
[23/26] Compiling TextViewPlus NSTextView+Ranges.swift
[24/26] Compiling TextViewPlus NSTextView+Geometry.swift
[25/26] Compiling TextViewPlus NSTextView+Selection.swift
[26/26] Compiling TextViewPlus ParagraphRenderingAttributeTextLayoutFragment.swift
Build complete! (9.97s)
warning: 'rearrange': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/Rearrange/Sources/Rearrange/Info.plist
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/Rearrange/Sources/Rearrange/Rearrange.xcconfig
Build complete.
{
  "dependencies" : [
    {
      "identity" : "rearrange",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.6.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ChimeHQ/Rearrange"
    }
  ],
  "manifest_display_name" : "TextViewPlus",
  "name" : "TextViewPlus",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "TextViewPlus",
      "targets" : [
        "TextViewPlus"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "BaseTextView",
      "targets" : [
        "BaseTextView"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TextViewPlusTests",
      "module_type" : "SwiftTarget",
      "name" : "TextViewPlusTests",
      "path" : "Tests/TextViewPlusTests",
      "sources" : [
        "TestableTextView.swift",
        "TextViewPlusTests.swift"
      ],
      "target_dependencies" : [
        "TextViewPlus"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TextViewPlus",
      "module_type" : "SwiftTarget",
      "name" : "TextViewPlus",
      "path" : "Sources/TextViewPlus",
      "product_dependencies" : [
        "Rearrange"
      ],
      "product_memberships" : [
        "TextViewPlus"
      ],
      "sources" : [
        "NSLayoutManager+Geometry.swift",
        "NSTextView+AttributedString.swift",
        "NSTextView+Behavior.swift",
        "NSTextView+Bounding.swift",
        "NSTextView+Geometry.swift",
        "NSTextView+Ranges.swift",
        "NSTextView+Selection.swift",
        "NSTextView+Style.swift",
        "NSTextView+Workarounds.swift",
        "ParagraphRenderingAttributeTextLayoutFragment.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "BaseTextViewTests",
      "module_type" : "SwiftTarget",
      "name" : "BaseTextViewTests",
      "path" : "Tests/BaseTextViewTests",
      "sources" : [
        "BaseTextViewTests.swift"
      ],
      "target_dependencies" : [
        "BaseTextView"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BaseTextView",
      "module_type" : "SwiftTarget",
      "name" : "BaseTextView",
      "path" : "Sources/BaseTextView",
      "product_memberships" : [
        "BaseTextView"
      ],
      "sources" : [
        "BaseTextView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.