The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MediaBridge, reference 0.9.2 (a9c5c3), with Swift 6.0 for macOS (SPM) on 9 Mar 2026 01:03:09 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64

Build Log

399 |         comparisonType: MPMediaPredicateComparison
400 |     ) async throws -> [MPMediaItem] {
    |                        `- error: 'MPMediaItem' is unavailable in macOS
401 |         try await songs(matching: predicate, comparisonType: comparisonType)
402 |     }
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:408:27: error: 'MPMediaPredicateComparison' is unavailable in macOS
406 |         _ type: MPMediaType,
407 |         with predicate: MediaItemPredicateInfo,
408 |         _ comparisonType: MPMediaPredicateComparison,
    |                           `- error: 'MPMediaPredicateComparison' is unavailable in macOS
409 |         groupingType: MPMediaGrouping
410 |     ) async throws -> [MPMediaItem] {
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:409:23: error: 'MPMediaGrouping' is unavailable in macOS
407 |         with predicate: MediaItemPredicateInfo,
408 |         _ comparisonType: MPMediaPredicateComparison,
409 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
410 |     ) async throws -> [MPMediaItem] {
411 |         try await mediaItems(ofType: type, matching: predicate, comparisonType, groupingType: groupingType)
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:410:24: error: 'MPMediaItem' is unavailable in macOS
408 |         _ comparisonType: MPMediaPredicateComparison,
409 |         groupingType: MPMediaGrouping
410 |     ) async throws -> [MPMediaItem] {
    |                        `- error: 'MPMediaItem' is unavailable in macOS
411 |         try await mediaItems(ofType: type, matching: predicate, comparisonType, groupingType: groupingType)
412 |     }
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:429:42: error: 'MPMediaItem' is unavailable in macOS
427 |     /// let allSongs = try await library.songs()
428 |     /// ```
429 |     public func songs() async throws -> [MPMediaItem] {
    |                                          `- error: 'MPMediaItem' is unavailable in macOS
430 |         return try await songs(sortedBy: SortKey<MPMediaItem, Never>?.none, order: .forward)
431 |     }
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:446:43: error: 'MPMediaItemCollection' is unavailable in macOS
444 |     /// let allAlbums = try await library.albums()
445 |     /// ```
446 |     public func albums() async throws -> [MPMediaItemCollection] {
    |                                           `- error: 'MPMediaItemCollection' is unavailable in macOS
447 |         return try await albums(sortedBy: SortKey<MPMediaItemCollection, Never>?.none, order: .reverse)
448 |     }
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:463:44: error: 'MPMediaItemCollection' is unavailable in macOS
461 |     /// let allArtists = try await library.artists()
462 |     /// ```
463 |     public func artists() async throws -> [MPMediaItemCollection] {
    |                                            `- error: 'MPMediaItemCollection' is unavailable in macOS
464 |         return try await artists(sortedBy: SortKey<MPMediaItemCollection, Never>?.none, order: .reverse)
465 |     }
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:480:46: error: 'MPMediaPlaylist' is unavailable in macOS
478 |     /// let allPlaylists = try await library.playlists()
479 |     /// ```
480 |     public func playlists() async throws -> [MPMediaPlaylist] {
    |                                              `- error: 'MPMediaPlaylist' is unavailable in macOS
481 |         return try await playlists(sortedBy: SortKey<MPMediaPlaylist, Never>?.none, order: .forward)
482 |     }
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:499:47: error: 'MPMediaItem' is unavailable in macOS
497 |     /// let allSongs = try await library.fetchSongs()
498 |     /// ```
499 |     public func fetchSongs() async throws -> [MPMediaItem] {
    |                                               `- error: 'MPMediaItem' is unavailable in macOS
500 |         return try await songs()
501 |     }
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:523:25: error: 'MPMediaPredicateComparison' is unavailable in macOS
521 |     public func fetchSong(
522 |         with predicate: MediaItemPredicateInfo,
523 |         comparisonType: MPMediaPredicateComparison = .equalTo
    |                         `- error: 'MPMediaPredicateComparison' is unavailable in macOS
524 |     ) async throws -> [MPMediaItem] {
525 |         return try await songs(matching: predicate, comparisonType: comparisonType)
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:524:24: error: 'MPMediaItem' is unavailable in macOS
522 |         with predicate: MediaItemPredicateInfo,
523 |         comparisonType: MPMediaPredicateComparison = .equalTo
524 |     ) async throws -> [MPMediaItem] {
    |                        `- error: 'MPMediaItem' is unavailable in macOS
525 |         return try await songs(matching: predicate, comparisonType: comparisonType)
526 |     }
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:430:50: error: 'MPMediaItem' is unavailable in macOS
428 |     /// ```
429 |     public func songs() async throws -> [MPMediaItem] {
430 |         return try await songs(sortedBy: SortKey<MPMediaItem, Never>?.none, order: .forward)
    |                                                  `- error: 'MPMediaItem' is unavailable in macOS
431 |     }
432 |
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:447:51: error: 'MPMediaItemCollection' is unavailable in macOS
445 |     /// ```
446 |     public func albums() async throws -> [MPMediaItemCollection] {
447 |         return try await albums(sortedBy: SortKey<MPMediaItemCollection, Never>?.none, order: .reverse)
    |                                                   `- error: 'MPMediaItemCollection' is unavailable in macOS
448 |     }
449 |
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:464:52: error: 'MPMediaItemCollection' is unavailable in macOS
462 |     /// ```
463 |     public func artists() async throws -> [MPMediaItemCollection] {
464 |         return try await artists(sortedBy: SortKey<MPMediaItemCollection, Never>?.none, order: .reverse)
    |                                                    `- error: 'MPMediaItemCollection' is unavailable in macOS
465 |     }
466 |
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:481:54: error: 'MPMediaPlaylist' is unavailable in macOS
479 |     /// ```
480 |     public func playlists() async throws -> [MPMediaPlaylist] {
481 |         return try await playlists(sortedBy: SortKey<MPMediaPlaylist, Never>?.none, order: .forward)
    |                                                      `- error: 'MPMediaPlaylist' is unavailable in macOS
482 |     }
483 |
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
[11/21] Compiling MediaBridge MusicLibraryProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:406:5: error: unexpected ',' separator
404 |         with predicate: MediaItemPredicateInfo,
405 |         comparisonType: MPMediaPredicateComparison,
406 |     ) async throws -> [MPMediaItem] {
    |     `- error: unexpected ',' separator
407 |         return try await songs(matching: predicate, comparisonType: comparisonType)
408 |     }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:68:37: error: 'MPMediaLibraryAuthorizationStatus' is unavailable in macOS
 66 |     private let service: any MusicLibraryServiceProtocol
 67 |
 68 |     public var authorizationStatus: MPMediaLibraryAuthorizationStatus {
    |                                     `- error: 'MPMediaLibraryAuthorizationStatus' is unavailable in macOS
 69 |         auth.status()
 70 |     }
MediaPlayer.MPMediaLibraryAuthorizationStatus:2:13: note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaLibraryAuthorizationStatus : Int, @unchecked Sendable {
   |             `- note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:116:56: error: 'MPMediaLibraryAuthorizationStatus' is unavailable in macOS
114 |     /// - Throws: ``AuthorizationManagerError/unauthorized(_:)`` if the request fails or is denied
115 |     @discardableResult
116 |     public func requestAuthorization() async throws -> MPMediaLibraryAuthorizationStatus {
    |                                                        `- error: 'MPMediaLibraryAuthorizationStatus' is unavailable in macOS
117 |         try await auth.authorize()
118 |     }
MediaPlayer.MPMediaLibraryAuthorizationStatus:2:13: note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaLibraryAuthorizationStatus : Int, @unchecked Sendable {
   |             `- note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:133:61: error: 'MPMediaGrouping' is unavailable in macOS
131 |     /// - Throws: ``AuthorizationManagerError/unauthorized(_:)`` if music library access is not authorized,
132 |     ///   or ``MusicLibraryServiceError/noItemsFound`` if no items are found
133 |     public func fetchAll(_ type: MPMediaType, groupingType: MPMediaGrouping) async throws -> [MPMediaItem] {
    |                                                             `- error: 'MPMediaGrouping' is unavailable in macOS
134 |         try await checkIfAuthorized()
135 |         return try await service.fetchAll(type, groupingType: groupingType)
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:133:95: error: 'MPMediaItem' is unavailable in macOS
131 |     /// - Throws: ``AuthorizationManagerError/unauthorized(_:)`` if music library access is not authorized,
132 |     ///   or ``MusicLibraryServiceError/noItemsFound`` if no items are found
133 |     public func fetchAll(_ type: MPMediaType, groupingType: MPMediaGrouping) async throws -> [MPMediaItem] {
    |                                                                                               `- error: 'MPMediaItem' is unavailable in macOS
134 |         try await checkIfAuthorized()
135 |         return try await service.fetchAll(type, groupingType: groupingType)
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:155:27: error: 'MPMediaPredicateComparison' is unavailable in macOS
153 |         ofType type: MPMediaType,
154 |         matching predicate: MediaItemPredicateInfo,
155 |         _ comparisonType: MPMediaPredicateComparison,
    |                           `- error: 'MPMediaPredicateComparison' is unavailable in macOS
156 |         groupingType: MPMediaGrouping
157 |     ) async throws -> [MPMediaItem] {
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:156:23: error: 'MPMediaGrouping' is unavailable in macOS
154 |         matching predicate: MediaItemPredicateInfo,
155 |         _ comparisonType: MPMediaPredicateComparison,
156 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
157 |     ) async throws -> [MPMediaItem] {
158 |         try await checkIfAuthorized()
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:157:24: error: 'MPMediaItem' is unavailable in macOS
155 |         _ comparisonType: MPMediaPredicateComparison,
156 |         groupingType: MPMediaGrouping
157 |     ) async throws -> [MPMediaItem] {
    |                        `- error: 'MPMediaItem' is unavailable in macOS
158 |         try await checkIfAuthorized()
159 |         return try await service.fetch(type, with: predicate, comparisonType: comparisonType, groupingType: groupingType)
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:179:27: error: 'MPMediaPredicateComparison' is unavailable in macOS
177 |         ofType type: MPMediaType,
178 |         matching predicate: MediaItemPredicateInfo,
179 |         _ comparisonType: MPMediaPredicateComparison,
    |                           `- error: 'MPMediaPredicateComparison' is unavailable in macOS
180 |         groupingType: MPMediaGrouping
181 |     ) async throws -> [MPMediaItemCollection] {
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:180:23: error: 'MPMediaGrouping' is unavailable in macOS
178 |         matching predicate: MediaItemPredicateInfo,
179 |         _ comparisonType: MPMediaPredicateComparison,
180 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
181 |     ) async throws -> [MPMediaItemCollection] {
182 |         try await checkIfAuthorized()
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:181:24: error: 'MPMediaItemCollection' is unavailable in macOS
179 |         _ comparisonType: MPMediaPredicateComparison,
180 |         groupingType: MPMediaGrouping
181 |     ) async throws -> [MPMediaItemCollection] {
    |                        `- error: 'MPMediaItemCollection' is unavailable in macOS
182 |         try await checkIfAuthorized()
183 |         return try await service.fetchCollections(type, with: predicate, comparisonType: comparisonType, groupingType: groupingType)
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:189:38: error: 'MPMediaItem' is unavailable in macOS
187 |
188 |     public func songs<T: Comparable>(
189 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
    |                                      `- error: 'MPMediaItem' is unavailable in macOS
190 |         order: SortOrder
191 |     ) async throws -> [MPMediaItem] {
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:190:16: error: 'SortOrder' is only available in macOS 12.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
186 |     // MARK: - Specific calls
187 |
188 |     public func songs<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
189 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
190 |         order: SortOrder
    |                `- error: 'SortOrder' is only available in macOS 12.0 or newer
191 |     ) async throws -> [MPMediaItem] {
192 |         #if DEBUG
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:191:24: error: 'MPMediaItem' is unavailable in macOS
189 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
190 |         order: SortOrder
191 |     ) async throws -> [MPMediaItem] {
    |                        `- error: 'MPMediaItem' is unavailable in macOS
192 |         #if DEBUG
193 |             let start = Date()
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:220:38: error: 'MPMediaItemCollection' is unavailable in macOS
218 |
219 |     public func albums<T: Comparable>(
220 |         sortedBy sortingKey: SortKey<MPMediaItemCollection, T>?,
    |                                      `- error: 'MPMediaItemCollection' is unavailable in macOS
221 |         order: SortOrder
222 |     ) async throws -> [MPMediaItemCollection] {
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:221:16: error: 'SortOrder' is only available in macOS 12.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
217 |     }
218 |
219 |     public func albums<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
220 |         sortedBy sortingKey: SortKey<MPMediaItemCollection, T>?,
221 |         order: SortOrder
    |                `- error: 'SortOrder' is only available in macOS 12.0 or newer
222 |     ) async throws -> [MPMediaItemCollection] {
223 |         try await checkIfAuthorized()
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:222:24: error: 'MPMediaItemCollection' is unavailable in macOS
220 |         sortedBy sortingKey: SortKey<MPMediaItemCollection, T>?,
221 |         order: SortOrder
222 |     ) async throws -> [MPMediaItemCollection] {
    |                        `- error: 'MPMediaItemCollection' is unavailable in macOS
223 |         try await checkIfAuthorized()
224 |         let albums = try await service.fetchAllCollections(.music, groupingType: .album)
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:236:25: error: 'MPMediaPredicateComparison' is unavailable in macOS
234 |     public func songs(
235 |         matching predicate: MediaItemPredicateInfo,
236 |         comparisonType: MPMediaPredicateComparison
    |                         `- error: 'MPMediaPredicateComparison' is unavailable in macOS
237 |     ) async throws -> [MPMediaItem] {
238 |         return try await mediaItems(ofType: .music, matching: predicate, comparisonType, groupingType: .title)
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:237:24: error: 'MPMediaItem' is unavailable in macOS
235 |         matching predicate: MediaItemPredicateInfo,
236 |         comparisonType: MPMediaPredicateComparison
237 |     ) async throws -> [MPMediaItem] {
    |                        `- error: 'MPMediaItem' is unavailable in macOS
238 |         return try await mediaItems(ofType: .music, matching: predicate, comparisonType, groupingType: .title)
239 |     }
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:266:27: error: 'MPMediaPredicateComparison' is unavailable in macOS
264 |     public func albums(
265 |         matching predicate: MediaItemPredicateInfo,
266 |         _ comparisonType: MPMediaPredicateComparison,
    |                           `- error: 'MPMediaPredicateComparison' is unavailable in macOS
267 |         groupingType: MPMediaGrouping
268 |     ) async throws -> [MPMediaItemCollection] {
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:267:23: error: 'MPMediaGrouping' is unavailable in macOS
265 |         matching predicate: MediaItemPredicateInfo,
266 |         _ comparisonType: MPMediaPredicateComparison,
267 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
268 |     ) async throws -> [MPMediaItemCollection] {
269 |         return try await mediaItemCollections(ofType: .music, matching: predicate, comparisonType, groupingType: groupingType)
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:268:24: error: 'MPMediaItemCollection' is unavailable in macOS
266 |         _ comparisonType: MPMediaPredicateComparison,
267 |         groupingType: MPMediaGrouping
268 |     ) async throws -> [MPMediaItemCollection] {
    |                        `- error: 'MPMediaItemCollection' is unavailable in macOS
269 |         return try await mediaItemCollections(ofType: .music, matching: predicate, comparisonType, groupingType: groupingType)
270 |     }
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:273:38: error: 'MPMediaItemCollection' is unavailable in macOS
271 |
272 |     public func artists<T: Comparable>(
273 |         sortedBy sortingKey: SortKey<MPMediaItemCollection, T>?,
    |                                      `- error: 'MPMediaItemCollection' is unavailable in macOS
274 |         order: SortOrder
275 |     ) async throws -> [MPMediaItemCollection] {
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:274:16: error: 'SortOrder' is only available in macOS 12.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
270 |     }
271 |
272 |     public func artists<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
273 |         sortedBy sortingKey: SortKey<MPMediaItemCollection, T>?,
274 |         order: SortOrder
    |                `- error: 'SortOrder' is only available in macOS 12.0 or newer
275 |     ) async throws -> [MPMediaItemCollection] {
276 |         try await checkIfAuthorized()
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:275:24: error: 'MPMediaItemCollection' is unavailable in macOS
273 |         sortedBy sortingKey: SortKey<MPMediaItemCollection, T>?,
274 |         order: SortOrder
275 |     ) async throws -> [MPMediaItemCollection] {
    |                        `- error: 'MPMediaItemCollection' is unavailable in macOS
276 |         try await checkIfAuthorized()
277 |         let artists = try await service.fetchAllCollections(.music, groupingType: .artist)
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:312:27: error: 'MPMediaPredicateComparison' is unavailable in macOS
310 |     public func artists(
311 |         matching predicate: MediaItemPredicateInfo,
312 |         _ comparisonType: MPMediaPredicateComparison,
    |                           `- error: 'MPMediaPredicateComparison' is unavailable in macOS
313 |         groupingType: MPMediaGrouping
314 |     ) async throws -> [MPMediaItemCollection] {
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:313:23: error: 'MPMediaGrouping' is unavailable in macOS
311 |         matching predicate: MediaItemPredicateInfo,
312 |         _ comparisonType: MPMediaPredicateComparison,
313 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
314 |     ) async throws -> [MPMediaItemCollection] {
315 |         return try await mediaItemCollections(ofType: .music, matching: predicate, comparisonType, groupingType: groupingType)
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:314:24: error: 'MPMediaItemCollection' is unavailable in macOS
312 |         _ comparisonType: MPMediaPredicateComparison,
313 |         groupingType: MPMediaGrouping
314 |     ) async throws -> [MPMediaItemCollection] {
    |                        `- error: 'MPMediaItemCollection' is unavailable in macOS
315 |         return try await mediaItemCollections(ofType: .music, matching: predicate, comparisonType, groupingType: groupingType)
316 |     }
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:319:38: error: 'MPMediaPlaylist' is unavailable in macOS
317 |
318 |     public func playlists<T: Comparable>(
319 |         sortedBy sortingKey: SortKey<MPMediaPlaylist, T>?,
    |                                      `- error: 'MPMediaPlaylist' is unavailable in macOS
320 |         order: SortOrder
321 |     ) async throws -> [MPMediaPlaylist] {
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:320:16: error: 'SortOrder' is only available in macOS 12.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
316 |     }
317 |
318 |     public func playlists<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
319 |         sortedBy sortingKey: SortKey<MPMediaPlaylist, T>?,
320 |         order: SortOrder
    |                `- error: 'SortOrder' is only available in macOS 12.0 or newer
321 |     ) async throws -> [MPMediaPlaylist] {
322 |         try await checkIfAuthorized()
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:321:24: error: 'MPMediaPlaylist' is unavailable in macOS
319 |         sortedBy sortingKey: SortKey<MPMediaPlaylist, T>?,
320 |         order: SortOrder
321 |     ) async throws -> [MPMediaPlaylist] {
    |                        `- error: 'MPMediaPlaylist' is unavailable in macOS
322 |         try await checkIfAuthorized()
323 |         let playlists = try await service.fetchAllPlaylists()
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:362:27: error: 'MPMediaPredicateComparison' is unavailable in macOS
360 |     public func playlists(
361 |         matching predicate: MediaItemPredicateInfo,
362 |         _ comparisonType: MPMediaPredicateComparison
    |                           `- error: 'MPMediaPredicateComparison' is unavailable in macOS
363 |     ) async throws -> [MPMediaPlaylist] {
364 |         try await checkIfAuthorized()
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:363:24: error: 'MPMediaPlaylist' is unavailable in macOS
361 |         matching predicate: MediaItemPredicateInfo,
362 |         _ comparisonType: MPMediaPredicateComparison
363 |     ) async throws -> [MPMediaPlaylist] {
    |                        `- error: 'MPMediaPlaylist' is unavailable in macOS
364 |         try await checkIfAuthorized()
365 |         return try await service.fetchPlaylists(with: predicate, comparisonType: comparisonType)
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:388:27: error: 'MPMediaPredicateComparison' is unavailable in macOS
386 |         _ type: MPMediaType,
387 |         with predicate: MediaItemPredicateInfo,
388 |         _ comparisonType: MPMediaPredicateComparison,
    |                           `- error: 'MPMediaPredicateComparison' is unavailable in macOS
389 |         groupingType: MPMediaGrouping
390 |     ) async throws -> [MPMediaItem] {
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:389:23: error: 'MPMediaGrouping' is unavailable in macOS
387 |         with predicate: MediaItemPredicateInfo,
388 |         _ comparisonType: MPMediaPredicateComparison,
389 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
390 |     ) async throws -> [MPMediaItem] {
391 |         return try await mediaItems(ofType: type, matching: predicate, comparisonType, groupingType: groupingType)
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:390:24: error: 'MPMediaItem' is unavailable in macOS
388 |         _ comparisonType: MPMediaPredicateComparison,
389 |         groupingType: MPMediaGrouping
390 |     ) async throws -> [MPMediaItem] {
    |                        `- error: 'MPMediaItem' is unavailable in macOS
391 |         return try await mediaItems(ofType: type, matching: predicate, comparisonType, groupingType: groupingType)
392 |     }
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:396:39: error: 'MPMediaItem' is unavailable in macOS
394 |     @available(*, deprecated, renamed: "songs()")
395 |     public func fetchSongs<T: Comparable>(
396 |         sortedBy sortingKey: (KeyPath<MPMediaItem, T> & Sendable)?,
    |                                       `- error: 'MPMediaItem' is unavailable in macOS
397 |         order: SortOrder
398 |     ) async throws -> [MPMediaItem] {
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:397:16: error: 'SortOrder' is only available in macOS 12.0 or newer
381 |
382 | // MARK: - Deprecated
383 | extension MusicLibrary {
    | `- note: add @available attribute to enclosing extension
384 |     @available(*, deprecated, renamed: "mediaItems(ofType:matching:_:groupingType:)")
385 |     public func fetch(
    :
395 |     public func fetchSongs<T: Comparable>(
396 |         sortedBy sortingKey: (KeyPath<MPMediaItem, T> & Sendable)?,
397 |         order: SortOrder
    |                `- error: 'SortOrder' is only available in macOS 12.0 or newer
398 |     ) async throws -> [MPMediaItem] {
399 |         return try await songs(sortedBy: sortingKey, order: order)
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:398:24: error: 'MPMediaItem' is unavailable in macOS
396 |         sortedBy sortingKey: (KeyPath<MPMediaItem, T> & Sendable)?,
397 |         order: SortOrder
398 |     ) async throws -> [MPMediaItem] {
    |                        `- error: 'MPMediaItem' is unavailable in macOS
399 |         return try await songs(sortedBy: sortingKey, order: order)
400 |     }
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:405:25: error: 'MPMediaPredicateComparison' is unavailable in macOS
403 |     public func fetchSong(
404 |         with predicate: MediaItemPredicateInfo,
405 |         comparisonType: MPMediaPredicateComparison,
    |                         `- error: 'MPMediaPredicateComparison' is unavailable in macOS
406 |     ) async throws -> [MPMediaItem] {
407 |         return try await songs(matching: predicate, comparisonType: comparisonType)
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:406:24: error: 'MPMediaItem' is unavailable in macOS
404 |         with predicate: MediaItemPredicateInfo,
405 |         comparisonType: MPMediaPredicateComparison,
406 |     ) async throws -> [MPMediaItem] {
    |                        `- error: 'MPMediaItem' is unavailable in macOS
407 |         return try await songs(matching: predicate, comparisonType: comparisonType)
408 |     }
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:194:23: error: 'OSLogMessage' is only available in macOS 11.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
186 |     // MARK: - Specific calls
187 |
188 |     public func songs<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
189 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
190 |         order: SortOrder
    :
192 |         #if DEBUG
193 |             let start = Date()
194 |             log.debug("Started fetching and sorting")
    |                       |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
    |                       `- note: add 'if #available' version check
195 |         #endif
196 |
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:199:23: error: 'OSLogMessage' is only available in macOS 11.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
186 |     // MARK: - Specific calls
187 |
188 |     public func songs<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
189 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
190 |         order: SortOrder
    :
197 |         let songs = try await fetchAll(.music, groupingType: .title)
198 |         #if DEBUG
199 |             log.debug("Fetched \(songs.count) songs in \(Date.now.timeIntervalSince(start)) seconds")
    |                       |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
    |                       `- note: add 'if #available' version check
200 |         #endif
201 |
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:199:33: error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
186 |     // MARK: - Specific calls
187 |
188 |     public func songs<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
189 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
190 |         order: SortOrder
    :
197 |         let songs = try await fetchAll(.music, groupingType: .title)
198 |         #if DEBUG
199 |             log.debug("Fetched \(songs.count) songs in \(Date.now.timeIntervalSince(start)) seconds")
    |                                 |- error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
    |                                 `- note: add 'if #available' version check
200 |         #endif
201 |
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:199:57: error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
186 |     // MARK: - Specific calls
187 |
188 |     public func songs<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
189 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
190 |         order: SortOrder
    :
197 |         let songs = try await fetchAll(.music, groupingType: .title)
198 |         #if DEBUG
199 |             log.debug("Fetched \(songs.count) songs in \(Date.now.timeIntervalSince(start)) seconds")
    |                                                         |- error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
    |                                                         `- note: add 'if #available' version check
200 |         #endif
201 |
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:199:63: error: 'now' is only available in macOS 12 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
186 |     // MARK: - Specific calls
187 |
188 |     public func songs<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
189 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
190 |         order: SortOrder
    :
197 |         let songs = try await fetchAll(.music, groupingType: .title)
198 |         #if DEBUG
199 |             log.debug("Fetched \(songs.count) songs in \(Date.now.timeIntervalSince(start)) seconds")
    |                                                               |- error: 'now' is only available in macOS 12 or newer
    |                                                               `- note: add 'if #available' version check
200 |         #endif
201 |
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:207:32: error: 'sorted(using:)' is only available in macOS 12.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
186 |     // MARK: - Specific calls
187 |
188 |     public func songs<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
189 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
190 |         order: SortOrder
    :
205 |             #endif
206 |
207 |             let sorted = songs.sorted(using: KeyPathComparator(sortingKey, order: order))
    |                                |- error: 'sorted(using:)' is only available in macOS 12.0 or newer
    |                                `- note: add 'if #available' version check
208 |
209 |             #if DEBUG
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:207:46: error: 'KeyPathComparator' is only available in macOS 12.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
186 |     // MARK: - Specific calls
187 |
188 |     public func songs<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
189 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
190 |         order: SortOrder
    :
205 |             #endif
206 |
207 |             let sorted = songs.sorted(using: KeyPathComparator(sortingKey, order: order))
    |                                              |- error: 'KeyPathComparator' is only available in macOS 12.0 or newer
    |                                              `- note: add 'if #available' version check
208 |
209 |             #if DEBUG
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:210:27: error: 'OSLogMessage' is only available in macOS 11.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
186 |     // MARK: - Specific calls
187 |
188 |     public func songs<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
189 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
190 |         order: SortOrder
    :
208 |
209 |             #if DEBUG
210 |                 log.debug("Sorted \(songs.count) songs in \(Date.now.timeIntervalSince(startSorting)) seconds")
    |                           |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
    |                           `- note: add 'if #available' version check
211 |                 log.debug("Fetched and sorted \(songs.count) songs in \(Date.now.timeIntervalSince(start)) seconds")
212 |             #endif
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:210:36: error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
186 |     // MARK: - Specific calls
187 |
188 |     public func songs<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
189 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
190 |         order: SortOrder
    :
208 |
209 |             #if DEBUG
210 |                 log.debug("Sorted \(songs.count) songs in \(Date.now.timeIntervalSince(startSorting)) seconds")
    |                                    |- error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
    |                                    `- note: add 'if #available' version check
211 |                 log.debug("Fetched and sorted \(songs.count) songs in \(Date.now.timeIntervalSince(start)) seconds")
212 |             #endif
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:210:60: error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
186 |     // MARK: - Specific calls
187 |
188 |     public func songs<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
189 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
190 |         order: SortOrder
    :
208 |
209 |             #if DEBUG
210 |                 log.debug("Sorted \(songs.count) songs in \(Date.now.timeIntervalSince(startSorting)) seconds")
    |                                                            |- error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
    |                                                            `- note: add 'if #available' version check
211 |                 log.debug("Fetched and sorted \(songs.count) songs in \(Date.now.timeIntervalSince(start)) seconds")
212 |             #endif
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:210:66: error: 'now' is only available in macOS 12 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
186 |     // MARK: - Specific calls
187 |
188 |     public func songs<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
189 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
190 |         order: SortOrder
    :
208 |
209 |             #if DEBUG
210 |                 log.debug("Sorted \(songs.count) songs in \(Date.now.timeIntervalSince(startSorting)) seconds")
    |                                                                  |- error: 'now' is only available in macOS 12 or newer
    |                                                                  `- note: add 'if #available' version check
211 |                 log.debug("Fetched and sorted \(songs.count) songs in \(Date.now.timeIntervalSince(start)) seconds")
212 |             #endif
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:211:27: error: 'OSLogMessage' is only available in macOS 11.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
186 |     // MARK: - Specific calls
187 |
188 |     public func songs<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
189 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
190 |         order: SortOrder
    :
209 |             #if DEBUG
210 |                 log.debug("Sorted \(songs.count) songs in \(Date.now.timeIntervalSince(startSorting)) seconds")
211 |                 log.debug("Fetched and sorted \(songs.count) songs in \(Date.now.timeIntervalSince(start)) seconds")
    |                           |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
    |                           `- note: add 'if #available' version check
212 |             #endif
213 |             return sorted
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:211:48: error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
186 |     // MARK: - Specific calls
187 |
188 |     public func songs<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
189 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
190 |         order: SortOrder
    :
209 |             #if DEBUG
210 |                 log.debug("Sorted \(songs.count) songs in \(Date.now.timeIntervalSince(startSorting)) seconds")
211 |                 log.debug("Fetched and sorted \(songs.count) songs in \(Date.now.timeIntervalSince(start)) seconds")
    |                                                |- error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
    |                                                `- note: add 'if #available' version check
212 |             #endif
213 |             return sorted
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:211:72: error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
186 |     // MARK: - Specific calls
187 |
188 |     public func songs<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
189 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
190 |         order: SortOrder
    :
209 |             #if DEBUG
210 |                 log.debug("Sorted \(songs.count) songs in \(Date.now.timeIntervalSince(startSorting)) seconds")
211 |                 log.debug("Fetched and sorted \(songs.count) songs in \(Date.now.timeIntervalSince(start)) seconds")
    |                                                                        |- error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
    |                                                                        `- note: add 'if #available' version check
212 |             #endif
213 |             return sorted
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:211:78: error: 'now' is only available in macOS 12 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
186 |     // MARK: - Specific calls
187 |
188 |     public func songs<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
189 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
190 |         order: SortOrder
    :
209 |             #if DEBUG
210 |                 log.debug("Sorted \(songs.count) songs in \(Date.now.timeIntervalSince(startSorting)) seconds")
211 |                 log.debug("Fetched and sorted \(songs.count) songs in \(Date.now.timeIntervalSince(start)) seconds")
    |                                                                              |- error: 'now' is only available in macOS 12 or newer
    |                                                                              `- note: add 'if #available' version check
212 |             #endif
213 |             return sorted
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:227:33: error: 'sorted(using:)' is only available in macOS 12.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
217 |     }
218 |
219 |     public func albums<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
220 |         sortedBy sortingKey: SortKey<MPMediaItemCollection, T>?,
221 |         order: SortOrder
    :
225 |
226 |         if let sortingKey {
227 |             let sorted = albums.sorted(using: KeyPathComparator(sortingKey, order: order))
    |                                 |- error: 'sorted(using:)' is only available in macOS 12.0 or newer
    |                                 `- note: add 'if #available' version check
228 |             return sorted
229 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:227:47: error: 'KeyPathComparator' is only available in macOS 12.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
217 |     }
218 |
219 |     public func albums<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
220 |         sortedBy sortingKey: SortKey<MPMediaItemCollection, T>?,
221 |         order: SortOrder
    :
225 |
226 |         if let sortingKey {
227 |             let sorted = albums.sorted(using: KeyPathComparator(sortingKey, order: order))
    |                                               |- error: 'KeyPathComparator' is only available in macOS 12.0 or newer
    |                                               `- note: add 'if #available' version check
228 |             return sorted
229 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:280:34: error: 'sorted(using:)' is only available in macOS 12.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
270 |     }
271 |
272 |     public func artists<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
273 |         sortedBy sortingKey: SortKey<MPMediaItemCollection, T>?,
274 |         order: SortOrder
    :
278 |
279 |         if let sortingKey {
280 |             let sorted = artists.sorted(using: KeyPathComparator(sortingKey, order: order))
    |                                  |- error: 'sorted(using:)' is only available in macOS 12.0 or newer
    |                                  `- note: add 'if #available' version check
281 |             return sorted
282 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:280:48: error: 'KeyPathComparator' is only available in macOS 12.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
270 |     }
271 |
272 |     public func artists<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
273 |         sortedBy sortingKey: SortKey<MPMediaItemCollection, T>?,
274 |         order: SortOrder
    :
278 |
279 |         if let sortingKey {
280 |             let sorted = artists.sorted(using: KeyPathComparator(sortingKey, order: order))
    |                                                |- error: 'KeyPathComparator' is only available in macOS 12.0 or newer
    |                                                `- note: add 'if #available' version check
281 |             return sorted
282 |         }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:326:30: error: 'sorted(using:)' is only available in macOS 12.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
316 |     }
317 |
318 |     public func playlists<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
319 |         sortedBy sortingKey: SortKey<MPMediaPlaylist, T>?,
320 |         order: SortOrder
    :
324 |
325 |         if let sortingKey {
326 |             return playlists.sorted(using: KeyPathComparator(sortingKey, order: order))
    |                              |- error: 'sorted(using:)' is only available in macOS 12.0 or newer
    |                              `- note: add 'if #available' version check
327 |         }
328 |
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:326:44: error: 'KeyPathComparator' is only available in macOS 12.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
316 |     }
317 |
318 |     public func playlists<T: Comparable>(
    |                 `- note: add @available attribute to enclosing instance method
319 |         sortedBy sortingKey: SortKey<MPMediaPlaylist, T>?,
320 |         order: SortOrder
    :
324 |
325 |         if let sortingKey {
326 |             return playlists.sorted(using: KeyPathComparator(sortingKey, order: order))
    |                                            |- error: 'KeyPathComparator' is only available in macOS 12.0 or newer
    |                                            `- note: add 'if #available' version check
327 |         }
328 |
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:374:23: error: 'OSLogMessage' is only available in macOS 11.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
368 |     // MARK: - Private methods
369 |
370 |     private func checkIfAuthorized() async throws {
    |                  `- note: add @available attribute to enclosing instance method
371 |         let status = authorizationStatus
372 |
373 |         guard case .authorized = status else {
374 |             log.debug("Unauthorized with status: \(status.description). Requesting authorization...")
    |                       |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
    |                       `- note: add 'if #available' version check
375 |             try await requestAuthorization()
376 |
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibrary.swift:374:51: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
 62 | /// let library = MusicLibrary(auth: yourAuth, service: yourService)
 63 | /// ```
 64 | public final class MusicLibrary: MusicLibraryProtocol {
    |                    `- note: add @available attribute to enclosing class
 65 |     private let auth: any AuthorizationManagerProtocol
 66 |     private let service: any MusicLibraryServiceProtocol
    :
368 |     // MARK: - Private methods
369 |
370 |     private func checkIfAuthorized() async throws {
    |                  `- note: add @available attribute to enclosing instance method
371 |         let status = authorizationStatus
372 |
373 |         guard case .authorized = status else {
374 |             log.debug("Unauthorized with status: \(status.description). Requesting authorization...")
    |                                                   |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
    |                                                   `- note: add 'if #available' version check
375 |             try await requestAuthorization()
376 |
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:36:30: error: 'MPMediaLibraryAuthorizationStatus' is unavailable in macOS
 34 |     /// }
 35 |     /// ```
 36 |     var authorizationStatus: MPMediaLibraryAuthorizationStatus { get }
    |                              `- error: 'MPMediaLibraryAuthorizationStatus' is unavailable in macOS
 37 |
 38 |     /// Requests music library access authorization from the user.
MediaPlayer.MPMediaLibraryAuthorizationStatus:2:13: note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaLibraryAuthorizationStatus : Int, @unchecked Sendable {
   |             `- note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:55:49: error: 'MPMediaLibraryAuthorizationStatus' is unavailable in macOS
 53 |     /// ```
 54 |     @discardableResult
 55 |     func requestAuthorization() async throws -> MPMediaLibraryAuthorizationStatus
    |                                                 `- error: 'MPMediaLibraryAuthorizationStatus' is unavailable in macOS
 56 |
 57 |     /// Fetches all media items of a specific type.
MediaPlayer.MPMediaLibraryAuthorizationStatus:2:13: note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaLibraryAuthorizationStatus : Int, @unchecked Sendable {
   |             `- note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:75:23: error: 'MPMediaGrouping' is unavailable in macOS
 73 |     func fetchAll(
 74 |         _ type: MPMediaType,
 75 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
 76 |     ) async throws -> [MPMediaItem]
 77 |
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:76:24: error: 'MPMediaItem' is unavailable in macOS
 74 |         _ type: MPMediaType,
 75 |         groupingType: MPMediaGrouping
 76 |     ) async throws -> [MPMediaItem]
    |                        `- error: 'MPMediaItem' is unavailable in macOS
 77 |
 78 |     /// Fetches all songs with optional sorting.
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:115:38: error: 'MPMediaItem' is unavailable in macOS
113 |     /// ```
114 |     func songs<T: Comparable>(
115 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
    |                                      `- error: 'MPMediaItem' is unavailable in macOS
116 |         order: SortOrder
117 |     ) async throws -> [MPMediaItem]
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:116:16: error: 'SortOrder' is only available in macOS 12.0 or newer
  6 | /// This protocol provides methods to query and retrieve music library items with flexible filtering and sorting options.
  7 | /// All methods require music library access authorization before use.
  8 | public protocol MusicLibraryProtocol {
    |                 `- note: add @available attribute to enclosing protocol
  9 |     /// Returns the current authorization status for music library access.
 10 |     ///
    :
112 |     /// )
113 |     /// ```
114 |     func songs<T: Comparable>(
    |          `- note: add @available attribute to enclosing instance method
115 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
116 |         order: SortOrder
    |                `- error: 'SortOrder' is only available in macOS 12.0 or newer
117 |     ) async throws -> [MPMediaItem]
118 |
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:117:24: error: 'MPMediaItem' is unavailable in macOS
115 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
116 |         order: SortOrder
117 |     ) async throws -> [MPMediaItem]
    |                        `- error: 'MPMediaItem' is unavailable in macOS
118 |
119 |     /// Fetches songs matching a predicate.
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:140:25: error: 'MPMediaPredicateComparison' is unavailable in macOS
138 |     func songs(
139 |         matching predicate: MediaItemPredicateInfo,
140 |         comparisonType: MPMediaPredicateComparison
    |                         `- error: 'MPMediaPredicateComparison' is unavailable in macOS
141 |     ) async throws -> [MPMediaItem]
142 |
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:141:24: error: 'MPMediaItem' is unavailable in macOS
139 |         matching predicate: MediaItemPredicateInfo,
140 |         comparisonType: MPMediaPredicateComparison
141 |     ) async throws -> [MPMediaItem]
    |                        `- error: 'MPMediaItem' is unavailable in macOS
142 |
143 |     /// Fetches media items of a specific type matching a predicate.
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:170:27: error: 'MPMediaPredicateComparison' is unavailable in macOS
168 |         ofType type: MPMediaType,
169 |         matching predicate: MediaItemPredicateInfo,
170 |         _ comparisonType: MPMediaPredicateComparison,
    |                           `- error: 'MPMediaPredicateComparison' is unavailable in macOS
171 |         groupingType: MPMediaGrouping
172 |     ) async throws -> [MPMediaItem]
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:171:23: error: 'MPMediaGrouping' is unavailable in macOS
169 |         matching predicate: MediaItemPredicateInfo,
170 |         _ comparisonType: MPMediaPredicateComparison,
171 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
172 |     ) async throws -> [MPMediaItem]
173 |
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:172:24: error: 'MPMediaItem' is unavailable in macOS
170 |         _ comparisonType: MPMediaPredicateComparison,
171 |         groupingType: MPMediaGrouping
172 |     ) async throws -> [MPMediaItem]
    |                        `- error: 'MPMediaItem' is unavailable in macOS
173 |
174 |     /// Fetches media item collections of a specific type matching a predicate.
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:201:27: error: 'MPMediaPredicateComparison' is unavailable in macOS
199 |         ofType type: MPMediaType,
200 |         matching predicate: MediaItemPredicateInfo,
201 |         _ comparisonType: MPMediaPredicateComparison,
    |                           `- error: 'MPMediaPredicateComparison' is unavailable in macOS
202 |         groupingType: MPMediaGrouping
203 |     ) async throws -> [MPMediaItemCollection]
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:202:23: error: 'MPMediaGrouping' is unavailable in macOS
200 |         matching predicate: MediaItemPredicateInfo,
201 |         _ comparisonType: MPMediaPredicateComparison,
202 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
203 |     ) async throws -> [MPMediaItemCollection]
204 |
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:203:24: error: 'MPMediaItemCollection' is unavailable in macOS
201 |         _ comparisonType: MPMediaPredicateComparison,
202 |         groupingType: MPMediaGrouping
203 |     ) async throws -> [MPMediaItemCollection]
    |                        `- error: 'MPMediaItemCollection' is unavailable in macOS
204 |
205 |     /// Fetches album collections matching a predicate.
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:229:27: error: 'MPMediaPredicateComparison' is unavailable in macOS
227 |     func albums(
228 |         matching predicate: MediaItemPredicateInfo,
229 |         _ comparisonType: MPMediaPredicateComparison,
    |                           `- error: 'MPMediaPredicateComparison' is unavailable in macOS
230 |         groupingType: MPMediaGrouping
231 |     ) async throws -> [MPMediaItemCollection]
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:230:23: error: 'MPMediaGrouping' is unavailable in macOS
228 |         matching predicate: MediaItemPredicateInfo,
229 |         _ comparisonType: MPMediaPredicateComparison,
230 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
231 |     ) async throws -> [MPMediaItemCollection]
232 |
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:231:24: error: 'MPMediaItemCollection' is unavailable in macOS
229 |         _ comparisonType: MPMediaPredicateComparison,
230 |         groupingType: MPMediaGrouping
231 |     ) async throws -> [MPMediaItemCollection]
    |                        `- error: 'MPMediaItemCollection' is unavailable in macOS
232 |
233 |     /// Fetches all albums with optional sorting.
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:261:38: error: 'MPMediaItemCollection' is unavailable in macOS
259 |     /// ```
260 |     func albums<T: Comparable>(
261 |         sortedBy sortingKey: SortKey<MPMediaItemCollection, T>?,
    |                                      `- error: 'MPMediaItemCollection' is unavailable in macOS
262 |         order: SortOrder
263 |     ) async throws -> [MPMediaItemCollection]
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:262:16: error: 'SortOrder' is only available in macOS 12.0 or newer
  6 | /// This protocol provides methods to query and retrieve music library items with flexible filtering and sorting options.
  7 | /// All methods require music library access authorization before use.
  8 | public protocol MusicLibraryProtocol {
    |                 `- note: add @available attribute to enclosing protocol
  9 |     /// Returns the current authorization status for music library access.
 10 |     ///
    :
258 |     /// let albums = try await library.albums()
259 |     /// ```
260 |     func albums<T: Comparable>(
    |          `- note: add @available attribute to enclosing instance method
261 |         sortedBy sortingKey: SortKey<MPMediaItemCollection, T>?,
262 |         order: SortOrder
    |                `- error: 'SortOrder' is only available in macOS 12.0 or newer
263 |     ) async throws -> [MPMediaItemCollection]
264 |
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:263:24: error: 'MPMediaItemCollection' is unavailable in macOS
261 |         sortedBy sortingKey: SortKey<MPMediaItemCollection, T>?,
262 |         order: SortOrder
263 |     ) async throws -> [MPMediaItemCollection]
    |                        `- error: 'MPMediaItemCollection' is unavailable in macOS
264 |
265 |     // MARK: - Artists
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:292:27: error: 'MPMediaPredicateComparison' is unavailable in macOS
290 |     func artists(
291 |         matching predicate: MediaItemPredicateInfo,
292 |         _ comparisonType: MPMediaPredicateComparison,
    |                           `- error: 'MPMediaPredicateComparison' is unavailable in macOS
293 |         groupingType: MPMediaGrouping
294 |     ) async throws -> [MPMediaItemCollection]
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:293:23: error: 'MPMediaGrouping' is unavailable in macOS
291 |         matching predicate: MediaItemPredicateInfo,
292 |         _ comparisonType: MPMediaPredicateComparison,
293 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
294 |     ) async throws -> [MPMediaItemCollection]
295 |
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:294:24: error: 'MPMediaItemCollection' is unavailable in macOS
292 |         _ comparisonType: MPMediaPredicateComparison,
293 |         groupingType: MPMediaGrouping
294 |     ) async throws -> [MPMediaItemCollection]
    |                        `- error: 'MPMediaItemCollection' is unavailable in macOS
295 |
296 |     /// Fetches all artists with optional sorting.
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:324:38: error: 'MPMediaItemCollection' is unavailable in macOS
322 |     /// ```
323 |     func artists<T: Comparable>(
324 |         sortedBy sortingKey: SortKey<MPMediaItemCollection, T>?,
    |                                      `- error: 'MPMediaItemCollection' is unavailable in macOS
325 |         order: SortOrder
326 |     ) async throws -> [MPMediaItemCollection]
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:325:16: error: 'SortOrder' is only available in macOS 12.0 or newer
  6 | /// This protocol provides methods to query and retrieve music library items with flexible filtering and sorting options.
  7 | /// All methods require music library access authorization before use.
  8 | public protocol MusicLibraryProtocol {
    |                 `- note: add @available attribute to enclosing protocol
  9 |     /// Returns the current authorization status for music library access.
 10 |     ///
    :
321 |     /// let artists = try await library.artists()
322 |     /// ```
323 |     func artists<T: Comparable>(
    |          `- note: add @available attribute to enclosing instance method
324 |         sortedBy sortingKey: SortKey<MPMediaItemCollection, T>?,
325 |         order: SortOrder
    |                `- error: 'SortOrder' is only available in macOS 12.0 or newer
326 |     ) async throws -> [MPMediaItemCollection]
327 |
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:326:24: error: 'MPMediaItemCollection' is unavailable in macOS
324 |         sortedBy sortingKey: SortKey<MPMediaItemCollection, T>?,
325 |         order: SortOrder
326 |     ) async throws -> [MPMediaItemCollection]
    |                        `- error: 'MPMediaItemCollection' is unavailable in macOS
327 |
328 |     // MARK: - Playlists
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:348:27: error: 'MPMediaPredicateComparison' is unavailable in macOS
346 |     func playlists(
347 |         matching predicate: MediaItemPredicateInfo,
348 |         _ comparisonType: MPMediaPredicateComparison
    |                           `- error: 'MPMediaPredicateComparison' is unavailable in macOS
