Build Information
Successful build of SwiftModalPresentation, reference 1.0.0 (a1a390
), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 13:04:52 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 -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.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Infomaniak/swift-modal-presentation.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Infomaniak/swift-modal-presentation
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at a1a390b feat: Initial commit
Cloned https://github.com/Infomaniak/swift-modal-presentation.git
Revision (git rev-parse @):
a1a390be6808466c2ed6081cbf728b2fafb94345
SUCCESS checkout https://github.com/Infomaniak/swift-modal-presentation.git at 1.0.0
========================================
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": "swift-modal-presentation",
"name": "SwiftModalPresentation",
"url": "https://github.com/Infomaniak/swift-modal-presentation.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-modal-presentation",
"dependencies": [
]
}
]
}
Fetching https://github.com/Infomaniak/swift-modal-presentation.git
[1/21] Fetching swift-modal-presentation
Fetched https://github.com/Infomaniak/swift-modal-presentation.git from cache (0.67s)
Creating working copy for https://github.com/Infomaniak/swift-modal-presentation.git
Working copy of https://github.com/Infomaniak/swift-modal-presentation.git resolved at 1.0.0 (a1a390b)
warning: '.resolve-product-dependencies': dependency 'swift-modal-presentation' 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/Infomaniak/swift-modal-presentation.git
{
"dependencies" : [
],
"manifest_display_name" : "SwiftModalPresentation",
"name" : "SwiftModalPresentation",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "SwiftModalPresentation",
"targets" : [
"SwiftModalPresentation"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftModalPresentation",
"module_type" : "SwiftTarget",
"name" : "SwiftModalPresentation",
"path" : "Sources/SwiftModalPresentation",
"product_memberships" : [
"SwiftModalPresentation"
],
"sources" : [
"ModalPresentationRegistery.swift",
"ModalPublished.swift",
"ModalState.swift",
"OptionalValue.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
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 -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--7754E27361AE5C74.txt
[3/7] Compiling SwiftModalPresentation ModalState.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftModalPresentation/ModalPresentationRegistery.swift:24:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ModalPresentationRegistery' may have shared mutable state; this is an error in the Swift 6 language mode
21 | }
22 |
23 | class ModalPresentationRegistery {
| `- note: class 'ModalPresentationRegistery' does not conform to the 'Sendable' protocol
24 | static let shared = ModalPresentationRegistery()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ModalPresentationRegistery' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
25 |
26 | private static var modalCloseDelay: DispatchTime {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftModalPresentation/ModalState.swift:50:17: warning: capture of 'self' with non-sendable type 'ModalState<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | import SwiftUI
16 |
17 | @propertyWrapper public struct ModalState<Value>: DynamicProperty {
| `- note: consider making generic struct 'ModalState' conform to the 'Sendable' protocol
18 | private let modalPresentationState = ModalPresentationRegistery.shared
19 |
:
48 | Binding(
49 | get: {
50 | wrappedValue
| `- warning: capture of 'self' with non-sendable type 'ModalState<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
51 | },
52 | set: {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftModalPresentation/ModalState.swift:53:17: warning: capture of 'self' with non-sendable type 'ModalState<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | import SwiftUI
16 |
17 | @propertyWrapper public struct ModalState<Value>: DynamicProperty {
| `- note: consider making generic struct 'ModalState' conform to the 'Sendable' protocol
18 | private let modalPresentationState = ModalPresentationRegistery.shared
19 |
:
51 | },
52 | set: {
53 | wrappedValue = $0
| `- warning: capture of 'self' with non-sendable type 'ModalState<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | }
55 | )
[4/7] Compiling SwiftModalPresentation OptionalValue.swift
[5/7] Compiling SwiftModalPresentation ModalPresentationRegistery.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftModalPresentation/ModalPresentationRegistery.swift:24:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ModalPresentationRegistery' may have shared mutable state; this is an error in the Swift 6 language mode
21 | }
22 |
23 | class ModalPresentationRegistery {
| `- note: class 'ModalPresentationRegistery' does not conform to the 'Sendable' protocol
24 | static let shared = ModalPresentationRegistery()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ModalPresentationRegistery' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
25 |
26 | private static var modalCloseDelay: DispatchTime {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftModalPresentation/ModalPresentationRegistery.swift:47:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
45 | and listen for onDismiss */
46 | DispatchQueue.main.asyncAfter(deadline: ModalPresentationRegistery.modalCloseDelay) { [weak self] in
47 | self?.presentedModalForContext[context] = PresentedModal(identifier: identifier, closeCallback: closeCallback)
| |- 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
48 | completion()
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftModalPresentation/ModalPresentationRegistery.swift:47:113: warning: sending 'closeCallback' risks causing data races; this is an error in the Swift 6 language mode
45 | and listen for onDismiss */
46 | DispatchQueue.main.asyncAfter(deadline: ModalPresentationRegistery.modalCloseDelay) { [weak self] in
47 | self?.presentedModalForContext[context] = PresentedModal(identifier: identifier, closeCallback: closeCallback)
| |- warning: sending 'closeCallback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'closeCallback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
48 | completion()
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftModalPresentation/ModalPresentationRegistery.swift:48:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
46 | DispatchQueue.main.asyncAfter(deadline: ModalPresentationRegistery.modalCloseDelay) { [weak self] in
47 | self?.presentedModalForContext[context] = PresentedModal(identifier: identifier, closeCallback: closeCallback)
48 | completion()
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
49 | }
50 | }
[6/7] Compiling SwiftModalPresentation ModalPublished.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftModalPresentation/ModalPresentationRegistery.swift:24:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ModalPresentationRegistery' may have shared mutable state; this is an error in the Swift 6 language mode
21 | }
22 |
23 | class ModalPresentationRegistery {
| `- note: class 'ModalPresentationRegistery' does not conform to the 'Sendable' protocol
24 | static let shared = ModalPresentationRegistery()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ModalPresentationRegistery' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
25 |
26 | private static var modalCloseDelay: DispatchTime {
[7/7] Emitting module SwiftModalPresentation
/Users/admin/builder/spi-builder-workspace/Sources/SwiftModalPresentation/ModalPresentationRegistery.swift:24:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ModalPresentationRegistery' may have shared mutable state; this is an error in the Swift 6 language mode
21 | }
22 |
23 | class ModalPresentationRegistery {
| `- note: class 'ModalPresentationRegistery' does not conform to the 'Sendable' protocol
24 | static let shared = ModalPresentationRegistery()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ModalPresentationRegistery' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
25 |
26 | private static var modalCloseDelay: DispatchTime {
Build complete! (12.85s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftModalPresentation",
"name" : "SwiftModalPresentation",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "SwiftModalPresentation",
"targets" : [
"SwiftModalPresentation"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftModalPresentation",
"module_type" : "SwiftTarget",
"name" : "SwiftModalPresentation",
"path" : "Sources/SwiftModalPresentation",
"product_memberships" : [
"SwiftModalPresentation"
],
"sources" : [
"ModalPresentationRegistery.swift",
"ModalPublished.swift",
"ModalState.swift",
"OptionalValue.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Done.