The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of SwiftModalPresentation, reference main (febc32), with Swift 6.1 for macOS (SPM) on 10 Sep 2025 16:40:59 UTC.

Swift 6 data race errors: 1

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 InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
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 febc32d fix(ModalPresentationRegistery): IOS 26 needs more time to present a modal after another one
Cloned https://github.com/Infomaniak/swift-modal-presentation.git
Revision (git rev-parse @):
febc32d164f2fb29086a1aa65f7d1d4efbe726a2
SUCCESS checkout https://github.com/Infomaniak/swift-modal-presentation.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": "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/33] Fetching swift-modal-presentation
Fetched https://github.com/Infomaniak/swift-modal-presentation.git from cache (0.62s)
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 main (febc32d)
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.1
Building package at path:  $PWD
https://github.com/Infomaniak/swift-modal-presentation.git
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.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/7] Compiling SwiftModalPresentation ModalState.swift
/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
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
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
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
54 |             }
55 |         )
[4/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: 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
25 |
26 |     private static var modalCloseDelay: DispatchTime {
[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: 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
25 |
26 |     private static var modalCloseDelay: DispatchTime {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftModalPresentation/ModalPresentationRegistery.swift:51:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
49 |              and listen for onDismiss */
50 |             DispatchQueue.main.asyncAfter(deadline: ModalPresentationRegistery.modalCloseDelay) { [weak self] in
51 |                 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
52 |                 completion()
53 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftModalPresentation/ModalPresentationRegistery.swift:51:113: warning: sending 'closeCallback' risks causing data races; this is an error in the Swift 6 language mode
49 |              and listen for onDismiss */
50 |             DispatchQueue.main.asyncAfter(deadline: ModalPresentationRegistery.modalCloseDelay) { [weak self] in
51 |                 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
52 |                 completion()
53 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftModalPresentation/ModalPresentationRegistery.swift:52:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
50 |             DispatchQueue.main.asyncAfter(deadline: ModalPresentationRegistery.modalCloseDelay) { [weak self] in
51 |                 self?.presentedModalForContext[context] = PresentedModal(identifier: identifier, closeCallback: closeCallback)
52 |                 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
53 |             }
54 |         }
[6/7] Compiling SwiftModalPresentation ModalPublished.swift
[7/7] Compiling SwiftModalPresentation OptionalValue.swift
Build complete! (8.54s)
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.