Build Information
Successful build of HotSwiftUI, reference main (79b90d
), with Swift 6.1 for macOS (SPM) on 1 May 2025 11:17:04 UTC.
Swift 6 data race errors: 4
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/johnno1962/HotSwiftUI.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/johnno1962/HotSwiftUI
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 79b90df New function name.
Cloned https://github.com/johnno1962/HotSwiftUI.git
Revision (git rev-parse @):
79b90df110099c6fe6f14be3da577f744cf3ec1a
SUCCESS checkout https://github.com/johnno1962/HotSwiftUI.git at main
========================================
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": "hotswiftui",
"name": "HotSwiftUI",
"url": "https://github.com/johnno1962/HotSwiftUI.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/HotSwiftUI",
"dependencies": [
]
}
]
}
Fetching https://github.com/johnno1962/HotSwiftUI.git
[1/114] Fetching hotswiftui
Fetched https://github.com/johnno1962/HotSwiftUI.git from cache (0.65s)
Creating working copy for https://github.com/johnno1962/HotSwiftUI.git
Working copy of https://github.com/johnno1962/HotSwiftUI.git resolved at main (79b90df)
warning: '.resolve-product-dependencies': dependency 'hotswiftui' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/johnno1962/HotSwiftUI.git
https://github.com/johnno1962/HotSwiftUI.git
{
"dependencies" : [
],
"manifest_display_name" : "HotSwiftUI",
"name" : "HotSwiftUI",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "HotSwiftUI",
"targets" : [
"HotSwiftUI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "HotSwiftUITests",
"module_type" : "SwiftTarget",
"name" : "HotSwiftUITests",
"path" : "Tests/HotSwiftUITests",
"sources" : [
"HotSwiftUITests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"HotSwiftUI"
],
"type" : "test"
},
{
"c99name" : "HotSwiftUI",
"module_type" : "SwiftTarget",
"name" : "HotSwiftUI",
"path" : "Sources/HotSwiftUI",
"product_memberships" : [
"HotSwiftUI"
],
"sources" : [
"HotSwiftUI.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
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/4] Emitting module HotSwiftUI
/Users/admin/builder/spi-builder-workspace/Sources/HotSwiftUI/HotSwiftUI.swift:15:12: warning: let 'injectionObserver' is not concurrency-safe because non-'Sendable' type 'InjectionObserver' may have shared mutable state; this is an error in the Swift 6 language mode
13 | import Combine
14 |
15 | public let injectionObserver = InjectionObserver.shared
| |- warning: let 'injectionObserver' is not concurrency-safe because non-'Sendable' type 'InjectionObserver' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'injectionObserver' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public class InjectionObserver: ObservableObject {
| `- note: class 'InjectionObserver' does not conform to the 'Sendable' protocol
18 | public static let shared = InjectionObserver()
19 | public static var appResources =
/Users/admin/builder/spi-builder-workspace/Sources/HotSwiftUI/HotSwiftUI.swift:18:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'InjectionObserver' may have shared mutable state; this is an error in the Swift 6 language mode
15 | public let injectionObserver = InjectionObserver.shared
16 |
17 | public class InjectionObserver: ObservableObject {
| `- note: class 'InjectionObserver' does not conform to the 'Sendable' protocol
18 | public static let shared = InjectionObserver()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'InjectionObserver' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | public static var appResources =
20 | "/Applications/InjectionIII.app/Contents/Resources/"
/Users/admin/builder/spi-builder-workspace/Sources/HotSwiftUI/HotSwiftUI.swift:19:23: warning: static property 'appResources' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | public class InjectionObserver: ObservableObject {
18 | public static let shared = InjectionObserver()
19 | public static var appResources =
| |- warning: static property 'appResources' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'appResources' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'appResources' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | "/Applications/InjectionIII.app/Contents/Resources/"
21 | @Published var injectionNumber = 0
/Users/admin/builder/spi-builder-workspace/Sources/HotSwiftUI/HotSwiftUI.swift:35:13: warning: var 'loadInjectionOnce' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | }
34 |
35 | private var loadInjectionOnce: Void = {
| |- warning: var 'loadInjectionOnce' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'loadInjectionOnce' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'loadInjectionOnce' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | guard objc_getClass("InjectionClient") == nil else {
37 | return
[4/4] Compiling HotSwiftUI HotSwiftUI.swift
/Users/admin/builder/spi-builder-workspace/Sources/HotSwiftUI/HotSwiftUI.swift:15:12: warning: let 'injectionObserver' is not concurrency-safe because non-'Sendable' type 'InjectionObserver' may have shared mutable state; this is an error in the Swift 6 language mode
13 | import Combine
14 |
15 | public let injectionObserver = InjectionObserver.shared
| |- warning: let 'injectionObserver' is not concurrency-safe because non-'Sendable' type 'InjectionObserver' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'injectionObserver' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public class InjectionObserver: ObservableObject {
| `- note: class 'InjectionObserver' does not conform to the 'Sendable' protocol
18 | public static let shared = InjectionObserver()
19 | public static var appResources =
/Users/admin/builder/spi-builder-workspace/Sources/HotSwiftUI/HotSwiftUI.swift:18:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'InjectionObserver' may have shared mutable state; this is an error in the Swift 6 language mode
15 | public let injectionObserver = InjectionObserver.shared
16 |
17 | public class InjectionObserver: ObservableObject {
| `- note: class 'InjectionObserver' does not conform to the 'Sendable' protocol
18 | public static let shared = InjectionObserver()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'InjectionObserver' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | public static var appResources =
20 | "/Applications/InjectionIII.app/Contents/Resources/"
/Users/admin/builder/spi-builder-workspace/Sources/HotSwiftUI/HotSwiftUI.swift:19:23: warning: static property 'appResources' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | public class InjectionObserver: ObservableObject {
18 | public static let shared = InjectionObserver()
19 | public static var appResources =
| |- warning: static property 'appResources' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'appResources' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'appResources' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | "/Applications/InjectionIII.app/Contents/Resources/"
21 | @Published var injectionNumber = 0
/Users/admin/builder/spi-builder-workspace/Sources/HotSwiftUI/HotSwiftUI.swift:35:13: warning: var 'loadInjectionOnce' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | }
34 |
35 | private var loadInjectionOnce: Void = {
| |- warning: var 'loadInjectionOnce' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'loadInjectionOnce' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'loadInjectionOnce' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | guard objc_getClass("InjectionClient") == nil else {
37 | return
/Users/admin/builder/spi-builder-workspace/Sources/HotSwiftUI/HotSwiftUI.swift:95:20: error: return from initializer without initializing all stored properties
93 | public struct ObserveInjection: DynamicProperty {
94 | @ObservedObject private var iO = InjectionObserver.shared
95 | public init() {}
| |- error: return from initializer without initializing all stored properties
| `- note: main actor-isolated default value of 'self.iO' cannot be used in a nonisolated initalizer
96 | public private(set) var wrappedValue: Int {
97 | get {0} set {}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/3] Emitting module HotSwiftUI
[3/3] Compiling HotSwiftUI HotSwiftUI.swift
Build complete! (0.59s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "HotSwiftUI",
"name" : "HotSwiftUI",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "HotSwiftUI",
"targets" : [
"HotSwiftUI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "HotSwiftUITests",
"module_type" : "SwiftTarget",
"name" : "HotSwiftUITests",
"path" : "Tests/HotSwiftUITests",
"sources" : [
"HotSwiftUITests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"HotSwiftUI"
],
"type" : "test"
},
{
"c99name" : "HotSwiftUI",
"module_type" : "SwiftTarget",
"name" : "HotSwiftUI",
"path" : "Sources/HotSwiftUI",
"product_memberships" : [
"HotSwiftUI"
],
"sources" : [
"HotSwiftUI.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Done.