The Swift Package Index logo.Swift Package Index

Build Information

Successful build of STTextKitPlus, reference main (2ee749), with Swift 6.1 for macOS (SPM) on 4 Jan 2026 10:57:55 UTC.

Swift 6 data race errors: 2

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.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/krzyzanowskim/STTextKitPlus.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/krzyzanowskim/STTextKitPlus
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2ee7490 Add unit test for locating textLineFragment at point within multi-line layout fragment
Cloned https://github.com/krzyzanowskim/STTextKitPlus.git
Revision (git rev-parse @):
2ee74906f4d753458eeaa9a2f6d4538aacb86a1d
SUCCESS checkout https://github.com/krzyzanowskim/STTextKitPlus.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/krzyzanowskim/STTextKitPlus.git
https://github.com/krzyzanowskim/STTextKitPlus.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "STTextKitPlus",
  "name" : "STTextKitPlus",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "15.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "STTextKitPlus",
      "targets" : [
        "STTextKitPlus"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "STTextKitPlusTests",
      "module_type" : "SwiftTarget",
      "name" : "STTextKitPlusTests",
      "path" : "Tests/STTextKitPlusTests",
      "sources" : [
        "NSTextLayoutFragmentTests.swift"
      ],
      "target_dependencies" : [
        "STTextKitPlus"
      ],
      "type" : "test"
    },
    {
      "c99name" : "STTextKitPlus",
      "module_type" : "SwiftTarget",
      "name" : "STTextKitPlus",
      "path" : "Sources/STTextKitPlus",
      "product_memberships" : [
        "STTextKitPlus"
      ],
      "sources" : [
        "NSRange.swift",
        "NSTextContentManager.swift",
        "NSTextLayoutFragment.swift",
        "NSTextLayoutManager.swift",
        "NSTextLineFragment.swift",
        "NSTextLocation+Equatable.swift",
        "NSTextRange.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/10] Compiling STTextKitPlus NSTextRange.swift
[4/10] Compiling STTextKitPlus NSTextLocation+Equatable.swift
[5/10] Compiling STTextKitPlus NSTextLayoutFragment.swift
[6/10] Compiling STTextKitPlus NSTextContentManager.swift
[7/10] Compiling STTextKitPlus NSTextLineFragment.swift
[8/10] Emitting module STTextKitPlus
/Users/admin/builder/spi-builder-workspace/Sources/STTextKitPlus/NSTextLayoutManager.swift:104:27: warning: static property 'allowOutside' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
102 |
103 |         /// Allow point outside text layout fragment frame
104 |         public static var allowOutside = CaretLocationOptions(rawValue: 1 << 0)
    |                           |- warning: static property 'allowOutside' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: convert 'allowOutside' to a 'let' constant to make 'Sendable' shared state immutable
    |                           |- note: add '@MainActor' to make static property 'allowOutside' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 |     }
106 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/STTextKitPlus/NSTextLayoutManager.swift:221:13: warning: let '_textSelectionInsertionPointFilter' is not concurrency-safe because non-'Sendable' type '(NSTextSelection) -> Bool' may have shared mutable state; this is an error in the Swift 6 language mode
219 | }
220 |
221 | private let _textSelectionInsertionPointFilter: (NSTextSelection) -> Bool = { textSelection in
    |             |- warning: let '_textSelectionInsertionPointFilter' is not concurrency-safe because non-'Sendable' type '(NSTextSelection) -> Bool' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let '_textSelectionInsertionPointFilter' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
222 |     !textSelection.isLogical && textSelection.textRanges.contains(where: \.isEmpty)
223 | }
[9/10] Compiling STTextKitPlus NSRange.swift
[10/10] Compiling STTextKitPlus NSTextLayoutManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/STTextKitPlus/NSTextLayoutManager.swift:104:27: warning: static property 'allowOutside' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
102 |
103 |         /// Allow point outside text layout fragment frame
104 |         public static var allowOutside = CaretLocationOptions(rawValue: 1 << 0)
    |                           |- warning: static property 'allowOutside' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: convert 'allowOutside' to a 'let' constant to make 'Sendable' shared state immutable
    |                           |- note: add '@MainActor' to make static property 'allowOutside' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 |     }
106 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/STTextKitPlus/NSTextLayoutManager.swift:221:13: warning: let '_textSelectionInsertionPointFilter' is not concurrency-safe because non-'Sendable' type '(NSTextSelection) -> Bool' may have shared mutable state; this is an error in the Swift 6 language mode
219 | }
220 |
221 | private let _textSelectionInsertionPointFilter: (NSTextSelection) -> Bool = { textSelection in
    |             |- warning: let '_textSelectionInsertionPointFilter' is not concurrency-safe because non-'Sendable' type '(NSTextSelection) -> Bool' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let '_textSelectionInsertionPointFilter' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
222 |     !textSelection.isLogical && textSelection.textRanges.contains(where: \.isEmpty)
223 | }
Build complete! (7.64s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "STTextKitPlus",
  "name" : "STTextKitPlus",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "15.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "STTextKitPlus",
      "targets" : [
        "STTextKitPlus"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "STTextKitPlusTests",
      "module_type" : "SwiftTarget",
      "name" : "STTextKitPlusTests",
      "path" : "Tests/STTextKitPlusTests",
      "sources" : [
        "NSTextLayoutFragmentTests.swift"
      ],
      "target_dependencies" : [
        "STTextKitPlus"
      ],
      "type" : "test"
    },
    {
      "c99name" : "STTextKitPlus",
      "module_type" : "SwiftTarget",
      "name" : "STTextKitPlus",
      "path" : "Sources/STTextKitPlus",
      "product_memberships" : [
        "STTextKitPlus"
      ],
      "sources" : [
        "NSRange.swift",
        "NSTextContentManager.swift",
        "NSTextLayoutFragment.swift",
        "NSTextLayoutManager.swift",
        "NSTextLineFragment.swift",
        "NSTextLocation+Equatable.swift",
        "NSTextRange.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.