Build Information
Successful build of Nitrakit, reference main (344ae0), with Swift 6.1 for macOS (SPM) on 17 Oct 2026 03:34:38 UTC.
Swift 6 data race errors: 6
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: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Nitrakit/nitrakit-swift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Nitrakit/nitrakit-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 344ae02 Nitrakit 0.2.0
Cloned https://github.com/Nitrakit/nitrakit-swift.git
Revision (git rev-parse @):
344ae02999243c3c054791eb06a41562719c9df3
SUCCESS checkout https://github.com/Nitrakit/nitrakit-swift.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/Nitrakit/nitrakit-swift.git
https://github.com/Nitrakit/nitrakit-swift.git
{
"dependencies" : [
],
"manifest_display_name" : "Nitrakit",
"name" : "Nitrakit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Nitrakit",
"targets" : [
"Nitrakit"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "NitrakitUI",
"targets" : [
"NitrakitUI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "NitrakitUI",
"module_type" : "SwiftTarget",
"name" : "NitrakitUI",
"path" : "Sources/NitrakitUI",
"product_memberships" : [
"NitrakitUI"
],
"sources" : [
"NitrakitCustomization.swift",
"NitrakitLicense.swift",
"NitrakitMedia.swift",
"NitrakitPreviewView.swift",
"NitrakitTimelineView.swift",
"PreviewBenchmark.swift"
],
"target_dependencies" : [
"Nitrakit"
],
"type" : "library"
},
{
"c99name" : "NitrakitFFI",
"module_type" : "BinaryTarget",
"name" : "NitrakitFFI",
"path" : "remote/archive/NitrakitFFI.xcframework.zip",
"product_memberships" : [
"Nitrakit",
"NitrakitUI"
],
"sources" : [
],
"type" : "binary"
},
{
"c99name" : "Nitrakit",
"module_type" : "SwiftTarget",
"name" : "Nitrakit",
"path" : "Sources/Nitrakit",
"product_memberships" : [
"Nitrakit",
"NitrakitUI"
],
"sources" : [
"NitrakitBoltFFI.swift"
],
"target_dependencies" : [
"NitrakitFFI"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
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
[2/4] Copying NitrakitFFI.framework
[3/4] Write swift-version-2F0A5646E1D333AE.txt
[5/6] Compiling Nitrakit NitrakitBoltFFI.swift
/Users/admin/builder/spi-builder-workspace/Sources/Nitrakit/NitrakitBoltFFI.swift:2625:13: warning: var 'boltffiEditorListenerVtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2623 | }
2624 |
2625 | private var boltffiEditorListenerVtable: ___EditorListenerVTable = {
| |- warning: var 'boltffiEditorListenerVtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'boltffiEditorListenerVtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'boltffiEditorListenerVtable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2626 | ___EditorListenerVTable(
2627 | free: { handle in
/Users/admin/builder/spi-builder-workspace/Sources/Nitrakit/NitrakitBoltFFI.swift:2673:13: warning: var 'boltffiExportListenerVtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2671 | }
2672 |
2673 | private var boltffiExportListenerVtable: ___ExportListenerVTable = {
| |- warning: var 'boltffiExportListenerVtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'boltffiExportListenerVtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'boltffiExportListenerVtable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2674 | ___ExportListenerVTable(
2675 | free: { handle in
/Users/admin/builder/spi-builder-workspace/Sources/Nitrakit/NitrakitBoltFFI.swift:2726:13: warning: var 'boltffiPlayerListenerVtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2724 | }
2725 |
2726 | private var boltffiPlayerListenerVtable: ___PlayerListenerVTable = {
| |- warning: var 'boltffiPlayerListenerVtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'boltffiPlayerListenerVtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'boltffiPlayerListenerVtable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2727 | ___PlayerListenerVTable(
2728 | free: { handle in
/Users/admin/builder/spi-builder-workspace/Sources/Nitrakit/NitrakitBoltFFI.swift:2789:13: warning: var 'boltffiTimelineListenerVtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2787 | }
2788 |
2789 | private var boltffiTimelineListenerVtable: ___TimelineListenerVTable = {
| |- warning: var 'boltffiTimelineListenerVtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'boltffiTimelineListenerVtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'boltffiTimelineListenerVtable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2790 | ___TimelineListenerVTable(
2791 | free: { handle in
/Users/admin/builder/spi-builder-workspace/Sources/Nitrakit/NitrakitBoltFFI.swift:2876:13: warning: var 'boltffiFontListenerVtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2874 | }
2875 |
2876 | private var boltffiFontListenerVtable: ___FontListenerVTable = {
| |- warning: var 'boltffiFontListenerVtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'boltffiFontListenerVtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'boltffiFontListenerVtable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2877 | ___FontListenerVTable(
2878 | free: { handle in
[6/6] Emitting module Nitrakit
/Users/admin/builder/spi-builder-workspace/Sources/Nitrakit/NitrakitBoltFFI.swift:2625:13: warning: var 'boltffiEditorListenerVtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2623 | }
2624 |
2625 | private var boltffiEditorListenerVtable: ___EditorListenerVTable = {
| |- warning: var 'boltffiEditorListenerVtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'boltffiEditorListenerVtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'boltffiEditorListenerVtable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2626 | ___EditorListenerVTable(
2627 | free: { handle in
/Users/admin/builder/spi-builder-workspace/Sources/Nitrakit/NitrakitBoltFFI.swift:2673:13: warning: var 'boltffiExportListenerVtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2671 | }
2672 |
2673 | private var boltffiExportListenerVtable: ___ExportListenerVTable = {
| |- warning: var 'boltffiExportListenerVtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'boltffiExportListenerVtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'boltffiExportListenerVtable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2674 | ___ExportListenerVTable(
2675 | free: { handle in
/Users/admin/builder/spi-builder-workspace/Sources/Nitrakit/NitrakitBoltFFI.swift:2726:13: warning: var 'boltffiPlayerListenerVtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2724 | }
2725 |
2726 | private var boltffiPlayerListenerVtable: ___PlayerListenerVTable = {
| |- warning: var 'boltffiPlayerListenerVtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'boltffiPlayerListenerVtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'boltffiPlayerListenerVtable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2727 | ___PlayerListenerVTable(
2728 | free: { handle in
/Users/admin/builder/spi-builder-workspace/Sources/Nitrakit/NitrakitBoltFFI.swift:2789:13: warning: var 'boltffiTimelineListenerVtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2787 | }
2788 |
2789 | private var boltffiTimelineListenerVtable: ___TimelineListenerVTable = {
| |- warning: var 'boltffiTimelineListenerVtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'boltffiTimelineListenerVtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'boltffiTimelineListenerVtable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2790 | ___TimelineListenerVTable(
2791 | free: { handle in
/Users/admin/builder/spi-builder-workspace/Sources/Nitrakit/NitrakitBoltFFI.swift:2876:13: warning: var 'boltffiFontListenerVtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2874 | }
2875 |
2876 | private var boltffiFontListenerVtable: ___FontListenerVTable = {
| |- warning: var 'boltffiFontListenerVtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'boltffiFontListenerVtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'boltffiFontListenerVtable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2877 | ___FontListenerVTable(
2878 | free: { handle in
[7/13] Compiling NitrakitUI PreviewBenchmark.swift
/Users/admin/builder/spi-builder-workspace/Sources/NitrakitUI/PreviewBenchmark.swift:34:123: warning: passing non-sendable parameter 'f' to function expecting a @Sendable closure
32 | }
33 | }
34 | func after(_ d: Double, _ f: @escaping () -> Void) { DispatchQueue.main.asyncAfter(deadline: .now() + d, execute: f) }
| | `- warning: passing non-sendable parameter 'f' to function expecting a @Sendable closure
| `- note: parameter 'f' is implicitly non-sendable
35 |
36 | let targets = [0.25, 0.8, 0.1, 0.55, 0.9, 0.3, 0.31, 0.6]
/Users/admin/builder/spi-builder-workspace/Sources/NitrakitUI/PreviewBenchmark.swift:31:75: warning: sending 'awaitSeek' risks causing data races; this is an error in the Swift 6 language mode
29 | next()
30 | } else {
31 | DispatchQueue.main.asyncAfter(deadline: .now() + 0.005) { awaitSeek(what, after: n, started: started, then: next) }
| |- warning: sending 'awaitSeek' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'awaitSeek' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
32 | }
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/NitrakitUI/PreviewBenchmark.swift:31:125: warning: sending 'next' risks causing data races; this is an error in the Swift 6 language mode
29 | next()
30 | } else {
31 | DispatchQueue.main.asyncAfter(deadline: .now() + 0.005) { awaitSeek(what, after: n, started: started, then: next) }
| |- warning: sending 'next' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'next' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
32 | }
33 | }
[8/13] Emitting module NitrakitUI
/Users/admin/builder/spi-builder-workspace/Sources/NitrakitUI/NitrakitLicense.swift:11:24: warning: static property 'defaults' is not concurrency-safe because non-'Sendable' type 'UserDefaults' may have shared mutable state; this is an error in the Swift 6 language mode
9 | /// update. Offline or unreachable, nothing changes.
10 | public enum NitrakitLicense {
11 | private static let defaults = UserDefaults.standard
| |- warning: static property 'defaults' is not concurrency-safe because non-'Sendable' type 'UserDefaults' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaults' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | private static let prefix = "dev.nitrakit.license."
13 | private static let day: TimeInterval = 24 * 60 * 60
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserDefaults.h:49:12: note: class 'UserDefaults' does not conform to the 'Sendable' protocol
47 | NSUserDefaults can be observed using Key-Value Observing for any key stored in it. Using NSKeyValueObservingOptionPrior to observe changes from other processes or devices will behave as though NSKeyValueObservingOptionPrior was not specified.
48 | */
49 | @interface NSUserDefaults : NSObject {
| `- note: class 'UserDefaults' does not conform to the 'Sendable' protocol
50 | @private
51 | id _kvo_;
[9/13] Compiling NitrakitUI NitrakitMedia.swift
[10/13] Compiling NitrakitUI NitrakitPreviewView.swift
[11/13] Compiling NitrakitUI NitrakitLicense.swift
/Users/admin/builder/spi-builder-workspace/Sources/NitrakitUI/NitrakitLicense.swift:11:24: warning: static property 'defaults' is not concurrency-safe because non-'Sendable' type 'UserDefaults' may have shared mutable state; this is an error in the Swift 6 language mode
9 | /// update. Offline or unreachable, nothing changes.
10 | public enum NitrakitLicense {
11 | private static let defaults = UserDefaults.standard
| |- warning: static property 'defaults' is not concurrency-safe because non-'Sendable' type 'UserDefaults' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaults' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | private static let prefix = "dev.nitrakit.license."
13 | private static let day: TimeInterval = 24 * 60 * 60
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserDefaults.h:49:12: note: class 'UserDefaults' does not conform to the 'Sendable' protocol
47 | NSUserDefaults can be observed using Key-Value Observing for any key stored in it. Using NSKeyValueObservingOptionPrior to observe changes from other processes or devices will behave as though NSKeyValueObservingOptionPrior was not specified.
48 | */
49 | @interface NSUserDefaults : NSObject {
| `- note: class 'UserDefaults' does not conform to the 'Sendable' protocol
50 | @private
51 | id _kvo_;
[12/13] Compiling NitrakitUI NitrakitCustomization.swift
[13/13] Compiling NitrakitUI NitrakitTimelineView.swift
/Users/admin/builder/spi-builder-workspace/Sources/NitrakitUI/NitrakitTimelineView.swift:69:27: warning: passing closure as a 'sending' parameter risks causing data races between main actor-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
67 | guard let t = timeline else { return }
68 | for id in ids {
69 | Task.detached {
| `- warning: passing closure as a 'sending' parameter risks causing data races between main actor-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
70 | guard let file = try? await MediaFiles.fetch(id) else { return }
71 | try? t.setStickerFile(id: id, path: file.path)
| `- note: closure captures 't' which is accessible to main actor-isolated code
72 | }
73 | }
Build complete! (11.75s)
Downloading binary artifact https://github.com/Nitrakit/nitrakit-swift/releases/download/0.2.0/NitrakitFFI.xcframework.zip
[16375/30971355] Downloading https://github.com/Nitrakit/nitrakit-swift/releases/download/0.2.0/NitrakitFFI.xcframework.zip
Downloaded https://github.com/Nitrakit/nitrakit-swift/releases/download/0.2.0/NitrakitFFI.xcframework.zip (1.89s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Nitrakit",
"name" : "Nitrakit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Nitrakit",
"targets" : [
"Nitrakit"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "NitrakitUI",
"targets" : [
"NitrakitUI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "NitrakitUI",
"module_type" : "SwiftTarget",
"name" : "NitrakitUI",
"path" : "Sources/NitrakitUI",
"product_memberships" : [
"NitrakitUI"
],
"sources" : [
"NitrakitCustomization.swift",
"NitrakitLicense.swift",
"NitrakitMedia.swift",
"NitrakitPreviewView.swift",
"NitrakitTimelineView.swift",
"PreviewBenchmark.swift"
],
"target_dependencies" : [
"Nitrakit"
],
"type" : "library"
},
{
"c99name" : "NitrakitFFI",
"module_type" : "BinaryTarget",
"name" : "NitrakitFFI",
"path" : "remote/archive/NitrakitFFI.xcframework.zip",
"product_memberships" : [
"Nitrakit",
"NitrakitUI"
],
"sources" : [
],
"type" : "binary"
},
{
"c99name" : "Nitrakit",
"module_type" : "SwiftTarget",
"name" : "Nitrakit",
"path" : "Sources/Nitrakit",
"product_memberships" : [
"Nitrakit",
"NitrakitUI"
],
"sources" : [
"NitrakitBoltFFI.swift"
],
"target_dependencies" : [
"NitrakitFFI"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.