This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.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: $workDir/.spi.yml
SUCCESS checkout https://github.com/edonv/SwiftUIPHPicker.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/edonv/SwiftUIPHPicker.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[3/10] Compiling SwiftUIPHPicker PHImage.swift
[4/10] Compiling SwiftUIPHPicker PHPicker+EnvironmentValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker+EnvironmentValues.swift:14:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'PHPickerConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 | private struct PHPickerConfigurationEnvironmentKey: EnvironmentKey {
 14 |     static let defaultValue: PHPickerConfiguration = .init(photoLibrary: .shared())
    |                `- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'PHPickerConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 15 | }
 16 |
PhotosUI.PHPickerConfiguration:4:15: note: struct 'PHPickerConfiguration' does not conform to the 'Sendable' protocol
 2 | @available(watchOS, unavailable)
 3 | @available(tvOS, unavailable)
 4 | public struct PHPickerConfiguration : Equatable, Hashable {
   |               `- note: struct 'PHPickerConfiguration' does not conform to the 'Sendable' protocol
 5 |     public enum AssetRepresentationMode {
 6 |         case automatic
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker+EnvironmentValues.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PhotosUI'
  7 |
  8 | import SwiftUI
  9 | import PhotosUI
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PhotosUI'
 10 |
 11 | // MARK: - PHPickerConfigurationEnvironmentKey
 12 |
 13 | private struct PHPickerConfigurationEnvironmentKey: EnvironmentKey {
 14 |     static let defaultValue: PHPickerConfiguration = .init(photoLibrary: .shared())
    |                |- note: annotate 'defaultValue' 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
 15 | }
 16 |
<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: annotate 'defaultValue' 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
 28 | }
 29 |
[5/10] Compiling SwiftUIPHPicker FileManager+Extensions.swift
[6/10] Emitting module SwiftUIPHPicker
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker+EnvironmentValues.swift:14:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'PHPickerConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 | private struct PHPickerConfigurationEnvironmentKey: EnvironmentKey {
 14 |     static let defaultValue: PHPickerConfiguration = .init(photoLibrary: .shared())
    |                `- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'PHPickerConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 15 | }
 16 |
PhotosUI.PHPickerConfiguration:4:15: note: struct 'PHPickerConfiguration' does not conform to the 'Sendable' protocol
 2 | @available(watchOS, unavailable)
 3 | @available(tvOS, unavailable)
 4 | public struct PHPickerConfiguration : Equatable, Hashable {
   |               `- note: struct 'PHPickerConfiguration' does not conform to the 'Sendable' protocol
 5 |     public enum AssetRepresentationMode {
 6 |         case automatic
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker+EnvironmentValues.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PhotosUI'
  7 |
  8 | import SwiftUI
  9 | import PhotosUI
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PhotosUI'
 10 |
 11 | // MARK: - PHPickerConfigurationEnvironmentKey
 12 |
 13 | private struct PHPickerConfigurationEnvironmentKey: EnvironmentKey {
 14 |     static let defaultValue: PHPickerConfiguration = .init(photoLibrary: .shared())
    |                |- note: annotate 'defaultValue' 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
 15 | }
 16 |
<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: annotate 'defaultValue' 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
 28 | }
 29 |
[7/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
   |                            `- 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) {
[8/10] Compiling SwiftUIPHPicker PHPicker+PresentationModifier.swift
[9/10] Compiling SwiftUIPHPicker PHSelectedObject.swift
[10/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
 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:102:48: warning: capture of 'result' with non-sendable type 'PHPickerResult' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 |                         for result in results {
101 |                             taskGroup.addTask {
102 |                                 let provider = result.itemProvider
    |                                                `- warning: capture of 'result' with non-sendable type 'PHPickerResult' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 |
104 |                                 // Define functions for platform-specific behavior
PhotosUI.PHPickerResult:4:15: note: struct 'PHPickerResult' does not conform to the 'Sendable' protocol
 2 | @available(watchOS, unavailable)
 3 | @available(tvOS, unavailable)
 4 | public struct PHPickerResult : Equatable, Hashable {
   |               `- note: struct 'PHPickerResult' does not conform to the 'Sendable' protocol
 5 |     public let itemProvider: NSItemProvider
 6 |     public var assetIdentifier: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PhotosUI'
  6 | //
  7 |
  8 | import PhotosUI
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PhotosUI'
  9 | import SwiftUI
 10 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker.swift:128:47: warning: capture of 'destinationHandler' with non-sendable type '((URL) -> URL?)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
126 |                                 } else if provider.hasItemConformingToTypeIdentifier(UTType.movie.identifier) {
127 |                                     // TODO: This path needs testing
128 |                                     guard let destinationHandler else { return nil }
    |                                               |- warning: capture of 'destinationHandler' with non-sendable type '((URL) -> URL?)?' 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'
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: non-sendable type '[PHSelectedObject]' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; 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 type '[PHSelectedObject]' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; 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:142:30: warning: sending main actor-isolated value of type '(inout [PHSelectedObject], PHSelectedObject) async -> Void' with later accesses to nonisolated context 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 main actor-isolated value of type '(inout [PHSelectedObject], PHSelectedObject) async -> Void' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
143 |                     }
144 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPHPicker/PHPicker.swift:142:30: warning: sending main actor-isolated value of type 'AsyncCompactMapSequence<ThrowingTaskGroup<PHSelectedObject?, any Error>, PHSelectedObject>' with later accesses to nonisolated context 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 main actor-isolated value of type 'AsyncCompactMapSequence<ThrowingTaskGroup<PHSelectedObject?, any Error>, PHSelectedObject>' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
143 |                     }
144 |
Build complete! (40.98s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.