349 |     ) async throws -> [MPMediaPlaylist]
350 |
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:349:24: error: 'MPMediaPlaylist' is unavailable in macOS
347 |         matching predicate: MediaItemPredicateInfo,
348 |         _ comparisonType: MPMediaPredicateComparison
349 |     ) async throws -> [MPMediaPlaylist]
    |                        `- error: 'MPMediaPlaylist' is unavailable in macOS
350 |
351 |     /// Fetches all playlists with optional sorting.
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:379:38: error: 'MPMediaPlaylist' is unavailable in macOS
377 |     /// ```
378 |     func playlists<T: Comparable>(
379 |         sortedBy sortingKey: SortKey<MPMediaPlaylist, T>?,
    |                                      `- error: 'MPMediaPlaylist' is unavailable in macOS
380 |         order: SortOrder
381 |     ) async throws -> [MPMediaPlaylist]
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:380:16: error: 'SortOrder' is only available in macOS 12.0 or newer
  6 | /// This protocol provides methods to query and retrieve music library items with flexible filtering and sorting options.
  7 | /// All methods require music library access authorization before use.
  8 | public protocol MusicLibraryProtocol {
    |                 `- note: add @available attribute to enclosing protocol
  9 |     /// Returns the current authorization status for music library access.
 10 |     ///
    :
376 |     /// let playlists = try await library.playlists()
377 |     /// ```
378 |     func playlists<T: Comparable>(
    |          `- note: add @available attribute to enclosing instance method
379 |         sortedBy sortingKey: SortKey<MPMediaPlaylist, T>?,
380 |         order: SortOrder
    |                `- error: 'SortOrder' is only available in macOS 12.0 or newer
381 |     ) async throws -> [MPMediaPlaylist]
382 |
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:381:24: error: 'MPMediaPlaylist' is unavailable in macOS
379 |         sortedBy sortingKey: SortKey<MPMediaPlaylist, T>?,
380 |         order: SortOrder
381 |     ) async throws -> [MPMediaPlaylist]
    |                        `- error: 'MPMediaPlaylist' is unavailable in macOS
382 |
383 | }
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:390:38: error: 'MPMediaItem' is unavailable in macOS
388 |     @available(*, deprecated, renamed: "songs(sortedBy:order:)")
389 |     public func fetchSongs<T: Comparable>(
390 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
    |                                      `- error: 'MPMediaItem' is unavailable in macOS
