Build Information
Successful build of Gestalt, reference master (646923
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 11:07:18 UTC.
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/regexident/Gestalt.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/regexident/Gestalt
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 6469230 Bumped version to '2.1.1'
Cloned https://github.com/regexident/Gestalt.git
Revision (git rev-parse @):
6469230fb1b81ea449312a855b410425030b287e
SUCCESS checkout https://github.com/regexident/Gestalt.git at master
========================================
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": "gestalt",
"name": "Gestalt",
"url": "https://github.com/regexident/Gestalt.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Gestalt",
"dependencies": [
]
}
]
}
Fetching https://github.com/regexident/Gestalt.git
[6/511] Fetching gestalt
Fetched https://github.com/regexident/Gestalt.git from cache (1.22s)
Creating working copy for https://github.com/regexident/Gestalt.git
Working copy of https://github.com/regexident/Gestalt.git resolved at master (6469230)
warning: '.resolve-product-dependencies': dependency 'gestalt' 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/regexident/Gestalt.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/7] Compiling Gestalt ThemeObserver.swift
[4/7] Compiling Gestalt Themeable.swift
/Users/admin/builder/spi-builder-workspace/Gestalt/Themeable.swift:12:28: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
10 |
11 | /// Utility protocol for enabling Gestalt themes
12 | public protocol Themeable: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
13 | associatedtype Theme: Gestalt.Theme
14 |
/Users/admin/builder/spi-builder-workspace/Gestalt/ThemeManager.swift:23:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ThemeManager' may have shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | /// Theme manager for assigning a theme
21 | public class ThemeManager {
| `- note: class 'ThemeManager' does not conform to the 'Sendable' protocol
22 | /// The default ThemeManager
23 | public static let `default`: ThemeManager = .init()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ThemeManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
24 |
25 | /// Whether to apply themes with animation
[5/7] Compiling Gestalt Gestalt.swift
[6/7] Emitting module Gestalt
/Users/admin/builder/spi-builder-workspace/Gestalt/ThemeManager.swift:23:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ThemeManager' may have shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | /// Theme manager for assigning a theme
21 | public class ThemeManager {
| `- note: class 'ThemeManager' does not conform to the 'Sendable' protocol
22 | /// The default ThemeManager
23 | public static let `default`: ThemeManager = .init()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ThemeManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
24 |
25 | /// Whether to apply themes with animation
/Users/admin/builder/spi-builder-workspace/Gestalt/Themeable.swift:12:28: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
10 |
11 | /// Utility protocol for enabling Gestalt themes
12 | public protocol Themeable: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
13 | associatedtype Theme: Gestalt.Theme
14 |
[7/7] Compiling Gestalt ThemeManager.swift
/Users/admin/builder/spi-builder-workspace/Gestalt/ThemeManager.swift:23:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ThemeManager' may have shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | /// Theme manager for assigning a theme
21 | public class ThemeManager {
| `- note: class 'ThemeManager' does not conform to the 'Sendable' protocol
22 | /// The default ThemeManager
23 | public static let `default`: ThemeManager = .init()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ThemeManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
24 |
25 | /// Whether to apply themes with animation
/Users/admin/builder/spi-builder-workspace/Gestalt/ThemeManager.swift:239:40: warning: capture of 'observer' with non-sendable type 'ThemeObserver?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
237 | return
238 | }
239 | guard let strongObserver = observer else {
| `- warning: capture of 'observer' with non-sendable type 'ThemeObserver?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
240 | return
241 | }
/Users/admin/builder/spi-builder-workspace/Gestalt/ThemeObserver.swift:11:16: note: class 'ThemeObserver' does not conform to the 'Sendable' protocol
9 | #endif
10 |
11 | internal class ThemeObserver {
| `- note: class 'ThemeObserver' does not conform to the 'Sendable' protocol
12 | private let closure: (Theme) -> ()
13 |
/Users/admin/builder/spi-builder-workspace/Gestalt/ThemeManager.swift:256:36: warning: capture of 'self' with non-sendable type 'ThemeManager?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 |
20 | /// Theme manager for assigning a theme
21 | public class ThemeManager {
| `- note: class 'ThemeManager' does not conform to the 'Sendable' protocol
22 | /// The default ThemeManager
23 | public static let `default`: ThemeManager = .init()
:
254 | private func notify() {
255 | DispatchQueue.main.async { [weak self] in
256 | guard let strongSelf = self else {
| `- warning: capture of 'self' with non-sendable type 'ThemeManager?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
257 | return
258 | }
/Users/admin/builder/spi-builder-workspace/Gestalt/ThemeManager.swift:256:36: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
254 | private func notify() {
255 | DispatchQueue.main.async { [weak self] in
256 | guard let strongSelf = self else {
| |- 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
257 | return
258 | }
Build complete! (9.36s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Gestalt",
"name" : "Gestalt",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Gestalt",
"targets" : [
"Gestalt"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "GestaltTests",
"module_type" : "SwiftTarget",
"name" : "GestaltTests",
"path" : "GestaltTests",
"sources" : [
"GestaltTests.swift"
],
"target_dependencies" : [
"Gestalt"
],
"type" : "test"
},
{
"c99name" : "Gestalt",
"module_type" : "SwiftTarget",
"name" : "Gestalt",
"path" : "Gestalt",
"product_memberships" : [
"Gestalt"
],
"sources" : [
"Gestalt.swift",
"ThemeManager.swift",
"ThemeObserver.swift",
"Themeable.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Done.