Build Information
Successful build of STTextKitPlus, reference 0.1.8 (446d6d
), with Swift 6.0 for macOS (SPM) on 23 Jan 2025 01:28:00 UTC.
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.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.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/krzyzanowskim/STTextKitPlus.git
Reference: 0.1.8
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/krzyzanowskim/STTextKitPlus
* tag 0.1.8 -> FETCH_HEAD
HEAD is now at 446d6d4 Add textElementsNotBuggy(for:) to NSTextContentManager
Cloned https://github.com/krzyzanowskim/STTextKitPlus.git
Revision (git rev-parse @):
446d6d431b163840ac5cc844ca5cf4704886c30e
SUCCESS checkout https://github.com/krzyzanowskim/STTextKitPlus.git at 0.1.8
========================================
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": "sttextkitplus",
"name": "STTextKitPlus",
"url": "https://github.com/krzyzanowskim/STTextKitPlus.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/STTextKitPlus",
"dependencies": [
]
}
]
}
Fetching https://github.com/krzyzanowskim/STTextKitPlus.git
[1/120] Fetching sttextkitplus
Fetched https://github.com/krzyzanowskim/STTextKitPlus.git from cache (0.63s)
Creating working copy for https://github.com/krzyzanowskim/STTextKitPlus.git
Working copy of https://github.com/krzyzanowskim/STTextKitPlus.git resolved at 0.1.8 (446d6d4)
warning: '.resolve-product-dependencies': dependency 'sttextkitplus' 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/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" : "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.2.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-5BDAB9E9C0126B9D.txt
[3/10] Emitting module STTextKitPlus
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/STTextKitPlus/NSTextLayoutManager.swift:184: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
182 | }
183 |
184 | 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: annotate '_textSelectionInsertionPointFilter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
185 | !textSelection.isLogical && textSelection.textRanges.contains(where: \.isEmpty)
186 | }
[4/10] Compiling STTextKitPlus NSTextRange.swift
[5/10] Compiling STTextKitPlus NSTextLineFragment.swift
[6/10] Compiling STTextKitPlus NSTextLayoutFragment.swift
[7/10] Compiling STTextKitPlus NSTextContentManager.swift
[8/10] Compiling STTextKitPlus NSTextLocation+Equatable.swift
[9/10] Compiling STTextKitPlus NSRange.swift
[10/10] Compiling STTextKitPlus NSTextLayoutManager.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/STTextKitPlus/NSTextLayoutManager.swift:184: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
182 | }
183 |
184 | 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: annotate '_textSelectionInsertionPointFilter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
185 | !textSelection.isLogical && textSelection.textRanges.contains(where: \.isEmpty)
186 | }
Build complete! (12.28s)
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" : "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.