391 |         order: SortOrder
392 |     ) async throws -> [MPMediaItem] {
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:391:16: error: 'SortOrder' is only available in macOS 12.0 or newer
383 | }
384 |
385 | extension MusicLibraryProtocol {
    | `- note: add @available attribute to enclosing extension
386 |     // MARK: - Deprecated
387 |
    :
389 |     public func fetchSongs<T: Comparable>(
390 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
391 |         order: SortOrder
    |                `- error: 'SortOrder' is only available in macOS 12.0 or newer
392 |     ) async throws -> [MPMediaItem] {
393 |         try await songs(sortedBy: sortingKey, order: order)
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:392:24: error: 'MPMediaItem' is unavailable in macOS
390 |         sortedBy sortingKey: SortKey<MPMediaItem, T>?,
391 |         order: SortOrder
392 |     ) async throws -> [MPMediaItem] {
    |                        `- error: 'MPMediaItem' is unavailable in macOS
393 |         try await songs(sortedBy: sortingKey, order: order)
394 |     }
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:399:25: error: 'MPMediaPredicateComparison' is unavailable in macOS
397 |     public func fetchSong(
398 |         with predicate: MediaItemPredicateInfo,
399 |         comparisonType: MPMediaPredicateComparison
    |                         `- error: 'MPMediaPredicateComparison' is unavailable in macOS
400 |     ) async throws -> [MPMediaItem] {
401 |         try await songs(matching: predicate, comparisonType: comparisonType)
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:400:24: error: 'MPMediaItem' is unavailable in macOS
398 |         with predicate: MediaItemPredicateInfo,
399 |         comparisonType: MPMediaPredicateComparison
400 |     ) async throws -> [MPMediaItem] {
    |                        `- error: 'MPMediaItem' is unavailable in macOS
401 |         try await songs(matching: predicate, comparisonType: comparisonType)
402 |     }
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:408:27: error: 'MPMediaPredicateComparison' is unavailable in macOS
406 |         _ type: MPMediaType,
407 |         with predicate: MediaItemPredicateInfo,
408 |         _ comparisonType: MPMediaPredicateComparison,
    |                           `- error: 'MPMediaPredicateComparison' is unavailable in macOS
409 |         groupingType: MPMediaGrouping
410 |     ) async throws -> [MPMediaItem] {
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:409:23: error: 'MPMediaGrouping' is unavailable in macOS
407 |         with predicate: MediaItemPredicateInfo,
408 |         _ comparisonType: MPMediaPredicateComparison,
409 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
410 |     ) async throws -> [MPMediaItem] {
411 |         try await mediaItems(ofType: type, matching: predicate, comparisonType, groupingType: groupingType)
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:410:24: error: 'MPMediaItem' is unavailable in macOS
408 |         _ comparisonType: MPMediaPredicateComparison,
409 |         groupingType: MPMediaGrouping
410 |     ) async throws -> [MPMediaItem] {
    |                        `- error: 'MPMediaItem' is unavailable in macOS
411 |         try await mediaItems(ofType: type, matching: predicate, comparisonType, groupingType: groupingType)
412 |     }
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:429:42: error: 'MPMediaItem' is unavailable in macOS
427 |     /// let allSongs = try await library.songs()
428 |     /// ```
429 |     public func songs() async throws -> [MPMediaItem] {
    |                                          `- error: 'MPMediaItem' is unavailable in macOS
430 |         return try await songs(sortedBy: SortKey<MPMediaItem, Never>?.none, order: .forward)
431 |     }
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:446:43: error: 'MPMediaItemCollection' is unavailable in macOS
444 |     /// let allAlbums = try await library.albums()
445 |     /// ```
446 |     public func albums() async throws -> [MPMediaItemCollection] {
    |                                           `- error: 'MPMediaItemCollection' is unavailable in macOS
447 |         return try await albums(sortedBy: SortKey<MPMediaItemCollection, Never>?.none, order: .reverse)
448 |     }
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:463:44: error: 'MPMediaItemCollection' is unavailable in macOS
461 |     /// let allArtists = try await library.artists()
462 |     /// ```
463 |     public func artists() async throws -> [MPMediaItemCollection] {
    |                                            `- error: 'MPMediaItemCollection' is unavailable in macOS
464 |         return try await artists(sortedBy: SortKey<MPMediaItemCollection, Never>?.none, order: .reverse)
465 |     }
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:480:46: error: 'MPMediaPlaylist' is unavailable in macOS
478 |     /// let allPlaylists = try await library.playlists()
479 |     /// ```
480 |     public func playlists() async throws -> [MPMediaPlaylist] {
    |                                              `- error: 'MPMediaPlaylist' is unavailable in macOS
481 |         return try await playlists(sortedBy: SortKey<MPMediaPlaylist, Never>?.none, order: .forward)
482 |     }
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:499:47: error: 'MPMediaItem' is unavailable in macOS
497 |     /// let allSongs = try await library.fetchSongs()
498 |     /// ```
499 |     public func fetchSongs() async throws -> [MPMediaItem] {
    |                                               `- error: 'MPMediaItem' is unavailable in macOS
500 |         return try await songs()
501 |     }
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:523:25: error: 'MPMediaPredicateComparison' is unavailable in macOS
521 |     public func fetchSong(
522 |         with predicate: MediaItemPredicateInfo,
523 |         comparisonType: MPMediaPredicateComparison = .equalTo
    |                         `- error: 'MPMediaPredicateComparison' is unavailable in macOS
524 |     ) async throws -> [MPMediaItem] {
525 |         return try await songs(matching: predicate, comparisonType: comparisonType)
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:524:24: error: 'MPMediaItem' is unavailable in macOS
522 |         with predicate: MediaItemPredicateInfo,
523 |         comparisonType: MPMediaPredicateComparison = .equalTo
524 |     ) async throws -> [MPMediaItem] {
    |                        `- error: 'MPMediaItem' is unavailable in macOS
525 |         return try await songs(matching: predicate, comparisonType: comparisonType)
526 |     }
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:430:50: error: 'MPMediaItem' is unavailable in macOS
428 |     /// ```
429 |     public func songs() async throws -> [MPMediaItem] {
430 |         return try await songs(sortedBy: SortKey<MPMediaItem, Never>?.none, order: .forward)
    |                                                  `- error: 'MPMediaItem' is unavailable in macOS
431 |     }
432 |
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:447:51: error: 'MPMediaItemCollection' is unavailable in macOS
445 |     /// ```
446 |     public func albums() async throws -> [MPMediaItemCollection] {
447 |         return try await albums(sortedBy: SortKey<MPMediaItemCollection, Never>?.none, order: .reverse)
    |                                                   `- error: 'MPMediaItemCollection' is unavailable in macOS
448 |     }
449 |
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:464:52: error: 'MPMediaItemCollection' is unavailable in macOS
462 |     /// ```
463 |     public func artists() async throws -> [MPMediaItemCollection] {
464 |         return try await artists(sortedBy: SortKey<MPMediaItemCollection, Never>?.none, order: .reverse)
    |                                                    `- error: 'MPMediaItemCollection' is unavailable in macOS
465 |     }
466 |
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/MusicLibraryProtocol.swift:481:54: error: 'MPMediaPlaylist' is unavailable in macOS
479 |     /// ```
480 |     public func playlists() async throws -> [MPMediaPlaylist] {
481 |         return try await playlists(sortedBy: SortKey<MPMediaPlaylist, Never>?.none, order: .forward)
    |                                                      `- error: 'MPMediaPlaylist' is unavailable in macOS
482 |     }
483 |
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
[12/21] Compiling MediaBridge MediaItemPredicateInfo.swift
/Users/admin/builder/spi-builder-workspace/Sources/Service/MediaItemPredicateInfo.swift:80:31: error: 'MPMediaPredicateComparison' is unavailable in macOS
 78 |     /// ```
 79 |     public func predicate(
 80 |         using comparisonType: MPMediaPredicateComparison = .equalTo
    |                               `- error: 'MPMediaPredicateComparison' is unavailable in macOS
 81 |     ) -> MPMediaPropertyPredicate {
 82 |         MPMediaPropertyPredicate(
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MediaItemPredicateInfo.swift:81:10: error: 'MPMediaPropertyPredicate' is unavailable in macOS
 79 |     public func predicate(
 80 |         using comparisonType: MPMediaPredicateComparison = .equalTo
 81 |     ) -> MPMediaPropertyPredicate {
    |          `- error: 'MPMediaPropertyPredicate' is unavailable in macOS
 82 |         MPMediaPropertyPredicate(
 83 |             value: value,
MediaPlayer.MPMediaPropertyPredicate:2:12: note: 'MPMediaPropertyPredicate' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPropertyPredicate : MPMediaPredicate {
   |            `- note: 'MPMediaPropertyPredicate' has been explicitly marked unavailable here
 3 |     public /*not inherited*/ init(value: Any?, forProperty property: String)
 4 |     @available(*, unavailable, renamed: "init(value:forProperty:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/Service/MediaItemPredicateInfo.swift:82:9: error: 'MPMediaPropertyPredicate' is unavailable in macOS
 80 |         using comparisonType: MPMediaPredicateComparison = .equalTo
 81 |     ) -> MPMediaPropertyPredicate {
 82 |         MPMediaPropertyPredicate(
    |         `- error: 'MPMediaPropertyPredicate' is unavailable in macOS
 83 |             value: value,
 84 |             forProperty: property,
MediaPlayer.MPMediaPropertyPredicate:2:12: note: 'MPMediaPropertyPredicate' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPropertyPredicate : MPMediaPredicate {
   |            `- note: 'MPMediaPropertyPredicate' has been explicitly marked unavailable here
 3 |     public /*not inherited*/ init(value: Any?, forProperty property: String)
 4 |     @available(*, unavailable, renamed: "init(value:forProperty:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/Service/MediaQueryProtocol.swift:34:17: error: 'MPMediaItem' is unavailable in macOS
32 |     /// Returns an array of `MPMediaItem` objects that match the query predicates,
33 |     /// or `nil` if the query has not been executed or returned no results.
34 |     var items: [MPMediaItem]? { get }
   |                 `- error: 'MPMediaItem' is unavailable in macOS
35 |
36 |     /// The media items collection matching the query criteria.
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MediaQueryProtocol.swift:40:23: error: 'MPMediaItemCollection' is unavailable in macOS
38 |     /// Returns an array of `MPMediaItemCollection` objects that match the query predicates,
39 |     /// or `nil` if the query has not been executed or returned no results.
40 |     var collections: [MPMediaItemCollection]? { get }
   |                       `- error: 'MPMediaItemCollection' is unavailable in macOS
41 |
42 |     /// The grouping type used to organize query results.
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/Service/MediaQueryProtocol.swift:46:23: error: 'MPMediaGrouping' is unavailable in macOS
44 |     /// Controls how the media items are grouped in the results. Can be modified
45 |     /// to change the organization of items returned by the query.
46 |     var groupingType: MPMediaGrouping { get set }
   |                       `- error: 'MPMediaGrouping' is unavailable in macOS
47 |
48 |     /// Initializes a query with optional filter predicates.
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MediaQueryProtocol.swift:53:32: error: 'MPMediaPredicate' is unavailable in macOS
51 |     ///   - filterPredicates: A set of `MPMediaPredicate` objects that define the filtering criteria for the query.
52 |     ///                      Pass `nil` to fetch all available media items without filtering.
53 |     init(filterPredicates: Set<MPMediaPredicate>?)
   |                                `- error: 'MPMediaPredicate' is unavailable in macOS
54 | }
55 |
MediaPlayer.MPMediaPredicate:2:12: note: 'MPMediaPredicate' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class MPMediaPredicate : NSObject, NSSecureCoding {
  |            `- note: 'MPMediaPredicate' has been explicitly marked unavailable here
3 |     public init()
4 |     open class var supportsSecureCoding: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MediaQueryProtocol.swift:56:11: error: 'MPMediaQuery' is unavailable in macOS
54 | }
55 |
56 | extension MPMediaQuery: MediaQueryProtocol { }
   |           `- error: 'MPMediaQuery' is unavailable in macOS
57 |
MediaPlayer.MPMediaQuery:2:12: note: 'MPMediaQuery' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaQuery : NSObject, NSSecureCoding, NSCopying {
   |            `- note: 'MPMediaQuery' has been explicitly marked unavailable here
 3 |     public init(filterPredicates: Set<MPMediaPredicate>?)
 4 |     open var filterPredicates: Set<MPMediaPredicate>? { get set }
[13/21] Compiling MediaBridge MediaQueryProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/Service/MediaItemPredicateInfo.swift:80:31: error: 'MPMediaPredicateComparison' is unavailable in macOS
 78 |     /// ```
 79 |     public func predicate(
 80 |         using comparisonType: MPMediaPredicateComparison = .equalTo
    |                               `- error: 'MPMediaPredicateComparison' is unavailable in macOS
 81 |     ) -> MPMediaPropertyPredicate {
 82 |         MPMediaPropertyPredicate(
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MediaItemPredicateInfo.swift:81:10: error: 'MPMediaPropertyPredicate' is unavailable in macOS
 79 |     public func predicate(
 80 |         using comparisonType: MPMediaPredicateComparison = .equalTo
 81 |     ) -> MPMediaPropertyPredicate {
    |          `- error: 'MPMediaPropertyPredicate' is unavailable in macOS
 82 |         MPMediaPropertyPredicate(
 83 |             value: value,
MediaPlayer.MPMediaPropertyPredicate:2:12: note: 'MPMediaPropertyPredicate' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPropertyPredicate : MPMediaPredicate {
   |            `- note: 'MPMediaPropertyPredicate' has been explicitly marked unavailable here
 3 |     public /*not inherited*/ init(value: Any?, forProperty property: String)
 4 |     @available(*, unavailable, renamed: "init(value:forProperty:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/Service/MediaItemPredicateInfo.swift:82:9: error: 'MPMediaPropertyPredicate' is unavailable in macOS
 80 |         using comparisonType: MPMediaPredicateComparison = .equalTo
 81 |     ) -> MPMediaPropertyPredicate {
 82 |         MPMediaPropertyPredicate(
    |         `- error: 'MPMediaPropertyPredicate' is unavailable in macOS
 83 |             value: value,
 84 |             forProperty: property,
MediaPlayer.MPMediaPropertyPredicate:2:12: note: 'MPMediaPropertyPredicate' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPropertyPredicate : MPMediaPredicate {
   |            `- note: 'MPMediaPropertyPredicate' has been explicitly marked unavailable here
 3 |     public /*not inherited*/ init(value: Any?, forProperty property: String)
 4 |     @available(*, unavailable, renamed: "init(value:forProperty:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/Service/MediaQueryProtocol.swift:34:17: error: 'MPMediaItem' is unavailable in macOS
32 |     /// Returns an array of `MPMediaItem` objects that match the query predicates,
33 |     /// or `nil` if the query has not been executed or returned no results.
34 |     var items: [MPMediaItem]? { get }
   |                 `- error: 'MPMediaItem' is unavailable in macOS
35 |
36 |     /// The media items collection matching the query criteria.
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MediaQueryProtocol.swift:40:23: error: 'MPMediaItemCollection' is unavailable in macOS
38 |     /// Returns an array of `MPMediaItemCollection` objects that match the query predicates,
39 |     /// or `nil` if the query has not been executed or returned no results.
40 |     var collections: [MPMediaItemCollection]? { get }
   |                       `- error: 'MPMediaItemCollection' is unavailable in macOS
41 |
42 |     /// The grouping type used to organize query results.
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/Service/MediaQueryProtocol.swift:46:23: error: 'MPMediaGrouping' is unavailable in macOS
44 |     /// Controls how the media items are grouped in the results. Can be modified
45 |     /// to change the organization of items returned by the query.
46 |     var groupingType: MPMediaGrouping { get set }
   |                       `- error: 'MPMediaGrouping' is unavailable in macOS
47 |
48 |     /// Initializes a query with optional filter predicates.
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MediaQueryProtocol.swift:53:32: error: 'MPMediaPredicate' is unavailable in macOS
51 |     ///   - filterPredicates: A set of `MPMediaPredicate` objects that define the filtering criteria for the query.
52 |     ///                      Pass `nil` to fetch all available media items without filtering.
53 |     init(filterPredicates: Set<MPMediaPredicate>?)
   |                                `- error: 'MPMediaPredicate' is unavailable in macOS
54 | }
55 |
MediaPlayer.MPMediaPredicate:2:12: note: 'MPMediaPredicate' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class MPMediaPredicate : NSObject, NSSecureCoding {
  |            `- note: 'MPMediaPredicate' has been explicitly marked unavailable here
3 |     public init()
4 |     open class var supportsSecureCoding: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MediaQueryProtocol.swift:56:11: error: 'MPMediaQuery' is unavailable in macOS
54 | }
55 |
56 | extension MPMediaQuery: MediaQueryProtocol { }
   |           `- error: 'MPMediaQuery' is unavailable in macOS
57 |
MediaPlayer.MPMediaQuery:2:12: note: 'MPMediaQuery' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaQuery : NSObject, NSSecureCoding, NSCopying {
   |            `- note: 'MPMediaQuery' has been explicitly marked unavailable here
 3 |     public init(filterPredicates: Set<MPMediaPredicate>?)
 4 |     open var filterPredicates: Set<MPMediaPredicate>? { get set }
[14/21] Compiling MediaBridge MPMediaLibraryAuthorizationStatus+description.swift
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Extensions/MPMediaLibraryAuthorizationStatus+description.swift:4:11: error: 'MPMediaLibraryAuthorizationStatus' is unavailable in macOS
 2 | import MediaPlayer
 3 |
 4 | extension MPMediaLibraryAuthorizationStatus {
   |           `- error: 'MPMediaLibraryAuthorizationStatus' is unavailable in macOS
 5 |     /// A human-readable description of the authorization status.
 6 |     ///
MediaPlayer.MPMediaLibraryAuthorizationStatus:2:13: note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaLibraryAuthorizationStatus : Int, @unchecked Sendable {
   |             `- note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
[15/21] Compiling MediaBridge MPMediaType+Comparable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Extensions/MPMediaLibraryAuthorizationStatus+description.swift:4:11: error: 'MPMediaLibraryAuthorizationStatus' is unavailable in macOS
 2 | import MediaPlayer
 3 |
 4 | extension MPMediaLibraryAuthorizationStatus {
   |           `- error: 'MPMediaLibraryAuthorizationStatus' is unavailable in macOS
 5 |     /// A human-readable description of the authorization status.
 6 |     ///
MediaPlayer.MPMediaLibraryAuthorizationStatus:2:13: note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaLibraryAuthorizationStatus : Int, @unchecked Sendable {
   |             `- note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
[16/21] Compiling MediaBridge OptionalDate+Comparable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Logger.swift:4:19: error: 'Logger' is only available in macOS 11.0 or newer
2 | import OSLog
3 |
4 | internal let log: Logger = Logger(
  |              |    `- error: 'Logger' is only available in macOS 11.0 or newer
  |              `- note: add @available attribute to enclosing let
5 |     subsystem: "media-bridge",
6 |     category: "default"
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Logger.swift:4:28: error: 'Logger' is only available in macOS 11.0 or newer
2 | import OSLog
3 |
4 | internal let log: Logger = Logger(
  |              |             `- error: 'Logger' is only available in macOS 11.0 or newer
  |              `- note: add @available attribute to enclosing let
5 |     subsystem: "media-bridge",
6 |     category: "default"
[17/21] Compiling MediaBridge Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Logger.swift:4:19: error: 'Logger' is only available in macOS 11.0 or newer
2 | import OSLog
3 |
4 | internal let log: Logger = Logger(
  |              |    `- error: 'Logger' is only available in macOS 11.0 or newer
  |              `- note: add @available attribute to enclosing let
5 |     subsystem: "media-bridge",
6 |     category: "default"
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Logger.swift:4:28: error: 'Logger' is only available in macOS 11.0 or newer
2 | import OSLog
3 |
4 | internal let log: Logger = Logger(
  |              |             `- error: 'Logger' is only available in macOS 11.0 or newer
  |              `- note: add @available attribute to enclosing let
5 |     subsystem: "media-bridge",
6 |     category: "default"
[18/21] Compiling MediaBridge MusicLibraryServiceProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:54:23: error: 'MPMediaGrouping' is unavailable in macOS
 52 |     func fetchAll(
 53 |         _ type: MPMediaType,
 54 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
 55 |     ) async throws -> [MPMediaItem]
 56 |
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:55:24: error: 'MPMediaItem' is unavailable in macOS
 53 |         _ type: MPMediaType,
 54 |         groupingType: MPMediaGrouping
 55 |     ) async throws -> [MPMediaItem]
    |                        `- error: 'MPMediaItem' is unavailable in macOS
 56 |
 57 |     /// Fetches media items matching a predicate with optional filtering.
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:82:25: error: 'MPMediaPredicateComparison' is unavailable in macOS
 80 |         _ type: MPMediaType,
 81 |         with predicate: MediaItemPredicateInfo,
 82 |         comparisonType: MPMediaPredicateComparison,
    |                         `- error: 'MPMediaPredicateComparison' is unavailable in macOS
 83 |         groupingType: MPMediaGrouping
 84 |     ) async throws -> [MPMediaItem]
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:83:23: error: 'MPMediaGrouping' is unavailable in macOS
 81 |         with predicate: MediaItemPredicateInfo,
 82 |         comparisonType: MPMediaPredicateComparison,
 83 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
 84 |     ) async throws -> [MPMediaItem]
 85 |
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:84:24: error: 'MPMediaItem' is unavailable in macOS
 82 |         comparisonType: MPMediaPredicateComparison,
 83 |         groupingType: MPMediaGrouping
 84 |     ) async throws -> [MPMediaItem]
    |                        `- error: 'MPMediaItem' is unavailable in macOS
 85 |
 86 |     // MARK: - Media Collections
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:105:23: error: 'MPMediaGrouping' is unavailable in macOS
103 |     func fetchAllCollections(
104 |         _ type: MPMediaType,
105 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
106 |     ) async throws -> [MPMediaItemCollection]
107 |
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:106:24: error: 'MPMediaItemCollection' is unavailable in macOS
104 |         _ type: MPMediaType,
105 |         groupingType: MPMediaGrouping
106 |     ) async throws -> [MPMediaItemCollection]
    |                        `- error: 'MPMediaItemCollection' is unavailable in macOS
107 |
108 |     /// Fetches media collections matching a predicate with optional filtering.
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:133:25: error: 'MPMediaPredicateComparison' is unavailable in macOS
131 |         _ type: MPMediaType,
132 |         with predicate: MediaItemPredicateInfo,
133 |         comparisonType: MPMediaPredicateComparison,
    |                         `- error: 'MPMediaPredicateComparison' is unavailable in macOS
134 |         groupingType: MPMediaGrouping
135 |     ) async throws -> [MPMediaItemCollection]
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:134:23: error: 'MPMediaGrouping' is unavailable in macOS
132 |         with predicate: MediaItemPredicateInfo,
133 |         comparisonType: MPMediaPredicateComparison,
134 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
135 |     ) async throws -> [MPMediaItemCollection]
136 |
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:135:24: error: 'MPMediaItemCollection' is unavailable in macOS
133 |         comparisonType: MPMediaPredicateComparison,
134 |         groupingType: MPMediaGrouping
135 |     ) async throws -> [MPMediaItemCollection]
    |                        `- error: 'MPMediaItemCollection' is unavailable in macOS
136 |
137 |     // MARK: - Playlists
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:146:47: error: 'MPMediaPlaylist' is unavailable in macOS
144 |     /// - Returns: Array of all playlists in the library
145 |     /// - Throws: An error of specific type if the query fails
146 |     func fetchAllPlaylists() async throws -> [MPMediaPlaylist]
    |                                               `- error: 'MPMediaPlaylist' is unavailable in macOS
147 |
148 |     /// Fetches playlists matching a predicate.
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:160:25: error: 'MPMediaPredicateComparison' is unavailable in macOS
158 |     func fetchPlaylists(
159 |         with predicate: MediaItemPredicateInfo,
160 |         comparisonType: MPMediaPredicateComparison
    |                         `- error: 'MPMediaPredicateComparison' is unavailable in macOS
161 |     ) async throws -> [MPMediaPlaylist]
162 | }
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:161:24: error: 'MPMediaPlaylist' is unavailable in macOS
159 |         with predicate: MediaItemPredicateInfo,
160 |         comparisonType: MPMediaPredicateComparison
161 |     ) async throws -> [MPMediaPlaylist]
    |                        `- error: 'MPMediaPlaylist' is unavailable in macOS
162 | }
163 |
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
[19/21] Compiling MediaBridge Bool+Comparable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:54:23: error: 'MPMediaGrouping' is unavailable in macOS
 52 |     func fetchAll(
 53 |         _ type: MPMediaType,
 54 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
 55 |     ) async throws -> [MPMediaItem]
 56 |
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:55:24: error: 'MPMediaItem' is unavailable in macOS
 53 |         _ type: MPMediaType,
 54 |         groupingType: MPMediaGrouping
 55 |     ) async throws -> [MPMediaItem]
    |                        `- error: 'MPMediaItem' is unavailable in macOS
 56 |
 57 |     /// Fetches media items matching a predicate with optional filtering.
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:82:25: error: 'MPMediaPredicateComparison' is unavailable in macOS
 80 |         _ type: MPMediaType,
 81 |         with predicate: MediaItemPredicateInfo,
 82 |         comparisonType: MPMediaPredicateComparison,
    |                         `- error: 'MPMediaPredicateComparison' is unavailable in macOS
 83 |         groupingType: MPMediaGrouping
 84 |     ) async throws -> [MPMediaItem]
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:83:23: error: 'MPMediaGrouping' is unavailable in macOS
 81 |         with predicate: MediaItemPredicateInfo,
 82 |         comparisonType: MPMediaPredicateComparison,
 83 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
 84 |     ) async throws -> [MPMediaItem]
 85 |
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:84:24: error: 'MPMediaItem' is unavailable in macOS
 82 |         comparisonType: MPMediaPredicateComparison,
 83 |         groupingType: MPMediaGrouping
 84 |     ) async throws -> [MPMediaItem]
    |                        `- error: 'MPMediaItem' is unavailable in macOS
 85 |
 86 |     // MARK: - Media Collections
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:105:23: error: 'MPMediaGrouping' is unavailable in macOS
103 |     func fetchAllCollections(
104 |         _ type: MPMediaType,
105 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
106 |     ) async throws -> [MPMediaItemCollection]
107 |
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:106:24: error: 'MPMediaItemCollection' is unavailable in macOS
104 |         _ type: MPMediaType,
105 |         groupingType: MPMediaGrouping
106 |     ) async throws -> [MPMediaItemCollection]
    |                        `- error: 'MPMediaItemCollection' is unavailable in macOS
107 |
108 |     /// Fetches media collections matching a predicate with optional filtering.
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:133:25: error: 'MPMediaPredicateComparison' is unavailable in macOS
131 |         _ type: MPMediaType,
132 |         with predicate: MediaItemPredicateInfo,
133 |         comparisonType: MPMediaPredicateComparison,
    |                         `- error: 'MPMediaPredicateComparison' is unavailable in macOS
134 |         groupingType: MPMediaGrouping
135 |     ) async throws -> [MPMediaItemCollection]
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:134:23: error: 'MPMediaGrouping' is unavailable in macOS
132 |         with predicate: MediaItemPredicateInfo,
133 |         comparisonType: MPMediaPredicateComparison,
134 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
135 |     ) async throws -> [MPMediaItemCollection]
136 |
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:135:24: error: 'MPMediaItemCollection' is unavailable in macOS
133 |         comparisonType: MPMediaPredicateComparison,
134 |         groupingType: MPMediaGrouping
135 |     ) async throws -> [MPMediaItemCollection]
    |                        `- error: 'MPMediaItemCollection' is unavailable in macOS
136 |
137 |     // MARK: - Playlists
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:146:47: error: 'MPMediaPlaylist' is unavailable in macOS
144 |     /// - Returns: Array of all playlists in the library
145 |     /// - Throws: An error of specific type if the query fails
146 |     func fetchAllPlaylists() async throws -> [MPMediaPlaylist]
    |                                               `- error: 'MPMediaPlaylist' is unavailable in macOS
147 |
148 |     /// Fetches playlists matching a predicate.
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:160:25: error: 'MPMediaPredicateComparison' is unavailable in macOS
158 |     func fetchPlaylists(
159 |         with predicate: MediaItemPredicateInfo,
160 |         comparisonType: MPMediaPredicateComparison
    |                         `- error: 'MPMediaPredicateComparison' is unavailable in macOS
161 |     ) async throws -> [MPMediaPlaylist]
162 | }
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryServiceProtocol.swift:161:24: error: 'MPMediaPlaylist' is unavailable in macOS
159 |         with predicate: MediaItemPredicateInfo,
160 |         comparisonType: MPMediaPredicateComparison
161 |     ) async throws -> [MPMediaPlaylist]
    |                        `- error: 'MPMediaPlaylist' is unavailable in macOS
162 | }
163 |
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
[20/21] Compiling MediaBridge MusicLibraryService.swift
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:4:73: error: 'MPMediaQuery' is unavailable in macOS
  2 |
  3 | /// Factory extension for creating a live instance of `MusicLibraryService`.
  4 | extension MusicLibraryServiceProtocol where Self == MusicLibraryService<MPMediaQuery>, E == MusicLibraryServiceError {
    |                                                                         `- error: 'MPMediaQuery' is unavailable in macOS
  5 |     /// Returns a live instance of the default `MusicLibraryService` implementation.
  6 |     ///
MediaPlayer.MPMediaQuery:2:12: note: 'MPMediaQuery' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaQuery : NSObject, NSSecureCoding, NSCopying {
   |            `- note: 'MPMediaQuery' has been explicitly marked unavailable here
 3 |     public init(filterPredicates: Set<MPMediaPredicate>?)
 4 |     open var filterPredicates: Set<MPMediaPredicate>? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:41:25: error: 'MPMediaPredicateComparison' is unavailable in macOS
 39 |         _ type: MPMediaType,
 40 |         with predicate: MediaItemPredicateInfo,
 41 |         comparisonType: MPMediaPredicateComparison = .equalTo,
    |                         `- error: 'MPMediaPredicateComparison' is unavailable in macOS
 42 |         groupingType: MPMediaGrouping = .title
 43 |     ) async throws -> [MPMediaItem] {
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:42:23: error: 'MPMediaGrouping' is unavailable in macOS
 40 |         with predicate: MediaItemPredicateInfo,
 41 |         comparisonType: MPMediaPredicateComparison = .equalTo,
 42 |         groupingType: MPMediaGrouping = .title
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
 43 |     ) async throws -> [MPMediaItem] {
 44 |         guard let items = query(type, withFilter: predicate, comparisonType, groupingType).items else {
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:43:24: error: 'MPMediaItem' is unavailable in macOS
 41 |         comparisonType: MPMediaPredicateComparison = .equalTo,
 42 |         groupingType: MPMediaGrouping = .title
 43 |     ) async throws -> [MPMediaItem] {
    |                        `- error: 'MPMediaItem' is unavailable in macOS
 44 |         guard let items = query(type, withFilter: predicate, comparisonType, groupingType).items else {
 45 |             throw E.noItemFound(predicate)
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:56:23: error: 'MPMediaGrouping' is unavailable in macOS
 54 |     public func fetchAll(
 55 |         _ type: MPMediaType,
 56 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
 57 |     ) async throws -> [MPMediaItem] {
 58 |         guard let items = query(type, groupingType).items else {
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:57:24: error: 'MPMediaItem' is unavailable in macOS
 55 |         _ type: MPMediaType,
 56 |         groupingType: MPMediaGrouping
 57 |     ) async throws -> [MPMediaItem] {
    |                        `- error: 'MPMediaItem' is unavailable in macOS
 58 |         guard let items = query(type, groupingType).items else {
 59 |             throw E.noItemsFound
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:70:23: error: 'MPMediaGrouping' is unavailable in macOS
 68 |     public func fetchAllCollections(
 69 |         _ type: MPMediaType,
 70 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
 71 |     ) async throws -> [MPMediaItemCollection] {
 72 |         guard let collections = query(type, groupingType).collections else {
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:71:24: error: 'MPMediaItemCollection' is unavailable in macOS
 69 |         _ type: MPMediaType,
 70 |         groupingType: MPMediaGrouping
 71 |     ) async throws -> [MPMediaItemCollection] {
    |                        `- error: 'MPMediaItemCollection' is unavailable in macOS
 72 |         guard let collections = query(type, groupingType).collections else {
 73 |             throw E.noCollectionsFound
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:85:25: error: 'MPMediaPredicateComparison' is unavailable in macOS
 83 |         _ type: MPMediaType,
 84 |         with predicate: MediaItemPredicateInfo,
 85 |         comparisonType: MPMediaPredicateComparison = .equalTo,
    |                         `- error: 'MPMediaPredicateComparison' is unavailable in macOS
 86 |         groupingType: MPMediaGrouping = .title
 87 |     ) async throws -> [MPMediaItemCollection] {
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:86:23: error: 'MPMediaGrouping' is unavailable in macOS
 84 |         with predicate: MediaItemPredicateInfo,
 85 |         comparisonType: MPMediaPredicateComparison = .equalTo,
 86 |         groupingType: MPMediaGrouping = .title
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
 87 |     ) async throws -> [MPMediaItemCollection] {
 88 |         guard let collections = query(type, withFilter: predicate, comparisonType, groupingType).collections else {
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:87:24: error: 'MPMediaItemCollection' is unavailable in macOS
 85 |         comparisonType: MPMediaPredicateComparison = .equalTo,
 86 |         groupingType: MPMediaGrouping = .title
 87 |     ) async throws -> [MPMediaItemCollection] {
    |                        `- error: 'MPMediaItemCollection' is unavailable in macOS
 88 |         guard let collections = query(type, withFilter: predicate, comparisonType, groupingType).collections else {
 89 |             throw E.noCollectionFound(predicate)
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:98:54: error: 'MPMediaPlaylist' is unavailable in macOS
 96 |     /// Implementation of ``MusicLibraryServiceProtocol/fetchAllPlaylists()`` that retrieves all playlists
 97 |     /// using `MPMediaQuery` with `.playlist` grouping and casts the results to `[MPMediaPlaylist]`.
 98 |     public func fetchAllPlaylists() async throws -> [MPMediaPlaylist] {
    |                                                      `- error: 'MPMediaPlaylist' is unavailable in macOS
 99 |         guard let collections = playlistQuery().collections else {
100 |             throw E.noCollectionsFound
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:111:25: error: 'MPMediaPredicateComparison' is unavailable in macOS
109 |     public func fetchPlaylists(
110 |         with predicate: MediaItemPredicateInfo,
111 |         comparisonType: MPMediaPredicateComparison = .equalTo
    |                         `- error: 'MPMediaPredicateComparison' is unavailable in macOS
112 |     ) async throws -> [MPMediaPlaylist] {
113 |         let filter = predicate.predicate(using: comparisonType)
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:112:24: error: 'MPMediaPlaylist' is unavailable in macOS
110 |         with predicate: MediaItemPredicateInfo,
111 |         comparisonType: MPMediaPredicateComparison = .equalTo
112 |     ) async throws -> [MPMediaPlaylist] {
    |                        `- error: 'MPMediaPlaylist' is unavailable in macOS
113 |         let filter = predicate.predicate(using: comparisonType)
114 |         var query = Q(filterPredicates: [filter])
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:126:25: error: 'MPMediaGrouping' is unavailable in macOS
124 |     private func query(
125 |         _ type: MPMediaType,
126 |         _ groupingType: MPMediaGrouping
    |                         `- error: 'MPMediaGrouping' is unavailable in macOS
127 |     ) -> Q {
128 |         let typePredicate = MediaItemPredicateInfo.mediaType(type)
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:137:27: error: 'MPMediaPredicateComparison' is unavailable in macOS
135 |         _ type: MPMediaType,
136 |         withFilter predicate: MediaItemPredicateInfo,
137 |         _ comparisonType: MPMediaPredicateComparison,
    |                           `- error: 'MPMediaPredicateComparison' is unavailable in macOS
138 |         _ groupingType: MPMediaGrouping
139 |     ) -> Q {
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:138:25: error: 'MPMediaGrouping' is unavailable in macOS
136 |         withFilter predicate: MediaItemPredicateInfo,
137 |         _ comparisonType: MPMediaPredicateComparison,
138 |         _ groupingType: MPMediaGrouping
    |                         `- error: 'MPMediaGrouping' is unavailable in macOS
139 |     ) -> Q {
140 |         let typePredicate = MediaItemPredicateInfo.mediaType(type)
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:154:30: error: 'MPMediaPredicate' is unavailable in macOS
152 |
153 |     private func prepareQuery(
154 |         with predicates: Set<MPMediaPredicate>?,
    |                              `- error: 'MPMediaPredicate' is unavailable in macOS
155 |         groupingType: MPMediaGrouping
156 |     ) -> Q {
MediaPlayer.MPMediaPredicate:2:12: note: 'MPMediaPredicate' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class MPMediaPredicate : NSObject, NSSecureCoding {
  |            `- note: 'MPMediaPredicate' has been explicitly marked unavailable here
3 |     public init()
4 |     open class var supportsSecureCoding: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:155:23: error: 'MPMediaGrouping' is unavailable in macOS
153 |     private func prepareQuery(
154 |         with predicates: Set<MPMediaPredicate>?,
155 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
156 |     ) -> Q {
157 |         var query = Q(filterPredicates: predicates)
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:102:48: error: 'MPMediaPlaylist' is unavailable in macOS
100 |             throw E.noCollectionsFound
101 |         }
102 |         return collections.compactMap { $0 as? MPMediaPlaylist }
    |                                                `- error: 'MPMediaPlaylist' is unavailable in macOS
103 |     }
104 |
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:119:48: error: 'MPMediaPlaylist' is unavailable in macOS
117 |             throw E.noCollectionFound(predicate)
118 |         }
119 |         return collections.compactMap { $0 as? MPMediaPlaylist }
    |                                                `- error: 'MPMediaPlaylist' is unavailable in macOS
120 |     }
121 |
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
[21/21] Compiling MediaBridge MusicLibraryServiceError.swift
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:4:73: error: 'MPMediaQuery' is unavailable in macOS
  2 |
  3 | /// Factory extension for creating a live instance of `MusicLibraryService`.
  4 | extension MusicLibraryServiceProtocol where Self == MusicLibraryService<MPMediaQuery>, E == MusicLibraryServiceError {
    |                                                                         `- error: 'MPMediaQuery' is unavailable in macOS
  5 |     /// Returns a live instance of the default `MusicLibraryService` implementation.
  6 |     ///
MediaPlayer.MPMediaQuery:2:12: note: 'MPMediaQuery' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaQuery : NSObject, NSSecureCoding, NSCopying {
   |            `- note: 'MPMediaQuery' has been explicitly marked unavailable here
 3 |     public init(filterPredicates: Set<MPMediaPredicate>?)
 4 |     open var filterPredicates: Set<MPMediaPredicate>? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:41:25: error: 'MPMediaPredicateComparison' is unavailable in macOS
 39 |         _ type: MPMediaType,
 40 |         with predicate: MediaItemPredicateInfo,
 41 |         comparisonType: MPMediaPredicateComparison = .equalTo,
    |                         `- error: 'MPMediaPredicateComparison' is unavailable in macOS
 42 |         groupingType: MPMediaGrouping = .title
 43 |     ) async throws -> [MPMediaItem] {
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:42:23: error: 'MPMediaGrouping' is unavailable in macOS
 40 |         with predicate: MediaItemPredicateInfo,
 41 |         comparisonType: MPMediaPredicateComparison = .equalTo,
 42 |         groupingType: MPMediaGrouping = .title
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
 43 |     ) async throws -> [MPMediaItem] {
 44 |         guard let items = query(type, withFilter: predicate, comparisonType, groupingType).items else {
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:43:24: error: 'MPMediaItem' is unavailable in macOS
 41 |         comparisonType: MPMediaPredicateComparison = .equalTo,
 42 |         groupingType: MPMediaGrouping = .title
 43 |     ) async throws -> [MPMediaItem] {
    |                        `- error: 'MPMediaItem' is unavailable in macOS
 44 |         guard let items = query(type, withFilter: predicate, comparisonType, groupingType).items else {
 45 |             throw E.noItemFound(predicate)
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:56:23: error: 'MPMediaGrouping' is unavailable in macOS
 54 |     public func fetchAll(
 55 |         _ type: MPMediaType,
 56 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
 57 |     ) async throws -> [MPMediaItem] {
 58 |         guard let items = query(type, groupingType).items else {
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:57:24: error: 'MPMediaItem' is unavailable in macOS
 55 |         _ type: MPMediaType,
 56 |         groupingType: MPMediaGrouping
 57 |     ) async throws -> [MPMediaItem] {
    |                        `- error: 'MPMediaItem' is unavailable in macOS
 58 |         guard let items = query(type, groupingType).items else {
 59 |             throw E.noItemsFound
MediaPlayer.MPMediaItem:2:12: note: 'MPMediaItem' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItem : MPMediaEntity {
   |            `- note: 'MPMediaItem' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var mediaType: MPMediaType { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:70:23: error: 'MPMediaGrouping' is unavailable in macOS
 68 |     public func fetchAllCollections(
 69 |         _ type: MPMediaType,
 70 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
 71 |     ) async throws -> [MPMediaItemCollection] {
 72 |         guard let collections = query(type, groupingType).collections else {
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:71:24: error: 'MPMediaItemCollection' is unavailable in macOS
 69 |         _ type: MPMediaType,
 70 |         groupingType: MPMediaGrouping
 71 |     ) async throws -> [MPMediaItemCollection] {
    |                        `- error: 'MPMediaItemCollection' is unavailable in macOS
 72 |         guard let collections = query(type, groupingType).collections else {
 73 |             throw E.noCollectionsFound
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:85:25: error: 'MPMediaPredicateComparison' is unavailable in macOS
 83 |         _ type: MPMediaType,
 84 |         with predicate: MediaItemPredicateInfo,
 85 |         comparisonType: MPMediaPredicateComparison = .equalTo,
    |                         `- error: 'MPMediaPredicateComparison' is unavailable in macOS
 86 |         groupingType: MPMediaGrouping = .title
 87 |     ) async throws -> [MPMediaItemCollection] {
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:86:23: error: 'MPMediaGrouping' is unavailable in macOS
 84 |         with predicate: MediaItemPredicateInfo,
 85 |         comparisonType: MPMediaPredicateComparison = .equalTo,
 86 |         groupingType: MPMediaGrouping = .title
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
 87 |     ) async throws -> [MPMediaItemCollection] {
 88 |         guard let collections = query(type, withFilter: predicate, comparisonType, groupingType).collections else {
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:87:24: error: 'MPMediaItemCollection' is unavailable in macOS
 85 |         comparisonType: MPMediaPredicateComparison = .equalTo,
 86 |         groupingType: MPMediaGrouping = .title
 87 |     ) async throws -> [MPMediaItemCollection] {
    |                        `- error: 'MPMediaItemCollection' is unavailable in macOS
 88 |         guard let collections = query(type, withFilter: predicate, comparisonType, groupingType).collections else {
 89 |             throw E.noCollectionFound(predicate)
MediaPlayer.MPMediaItemCollection:2:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaItemCollection : MPMediaEntity {
   |            `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
 3 |     @available(*, unavailable, message: "superseded by import of -[MPMediaItemCollection initWithItems:]")
 4 |     public /*not inherited*/ init(items: [MPMediaItem])
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:98:54: error: 'MPMediaPlaylist' is unavailable in macOS
 96 |     /// Implementation of ``MusicLibraryServiceProtocol/fetchAllPlaylists()`` that retrieves all playlists
 97 |     /// using `MPMediaQuery` with `.playlist` grouping and casts the results to `[MPMediaPlaylist]`.
 98 |     public func fetchAllPlaylists() async throws -> [MPMediaPlaylist] {
    |                                                      `- error: 'MPMediaPlaylist' is unavailable in macOS
 99 |         guard let collections = playlistQuery().collections else {
100 |             throw E.noCollectionsFound
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:111:25: error: 'MPMediaPredicateComparison' is unavailable in macOS
109 |     public func fetchPlaylists(
110 |         with predicate: MediaItemPredicateInfo,
111 |         comparisonType: MPMediaPredicateComparison = .equalTo
    |                         `- error: 'MPMediaPredicateComparison' is unavailable in macOS
112 |     ) async throws -> [MPMediaPlaylist] {
113 |         let filter = predicate.predicate(using: comparisonType)
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:112:24: error: 'MPMediaPlaylist' is unavailable in macOS
110 |         with predicate: MediaItemPredicateInfo,
111 |         comparisonType: MPMediaPredicateComparison = .equalTo
112 |     ) async throws -> [MPMediaPlaylist] {
    |                        `- error: 'MPMediaPlaylist' is unavailable in macOS
113 |         let filter = predicate.predicate(using: comparisonType)
114 |         var query = Q(filterPredicates: [filter])
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:126:25: error: 'MPMediaGrouping' is unavailable in macOS
124 |     private func query(
125 |         _ type: MPMediaType,
126 |         _ groupingType: MPMediaGrouping
    |                         `- error: 'MPMediaGrouping' is unavailable in macOS
127 |     ) -> Q {
128 |         let typePredicate = MediaItemPredicateInfo.mediaType(type)
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:137:27: error: 'MPMediaPredicateComparison' is unavailable in macOS
135 |         _ type: MPMediaType,
136 |         withFilter predicate: MediaItemPredicateInfo,
137 |         _ comparisonType: MPMediaPredicateComparison,
    |                           `- error: 'MPMediaPredicateComparison' is unavailable in macOS
138 |         _ groupingType: MPMediaGrouping
139 |     ) -> Q {
MediaPlayer.MPMediaPredicateComparison:2:13: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaPredicateComparison : Int, @unchecked Sendable {
   |             `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:138:25: error: 'MPMediaGrouping' is unavailable in macOS
136 |         withFilter predicate: MediaItemPredicateInfo,
137 |         _ comparisonType: MPMediaPredicateComparison,
138 |         _ groupingType: MPMediaGrouping
    |                         `- error: 'MPMediaGrouping' is unavailable in macOS
139 |     ) -> Q {
140 |         let typePredicate = MediaItemPredicateInfo.mediaType(type)
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:154:30: error: 'MPMediaPredicate' is unavailable in macOS
152 |
153 |     private func prepareQuery(
154 |         with predicates: Set<MPMediaPredicate>?,
    |                              `- error: 'MPMediaPredicate' is unavailable in macOS
155 |         groupingType: MPMediaGrouping
156 |     ) -> Q {
MediaPlayer.MPMediaPredicate:2:12: note: 'MPMediaPredicate' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class MPMediaPredicate : NSObject, NSSecureCoding {
  |            `- note: 'MPMediaPredicate' has been explicitly marked unavailable here
3 |     public init()
4 |     open class var supportsSecureCoding: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:155:23: error: 'MPMediaGrouping' is unavailable in macOS
153 |     private func prepareQuery(
154 |         with predicates: Set<MPMediaPredicate>?,
155 |         groupingType: MPMediaGrouping
    |                       `- error: 'MPMediaGrouping' is unavailable in macOS
156 |     ) -> Q {
157 |         var query = Q(filterPredicates: predicates)
MediaPlayer.MPMediaGrouping:2:13: note: 'MPMediaGrouping' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | public enum MPMediaGrouping : Int, @unchecked Sendable {
   |             `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
 3 |     public init?(rawValue: Int)
 4 |     public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:102:48: error: 'MPMediaPlaylist' is unavailable in macOS
100 |             throw E.noCollectionsFound
101 |         }
102 |         return collections.compactMap { $0 as? MPMediaPlaylist }
    |                                                `- error: 'MPMediaPlaylist' is unavailable in macOS
103 |     }
104 |
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/Service/MusicLibraryService.swift:119:48: error: 'MPMediaPlaylist' is unavailable in macOS
117 |             throw E.noCollectionFound(predicate)
118 |         }
119 |         return collections.compactMap { $0 as? MPMediaPlaylist }
    |                                                `- error: 'MPMediaPlaylist' is unavailable in macOS
120 |     }
121 |
MediaPlayer.MPMediaPlaylist:2:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class MPMediaPlaylist : MPMediaItemCollection {
   |            `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
 3 |     open var persistentID: MPMediaEntityPersistentID { get }
 4 |     open var cloudGlobalID: String? { get }
[22/22] Compiling MediaBridge SortKey.swift
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/MediaBridge.xctestplan
BUILD FAILURE 6.0 macosSpm