The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of SwiftUIPHPicker, reference main (f91179), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 13:04:40 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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/edonv/SwiftUIPHPicker.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/edonv/SwiftUIPHPicker
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at f91179f Added empty privacy manifest
Cloned https://github.com/edonv/SwiftUIPHPicker.git
Revision (git rev-parse @):
f91179f7318805da94e096b87cc938d58aa30383
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/edonv/SwiftUIPHPicker.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": "swiftuiphpicker",
      "name": "SwiftUIPHPicker",
      "url": "https://github.com/edonv/SwiftUIPHPicker.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUIPHPicker",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/edonv/SwiftUIPHPicker.git
[1/481] Fetching swiftuiphpicker
Fetched https://github.com/edonv/SwiftUIPHPicker.git from cache (0.75s)
Creating working copy for https://github.com/edonv/SwiftUIPHPicker.git
Working copy of https://github.com/edonv/SwiftUIPHPicker.git resolved at main (f91179f)
warning: '.resolve-product-dependencies': dependency 'swiftuiphpicker' 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/edonv/SwiftUIPHPicker.git
https://github.com/edonv/SwiftUIPHPicker.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftUIPHPicker",
  "name" : "SwiftUIPHPicker",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftUIPHPicker",
      "targets" : [
        "SwiftUIPHPicker"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftUIPHPickerTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftUIPHPickerTests",
      "path" : "Tests/SwiftUIPHPickerTests",
      "sources" : [
        "SwiftUIPHPickerTests.swift"
      ],
      "target_dependencies" : [
        "SwiftUIPHPicker"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftUIPHPicker",
      "module_type" : "SwiftTarget",
      "name" : "SwiftUIPHPicker",
      "path" : "Sources/SwiftUIPHPicker",
      "product_memberships" : [
        "SwiftUIPHPicker"
      ],
      "sources" : [
        "FileManager+Extensions.swift",
        "NSItemProvider+Extensions.swift",
        "PHImage.swift",
        "PHPicker+EnvironmentValues.swift",
        "PHPicker+PresentationModifier.swift",
        "PHPicker.swift",
        "PHSelectedObject.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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/10] Compiling SwiftUIPHPicker PHSelectedObject.swift
[4/10] Compiling SwiftUIPHPicker PHImage.swift
[5/10] Compiling SwiftUIPHPicker PHPicker+PresentationModifier.swift
[6/10] Compiling SwiftUIPHPicker PHPicker.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker.swift:36:9: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 33 |     }
 34 |
 35 |     public func makeCoordinator() -> Coordinator {
    |                 `- note: add '@MainActor' to make instance method 'makeCoordinator()' part of global actor 'MainActor'
 36 |         Coordinator(self)
    |         `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 37 |     }
 38 | }
    :
 74 |         var parent: PHPicker
 75 |
 76 |         init(_ parent: PHPicker) {
    |         |- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
    |         `- note: main actor isolation inferred from conformance to protocol 'PHPickerViewControllerDelegate'
 77 |             self.parent = parent
 78 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker.swift:98:48: warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 96 |             Task { [keepLivePhotosIntact, destinationHandler] in
 97 |                 do {
 98 |                     let selections = try await withThrowingTaskGroup(of: PHSelectedObject?.self,
    |                                                `- warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 99 |                                                                      returning: [PHSelectedObject].self) { taskGroup in
100 |                         for result in results {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHSelectedObject.swift:12:13: note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
10 |
11 | /// A container type for storing different types of resulting selections from ``PHPicker``.
12 | public enum PHSelectedObject: Hashable {
   |             `- note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
13 |     /// Contains a ``PHPicker/PHImage`` (which is just `NSImage` on macOS and `UIImage` on iOS/macCatalyst).
14 |     case photo(fileName: String?, image: PHPicker.PHImage)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker.swift:99:106: warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 97 |                 do {
 98 |                     let selections = try await withThrowingTaskGroup(of: PHSelectedObject?.self,
 99 |                                                                      returning: [PHSelectedObject].self) { taskGroup in
    |                                                                                                          `- warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
100 |                         for result in results {
101 |                             taskGroup.addTask {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHSelectedObject.swift:12:13: note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
10 |
11 | /// A container type for storing different types of resulting selections from ``PHPicker``.
12 | public enum PHSelectedObject: Hashable {
   |             `- note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
13 |     /// Contains a ``PHPicker/PHImage`` (which is just `NSImage` on macOS and `UIImage` on iOS/macCatalyst).
14 |     case photo(fileName: String?, image: PHPicker.PHImage)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker.swift:101:39: warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 99 |                                                                      returning: [PHSelectedObject].self) { taskGroup in
100 |                         for result in results {
101 |                             taskGroup.addTask {
    |                                       `- warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
102 |                                 let provider = result.itemProvider
103 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHSelectedObject.swift:12:13: note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
10 |
11 | /// A container type for storing different types of resulting selections from ``PHPicker``.
12 | public enum PHSelectedObject: Hashable {
   |             `- note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
13 |     /// Contains a ``PHPicker/PHImage`` (which is just `NSImage` on macOS and `UIImage` on iOS/macCatalyst).
14 |     case photo(fileName: String?, image: PHPicker.PHImage)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker.swift:141:30: warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
139 |
140 |                         return try await taskGroup
141 |                             .compactMap { $0 }
    |                              `- warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
142 |                             .reduce(into: []) { $0.append($1) }
143 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHSelectedObject.swift:12:13: note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
10 |
11 | /// A container type for storing different types of resulting selections from ``PHPicker``.
12 | public enum PHSelectedObject: Hashable {
   |             `- note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
13 |     /// Contains a ``PHPicker/PHImage`` (which is just `NSImage` on macOS and `UIImage` on iOS/macCatalyst).
14 |     case photo(fileName: String?, image: PHPicker.PHImage)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker.swift:141:41: warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
139 |
140 |                         return try await taskGroup
141 |                             .compactMap { $0 }
    |                                         `- warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
142 |                             .reduce(into: []) { $0.append($1) }
143 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHSelectedObject.swift:12:13: note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
10 |
11 | /// A container type for storing different types of resulting selections from ``PHPicker``.
12 | public enum PHSelectedObject: Hashable {
   |             `- note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
13 |     /// Contains a ``PHPicker/PHImage`` (which is just `NSImage` on macOS and `UIImage` on iOS/macCatalyst).
14 |     case photo(fileName: String?, image: PHPicker.PHImage)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker.swift:141:41: warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
139 |
140 |                         return try await taskGroup
141 |                             .compactMap { $0 }
    |                                         `- warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
142 |                             .reduce(into: []) { $0.append($1) }
143 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHSelectedObject.swift:12:13: note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
10 |
11 | /// A container type for storing different types of resulting selections from ``PHPicker``.
12 | public enum PHSelectedObject: Hashable {
   |             `- note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
13 |     /// Contains a ``PHPicker/PHImage`` (which is just `NSImage` on macOS and `UIImage` on iOS/macCatalyst).
14 |     case photo(fileName: String?, image: PHPicker.PHImage)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker.swift:141:41: warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
139 |
140 |                         return try await taskGroup
141 |                             .compactMap { $0 }
    |                                         `- warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
142 |                             .reduce(into: []) { $0.append($1) }
143 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHSelectedObject.swift:12:13: note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
10 |
11 | /// A container type for storing different types of resulting selections from ``PHPicker``.
12 | public enum PHSelectedObject: Hashable {
   |             `- note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
13 |     /// Contains a ``PHPicker/PHImage`` (which is just `NSImage` on macOS and `UIImage` on iOS/macCatalyst).
14 |     case photo(fileName: String?, image: PHPicker.PHImage)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker.swift:141:41: warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
139 |
140 |                         return try await taskGroup
141 |                             .compactMap { $0 }
    |                                         `- warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
142 |                             .reduce(into: []) { $0.append($1) }
143 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHSelectedObject.swift:12:13: note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
10 |
11 | /// A container type for storing different types of resulting selections from ``PHPicker``.
12 | public enum PHSelectedObject: Hashable {
   |             `- note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
13 |     /// Contains a ``PHPicker/PHImage`` (which is just `NSImage` on macOS and `UIImage` on iOS/macCatalyst).
14 |     case photo(fileName: String?, image: PHPicker.PHImage)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker.swift:142:30: warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
140 |                         return try await taskGroup
141 |                             .compactMap { $0 }
142 |                             .reduce(into: []) { $0.append($1) }
    |                              `- warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
143 |                     }
144 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHSelectedObject.swift:12:13: note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
10 |
11 | /// A container type for storing different types of resulting selections from ``PHPicker``.
12 | public enum PHSelectedObject: Hashable {
   |             `- note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
13 |     /// Contains a ``PHPicker/PHImage`` (which is just `NSImage` on macOS and `UIImage` on iOS/macCatalyst).
14 |     case photo(fileName: String?, image: PHPicker.PHImage)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker.swift:142:47: warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
140 |                         return try await taskGroup
141 |                             .compactMap { $0 }
142 |                             .reduce(into: []) { $0.append($1) }
    |                                               `- warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
143 |                     }
144 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHSelectedObject.swift:12:13: note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
10 |
11 | /// A container type for storing different types of resulting selections from ``PHPicker``.
12 | public enum PHSelectedObject: Hashable {
   |             `- note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
13 |     /// Contains a ``PHPicker/PHImage`` (which is just `NSImage` on macOS and `UIImage` on iOS/macCatalyst).
14 |     case photo(fileName: String?, image: PHPicker.PHImage)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker.swift:142:47: warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
140 |                         return try await taskGroup
141 |                             .compactMap { $0 }
142 |                             .reduce(into: []) { $0.append($1) }
    |                                               `- warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
143 |                     }
144 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHSelectedObject.swift:12:13: note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
10 |
11 | /// A container type for storing different types of resulting selections from ``PHPicker``.
12 | public enum PHSelectedObject: Hashable {
   |             `- note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
13 |     /// Contains a ``PHPicker/PHImage`` (which is just `NSImage` on macOS and `UIImage` on iOS/macCatalyst).
14 |     case photo(fileName: String?, image: PHPicker.PHImage)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker.swift:142:47: warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
140 |                         return try await taskGroup
141 |                             .compactMap { $0 }
142 |                             .reduce(into: []) { $0.append($1) }
    |                                               `- warning: type 'PHSelectedObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
143 |                     }
144 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHSelectedObject.swift:12:13: note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
10 |
11 | /// A container type for storing different types of resulting selections from ``PHPicker``.
12 | public enum PHSelectedObject: Hashable {
   |             `- note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
13 |     /// Contains a ``PHPicker/PHImage`` (which is just `NSImage` on macOS and `UIImage` on iOS/macCatalyst).
14 |     case photo(fileName: String?, image: PHPicker.PHImage)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker.swift:142:30: warning: non-sendable result type '[PHSelectedObject]' cannot be sent from nonisolated context in call to instance method 'reduce(into:_:)'; this is an error in the Swift 6 language mode
140 |                         return try await taskGroup
141 |                             .compactMap { $0 }
142 |                             .reduce(into: []) { $0.append($1) }
    |                              `- warning: non-sendable result type '[PHSelectedObject]' cannot be sent from nonisolated context in call to instance method 'reduce(into:_:)'; this is an error in the Swift 6 language mode
143 |                     }
144 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHSelectedObject.swift:12:13: note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
10 |
11 | /// A container type for storing different types of resulting selections from ``PHPicker``.
12 | public enum PHSelectedObject: Hashable {
   |             `- note: consider making enum 'PHSelectedObject' conform to the 'Sendable' protocol
13 |     /// Contains a ``PHPicker/PHImage`` (which is just `NSImage` on macOS and `UIImage` on iOS/macCatalyst).
14 |     case photo(fileName: String?, image: PHPicker.PHImage)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker.swift:36:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 34 |
 35 |     public func makeCoordinator() -> Coordinator {
 36 |         Coordinator(self)
    |         |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: sending task-isolated 'self' to main actor-isolated initializer 'init(_:)' risks causing data races between main actor-isolated and task-isolated uses
 37 |     }
 38 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker.swift:101:47: warning: passing closure as a 'sending' parameter risks causing data races between main actor-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
 99 |                                                                      returning: [PHSelectedObject].self) { taskGroup in
100 |                         for result in results {
101 |                             taskGroup.addTask {
    |                                               `- warning: passing closure as a 'sending' parameter risks causing data races between main actor-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
102 |                                 let provider = result.itemProvider
    |                                                `- note: closure captures non-Sendable 'result'
103 |
104 |                                 // Define functions for platform-specific behavior
    :
126 |                                 } else if provider.hasItemConformingToTypeIdentifier(UTType.movie.identifier) {
127 |                                     // TODO: This path needs testing
128 |                                     guard let destinationHandler else { return nil }
    |                                               `- note: closure captures non-Sendable 'destinationHandler'
129 |
130 |                                     let url = try await provider.loadFileRepresentation(forTypeIdentifier: UTType.movie.identifier, destinationHandler: destinationHandler)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker.swift:142:30: warning: sending value of non-Sendable type '(inout [PHSelectedObject], AsyncCompactMapSequence<ThrowingTaskGroup<PHSelectedObject?, any Error>, PHSelectedObject>.Element) async -> Void' (aka '(inout Array<PHSelectedObject>, PHSelectedObject) async -> ()') risks causing data races; this is an error in the Swift 6 language mode
140 |                         return try await taskGroup
141 |                             .compactMap { $0 }
142 |                             .reduce(into: []) { $0.append($1) }
    |                              |- warning: sending value of non-Sendable type '(inout [PHSelectedObject], AsyncCompactMapSequence<ThrowingTaskGroup<PHSelectedObject?, any Error>, PHSelectedObject>.Element) async -> Void' (aka '(inout Array<PHSelectedObject>, PHSelectedObject) async -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                              `- note: sending main actor-isolated value of non-Sendable type '(inout [PHSelectedObject], AsyncCompactMapSequence<ThrowingTaskGroup<PHSelectedObject?, any Error>, PHSelectedObject>.Element) async -> Void' (aka '(inout Array<PHSelectedObject>, PHSelectedObject) async -> ()') to nonisolated callee risks causing races in between main actor-isolated and nonisolated uses
143 |                     }
144 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker.swift:142:30: warning: sending value of non-Sendable type 'AsyncCompactMapSequence<ThrowingTaskGroup<PHSelectedObject?, any Error>, PHSelectedObject>' risks causing data races; this is an error in the Swift 6 language mode
140 |                         return try await taskGroup
141 |                             .compactMap { $0 }
142 |                             .reduce(into: []) { $0.append($1) }
    |                              |- warning: sending value of non-Sendable type 'AsyncCompactMapSequence<ThrowingTaskGroup<PHSelectedObject?, any Error>, PHSelectedObject>' risks causing data races; this is an error in the Swift 6 language mode
    |                              `- note: sending main actor-isolated value of non-Sendable type 'AsyncCompactMapSequence<ThrowingTaskGroup<PHSelectedObject?, any Error>, PHSelectedObject>' to nonisolated callee risks causing races in between main actor-isolated and nonisolated uses
143 |                     }
144 |
[7/10] Compiling SwiftUIPHPicker FileManager+Extensions.swift
[8/10] Compiling SwiftUIPHPicker NSItemProvider+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/NSItemProvider+Extensions.swift:18:28: warning: capture of 'destinationHandler' with non-sendable type '((URL) -> URL?)?' in a '@Sendable' closure
16 |             loadFileRepresentation(forTypeIdentifier: typeIdentifier) { (url, error) in
17 |                 if let url {
18 |                     if let destinationHandler,
   |                            |- warning: capture of 'destinationHandler' with non-sendable type '((URL) -> URL?)?' in a '@Sendable' closure
   |                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
19 |                        let newURL = destinationHandler(url),
20 |                        FileManager.default.secureCopyItem(at: url, to: newURL) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/NSItemProvider+Extensions.swift:38:34: warning: sending value of non-Sendable type 'T' risks causing data races; this is an error in the Swift 6 language mode
36 |             loadObject(ofClass: aClass.self) { object, error in
37 |                 if let object {
38 |                     continuation.resume(returning: object as! T)
   |                                  |- warning: sending value of non-Sendable type 'T' risks causing data races; this is an error in the Swift 6 language mode
   |                                  `- note: Passing task-isolated value of non-Sendable type 'T' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
39 |                 } else if let error {
40 |                     continuation.resume(throwing: error)
[9/10] Compiling SwiftUIPHPicker PHPicker+EnvironmentValues.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker+EnvironmentValues.swift:27:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((URL) -> URL?)?' may have shared mutable state; this is an error in the Swift 6 language mode
 25 |
 26 | private struct PHPickerVideoDestinationEnvironmentKey: EnvironmentKey {
 27 |     static let defaultValue: ((URL) -> URL?)? = nil
    |                |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((URL) -> URL?)?' 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
 28 | }
 29 |
[10/10] Emitting module SwiftUIPHPicker
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker+EnvironmentValues.swift:27:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((URL) -> URL?)?' may have shared mutable state; this is an error in the Swift 6 language mode
 25 |
 26 | private struct PHPickerVideoDestinationEnvironmentKey: EnvironmentKey {
 27 |     static let defaultValue: ((URL) -> URL?)? = nil
    |                |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((URL) -> URL?)?' 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
 28 | }
 29 |
Build complete! (8.71s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftUIPHPicker",
  "name" : "SwiftUIPHPicker",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftUIPHPicker",
      "targets" : [
        "SwiftUIPHPicker"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftUIPHPickerTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftUIPHPickerTests",
      "path" : "Tests/SwiftUIPHPickerTests",
      "sources" : [
        "SwiftUIPHPickerTests.swift"
      ],
      "target_dependencies" : [
        "SwiftUIPHPicker"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftUIPHPicker",
      "module_type" : "SwiftTarget",
      "name" : "SwiftUIPHPicker",
      "path" : "Sources/SwiftUIPHPicker",
      "product_memberships" : [
        "SwiftUIPHPicker"
      ],
      "sources" : [
        "FileManager+Extensions.swift",
        "NSItemProvider+Extensions.swift",
        "PHImage.swift",
        "PHPicker+EnvironmentValues.swift",
        "PHPicker+PresentationModifier.swift",
        "PHPicker.swift",
        "PHSelectedObject.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.