The Swift Package Index logo.Swift Package Index

Build Information

Successful build of ModalView, reference 2.0.0 (0fe06a), with Swift 6.1 for macOS (SPM) on 25 Jan 2026 10:51:18 UTC.

Swift 6 data race errors: 2

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.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/diniska/modal-view.git
Reference: 2.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/diniska/modal-view
 * tag               2.0.0      -> FETCH_HEAD
HEAD is now at 0fe06a5 `fullScreenCover` style added for iOS 14+
Cloned https://github.com/diniska/modal-view.git
Revision (git rev-parse @):
0fe06a50eafd1055395a2fc2e77d0c802aca937c
SUCCESS checkout https://github.com/diniska/modal-view.git at 2.0.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/diniska/modal-view.git
https://github.com/diniska/modal-view.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ModalView",
  "name" : "ModalView",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "9.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "ModalView",
      "targets" : [
        "ModalView"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ModalViewTests",
      "module_type" : "SwiftTarget",
      "name" : "ModalViewTests",
      "path" : "Tests/ModalViewTests",
      "sources" : [
        "ModalViewTests.swift",
        "SnapshotTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "ModalView"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ModalView",
      "module_type" : "SwiftTarget",
      "name" : "ModalView",
      "path" : "Sources/ModalView",
      "product_memberships" : [
        "ModalView"
      ],
      "sources" : [
        "ModalView.swift",
        "ModalViewPresentationStyle.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
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/5] Compiling ModalView ModalViewPresentationStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/ModalView/ModalViewPresentationStyle.swift:17:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ModalViewPresentationStyle' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | public enum ModalViewPresentationStyle {
   |             `- note: consider making enum 'ModalViewPresentationStyle' conform to the 'Sendable' protocol
10 |     /// Specify to use `sheet` SwiftUI presentation method
11 |     case sheet
   :
15 |     case fullScreenCover
16 |
17 |     public static let `default`: ModalViewPresentationStyle = .sheet
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ModalViewPresentationStyle' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/ModalView/ModalViewPresentationStyle.swift:39:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ModalViewPresentationStyle' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | public enum ModalViewPresentationStyle {
   |             `- note: consider making enum 'ModalViewPresentationStyle' conform to the 'Sendable' protocol
10 |     /// Specify to use `sheet` SwiftUI presentation method
11 |     case sheet
   :
37 | @available(iOS 13, macOS 10.15, tvOS 13, watchOS 6, *)
38 | private struct ModalViewPresentationStyleEnvironmentKey: EnvironmentKey {
39 |     static let defaultValue: ModalViewPresentationStyle = .default
   |                |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ModalViewPresentationStyle' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | }
41 |
[4/5] Emitting module ModalView
/Users/admin/builder/spi-builder-workspace/Sources/ModalView/ModalViewPresentationStyle.swift:17:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ModalViewPresentationStyle' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | public enum ModalViewPresentationStyle {
   |             `- note: consider making enum 'ModalViewPresentationStyle' conform to the 'Sendable' protocol
10 |     /// Specify to use `sheet` SwiftUI presentation method
11 |     case sheet
   :
15 |     case fullScreenCover
16 |
17 |     public static let `default`: ModalViewPresentationStyle = .sheet
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ModalViewPresentationStyle' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/ModalView/ModalViewPresentationStyle.swift:39:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ModalViewPresentationStyle' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | public enum ModalViewPresentationStyle {
   |             `- note: consider making enum 'ModalViewPresentationStyle' conform to the 'Sendable' protocol
10 |     /// Specify to use `sheet` SwiftUI presentation method
11 |     case sheet
   :
37 | @available(iOS 13, macOS 10.15, tvOS 13, watchOS 6, *)
38 | private struct ModalViewPresentationStyleEnvironmentKey: EnvironmentKey {
39 |     static let defaultValue: ModalViewPresentationStyle = .default
   |                |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ModalViewPresentationStyle' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | }
41 |
[5/5] Compiling ModalView ModalView.swift
Build complete! (7.09s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ModalView",
  "name" : "ModalView",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "9.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "ModalView",
      "targets" : [
        "ModalView"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ModalViewTests",
      "module_type" : "SwiftTarget",
      "name" : "ModalViewTests",
      "path" : "Tests/ModalViewTests",
      "sources" : [
        "ModalViewTests.swift",
        "SnapshotTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "ModalView"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ModalView",
      "module_type" : "SwiftTarget",
      "name" : "ModalView",
      "path" : "Sources/ModalView",
      "product_memberships" : [
        "ModalView"
      ],
      "sources" : [
        "ModalView.swift",
        "ModalViewPresentationStyle.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.