Build Information
Successful build of SwiftModalPresentation, reference main (a1a390
), with Swift 6.0 for macOS (SPM) on 16 Sep 2024 19:41:24 UTC.
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Infomaniak/swift-modal-presentation.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Infomaniak/swift-modal-presentation
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
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 main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/Infomaniak/swift-modal-presentation.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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-117DEE11B69C53C9.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: capture of 'self' with non-sendable type 'ModalPresentationRegistery?' in a `@Sendable` closure; 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()
25 |
:
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: capture of 'self' with non-sendable type 'ModalPresentationRegistery?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | completion()
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftModalPresentation/ModalPresentationRegistery.swift:47:113: warning: capture of 'closeCallback' with non-sendable type '() -> Void' in a `@Sendable` closure; 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: capture of 'closeCallback' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
48 | completion()
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftModalPresentation/ModalPresentationRegistery.swift:48:17: warning: capture of 'completion' with non-sendable type '() -> Void' in a `@Sendable` closure; 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: capture of 'completion' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
49 | }
50 | }
/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! (14.21s)
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.