Build Information
Successful build of ZNSTextAttachment, reference main (91f718), with Swift 6.1 for macOS (SPM) on 26 Jun 2026 22:03:40 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 InferSendableFromCapturesBuild Log
========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ZhgChgLi/ZNSTextAttachment.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ZhgChgLi/ZNSTextAttachment
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 91f718c Refactor internals, add cancel/error reporting/URLSession injection, bump to 1.2.0
Cloned https://github.com/ZhgChgLi/ZNSTextAttachment.git
Revision (git rev-parse @):
91f718caf50649d817f189eb17ad028f03fd632b
SUCCESS checkout https://github.com/ZhgChgLi/ZNSTextAttachment.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/ZhgChgLi/ZNSTextAttachment.git
https://github.com/ZhgChgLi/ZNSTextAttachment.git
{
"dependencies" : [
],
"manifest_display_name" : "ZNSTextAttachment",
"name" : "ZNSTextAttachment",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "macos",
"version" : "10.14"
}
],
"products" : [
{
"name" : "ZNSTextAttachment",
"targets" : [
"ZNSTextAttachment"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ZNSTextAttachmentTests",
"module_type" : "SwiftTarget",
"name" : "ZNSTextAttachmentTests",
"path" : "Tests/ZNSTextAttachmentTests",
"sources" : [
"Base64DataURLTests.swift",
"CancelTests.swift",
"DeprecatedAliasTests.swift",
"RegisterAndReplaceTests.swift",
"ZResizableNSTextAttachmentBoundsTests.swift"
],
"target_dependencies" : [
"ZNSTextAttachment"
],
"type" : "test"
},
{
"c99name" : "ZNSTextAttachment",
"module_type" : "SwiftTarget",
"name" : "ZNSTextAttachment",
"path" : "Sources",
"product_memberships" : [
"ZNSTextAttachment"
],
"sources" : [
"UIExtensions/UILabel+Extension.swift",
"UIExtensions/ZNSTextAttachmentLabel.swift",
"ZNSTextAttachment/Internal/AttachmentReplacer.swift",
"ZNSTextAttachment/NSTextStorage+Extension.swift",
"ZNSTextAttachment/WeakZNSTextAttachmentable.swift",
"ZNSTextAttachment/ZNSTextAttachment.swift",
"ZNSTextAttachment/ZNSTextAttachmentDataSource.swift",
"ZNSTextAttachment/ZNSTextAttachmentDelegate.swift",
"ZNSTextAttachment/ZNSTextAttachmentHandler.swift",
"ZNSTextAttachment/ZNSTextAttachmentable.swift",
"ZNSTextAttachment/ZResizableNSTextAttachment.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/13] Compiling ZNSTextAttachment ZNSTextAttachmentable.swift
[4/14] Compiling ZNSTextAttachment WeakZNSTextAttachmentable.swift
[5/14] Compiling ZNSTextAttachment ZNSTextAttachmentDelegate.swift
[6/14] Compiling ZNSTextAttachment ZNSTextAttachment.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZNSTextAttachment/ZNSTextAttachment.swift:137:30: warning: capture of 'self' with non-sendable type 'ZNSTextAttachment?' in a '@Sendable' closure
18 | /// or `data:` URL and replaces itself with a `ZResizableNSTextAttachment` once
19 | /// the data is available.
20 | public class ZNSTextAttachment: NSTextAttachment {
| `- note: class 'ZNSTextAttachment' does not conform to the 'Sendable' protocol
21 |
22 | /// The URL the attachment will load. Supports `http(s)://`, custom schemes
:
135 |
136 | let task = urlSession.dataTask(with: imageURL) { [weak self] data, response, error in
137 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'ZNSTextAttachment?' in a '@Sendable' closure
138 |
139 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Sources/ZNSTextAttachment/ZNSTextAttachment.swift:266:30: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
264 |
265 | DispatchQueue.main.async { [weak self] in
266 | guard let self = self else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
267 | let loaded = ZResizableNSTextAttachment(imageSize: image?.size, fixedWidth: self.imageWidth, fixedHeight: self.imageHeight, data: data, type: fileType)
268 | snapshot.forEach { $0.replace(attachment: self, to: loaded) }
/Users/admin/builder/spi-builder-workspace/Sources/ZNSTextAttachment/ZNSTextAttachment.swift:268:13: warning: sending 'snapshot' risks causing data races; this is an error in the Swift 6 language mode
266 | guard let self = self else { return }
267 | let loaded = ZResizableNSTextAttachment(imageSize: image?.size, fixedWidth: self.imageWidth, fixedHeight: self.imageHeight, data: data, type: fileType)
268 | snapshot.forEach { $0.replace(attachment: self, to: loaded) }
| |- warning: sending 'snapshot' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'snapshot' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
269 | self.delegate?.zNSTextAttachment(didLoad: self, to: loaded)
270 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZNSTextAttachment/ZNSTextAttachment.swift:198:30: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
196 | private func notifyFailure(_ error: Error) {
197 | DispatchQueue.main.async { [weak self] in
198 | guard let self = self else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
199 | self.delegate?.zNSTextAttachment(self, didFailWith: error)
200 | }
[7/14] Emitting module ZNSTextAttachment
[8/14] Compiling ZNSTextAttachment UILabel+Extension.swift
[9/14] Compiling ZNSTextAttachment ZNSTextAttachmentLabel.swift
[10/14] Compiling ZNSTextAttachment AttachmentReplacer.swift
[11/14] Compiling ZNSTextAttachment ZNSTextAttachmentHandler.swift
[12/14] Compiling ZNSTextAttachment NSTextStorage+Extension.swift
[13/14] Compiling ZNSTextAttachment ZNSTextAttachmentDataSource.swift
[14/14] Compiling ZNSTextAttachment ZResizableNSTextAttachment.swift
Build complete! (7.12s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "ZNSTextAttachment",
"name" : "ZNSTextAttachment",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "macos",
"version" : "10.14"
}
],
"products" : [
{
"name" : "ZNSTextAttachment",
"targets" : [
"ZNSTextAttachment"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ZNSTextAttachmentTests",
"module_type" : "SwiftTarget",
"name" : "ZNSTextAttachmentTests",
"path" : "Tests/ZNSTextAttachmentTests",
"sources" : [
"Base64DataURLTests.swift",
"CancelTests.swift",
"DeprecatedAliasTests.swift",
"RegisterAndReplaceTests.swift",
"ZResizableNSTextAttachmentBoundsTests.swift"
],
"target_dependencies" : [
"ZNSTextAttachment"
],
"type" : "test"
},
{
"c99name" : "ZNSTextAttachment",
"module_type" : "SwiftTarget",
"name" : "ZNSTextAttachment",
"path" : "Sources",
"product_memberships" : [
"ZNSTextAttachment"
],
"sources" : [
"UIExtensions/UILabel+Extension.swift",
"UIExtensions/ZNSTextAttachmentLabel.swift",
"ZNSTextAttachment/Internal/AttachmentReplacer.swift",
"ZNSTextAttachment/NSTextStorage+Extension.swift",
"ZNSTextAttachment/WeakZNSTextAttachmentable.swift",
"ZNSTextAttachment/ZNSTextAttachment.swift",
"ZNSTextAttachment/ZNSTextAttachmentDataSource.swift",
"ZNSTextAttachment/ZNSTextAttachmentDelegate.swift",
"ZNSTextAttachment/ZNSTextAttachmentHandler.swift",
"ZNSTextAttachment/ZNSTextAttachmentable.swift",
"ZNSTextAttachment/ZResizableNSTextAttachment.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.