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 1.0.5 (dcd2e3), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 01:31:40 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ChimeHQ/TextViewPlus.git
Reference: 1.0.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ChimeHQ/TextViewPlus
 * tag               1.0.5      -> FETCH_HEAD
HEAD is now at dcd2e33 update CI, some new docs
Cloned https://github.com/ChimeHQ/TextViewPlus.git
Revision (git rev-parse @):
dcd2e33c3d0a8305bbf9728716633d7f97fbe748
SUCCESS checkout https://github.com/ChimeHQ/TextViewPlus.git at 1.0.5
========================================
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": [
      ]
    }
  ]
}
Fetching https://github.com/ChimeHQ/TextViewPlus.git
[1/272] Fetching textviewplus
Fetched https://github.com/ChimeHQ/TextViewPlus.git from cache (0.82s)
Creating working copy for https://github.com/ChimeHQ/TextViewPlus.git
Working copy of https://github.com/ChimeHQ/TextViewPlus.git resolved at 1.0.5 (dcd2e33)
warning: '.resolve-product-dependencies': dependency 'textviewplus' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ChimeHQ/TextViewPlus.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/12] Compiling TextViewPlus NSTextView+Geometry.swift
[4/12] Compiling TextViewPlus NSTextView+Workarounds.swift
[5/12] Compiling TextViewPlus NSTextView+Style.swift
[6/12] Compiling TextViewPlus NSTextView+Selection.swift
[7/12] Compiling TextViewPlus NSTextView+Ranges.swift
[8/12] Compiling TextViewPlus NSTextView+Behavior.swift
[9/12] Compiling TextViewPlus NSTextView+Bounding.swift
[10/12] Compiling TextViewPlus NSLayoutManager+Geometry.swift
[11/12] Emitting module TextViewPlus
[12/12] Compiling TextViewPlus NSTextView+AttributedString.swift
/Users/admin/builder/spi-builder-workspace/TextViewPlus/NSTextView+AttributedString.swift:47:60: warning: capture of 'usableReplacementString' with non-sendable type 'NSAttributedString' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 |
46 |             manager.registerUndo(withTarget: self, handler: { (view) in
47 |                 view.replaceString(in: inverseRange, with: usableReplacementString)
   |                                                            `- warning: capture of 'usableReplacementString' with non-sendable type 'NSAttributedString' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 |             })
49 |         }
Foundation.NSAttributedString:2:12: note: class 'NSAttributedString' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.0, *)
 2 | open class NSAttributedString : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
   |            `- note: class 'NSAttributedString' does not conform to the 'Sendable' protocol
 3 |     open var string: String { get }
 4 |     open func attributes(at location: Int, effectiveRange range: NSRangePointer?) -> [NSAttributedString.Key : Any]
/Users/admin/builder/spi-builder-workspace/TextViewPlus/NSTextView+AttributedString.swift:47: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
36 |     }
37 |
38 |     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
39 |         if let manager = undoManager {
40 |             let originalString = safeAttributedSubstring(forProposedRange: range, actualRange: nil)
   :
45 |
46 |             manager.registerUndo(withTarget: self, handler: { (view) in
47 |                 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
48 |             })
49 |         }
Build complete! (13.45s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TextViewPlus",
  "name" : "TextViewPlus",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    }
  ],
  "products" : [
    {
      "name" : "TextViewPlus",
      "targets" : [
        "TextViewPlus"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TextViewPlusTests",
      "module_type" : "SwiftTarget",
      "name" : "TextViewPlusTests",
      "path" : "TextViewPlusTests",
      "sources" : [
        "TestableTextView.swift",
        "TextViewPlusTests.swift"
      ],
      "target_dependencies" : [
        "TextViewPlus"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TextViewPlus",
      "module_type" : "SwiftTarget",
      "name" : "TextViewPlus",
      "path" : "TextViewPlus",
      "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"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.