Build Information
Failed to build MediaBridge, reference 0.9.2 (a9c5c3), with Swift 6.1 for macOS (SPM) on 9 Mar 2026 01:03:11 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaLibrary.h:26:28: note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
24 | // -----------------------------------------------------------------------------
25 |
26 | typedef NS_ENUM(NSInteger, MPMediaLibraryAuthorizationStatus) {
| `- note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
27 | MPMediaLibraryAuthorizationStatusNotDetermined = 0,
28 | MPMediaLibraryAuthorizationStatusDenied,
/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.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaLibrary.h:26:28: note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
24 | // -----------------------------------------------------------------------------
25 |
26 | typedef NS_ENUM(NSInteger, MPMediaLibraryAuthorizationStatus) {
| `- note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
27 | MPMediaLibraryAuthorizationStatusNotDetermined = 0,
28 | MPMediaLibraryAuthorizationStatusDenied,
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:18:28: note: 'MPMediaGrouping' has been explicitly marked unavailable here
16 | @class MPMediaQuerySection;
17 |
18 | typedef NS_ENUM(NSInteger, MPMediaGrouping) {
| `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
19 | MPMediaGroupingTitle,
20 | MPMediaGroupingAlbum,
/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.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:18:28: note: 'MPMediaGrouping' has been explicitly marked unavailable here
16 | @class MPMediaQuerySection;
17 |
18 | typedef NS_ENUM(NSInteger, MPMediaGrouping) {
| `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
19 | MPMediaGroupingTitle,
20 | MPMediaGroupingAlbum,
/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.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:18:28: note: 'MPMediaGrouping' has been explicitly marked unavailable here
16 | @class MPMediaQuerySection;
17 |
18 | typedef NS_ENUM(NSInteger, MPMediaGrouping) {
| `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
19 | MPMediaGroupingTitle,
20 | MPMediaGroupingAlbum,
/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.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:18:28: note: 'MPMediaGrouping' has been explicitly marked unavailable here
16 | @class MPMediaQuerySection;
17 |
18 | typedef NS_ENUM(NSInteger, MPMediaGrouping) {
| `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
19 | MPMediaGroupingTitle,
20 | MPMediaGroupingAlbum,
/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.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:18:28: note: 'MPMediaGrouping' has been explicitly marked unavailable here
16 | @class MPMediaQuerySection;
17 |
18 | typedef NS_ENUM(NSInteger, MPMediaGrouping) {
| `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
19 | MPMediaGroupingTitle,
20 | MPMediaGroupingAlbum,
/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.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h:28:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
26 | MP_API(ios(3.0))
27 | API_UNAVAILABLE(tvos, watchos, macos)
28 | @interface MPMediaPlaylist : MPMediaItemCollection
| `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
29 |
30 | #pragma mark - Properties
/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]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h:28:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
26 | MP_API(ios(3.0))
27 | API_UNAVAILABLE(tvos, watchos, macos)
28 | @interface MPMediaPlaylist : MPMediaItemCollection
| `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
29 |
30 | #pragma mark - Properties
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h:28:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
26 | MP_API(ios(3.0))
27 | API_UNAVAILABLE(tvos, watchos, macos)
28 | @interface MPMediaPlaylist : MPMediaItemCollection
| `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
29 |
30 | #pragma mark - Properties
/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] {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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] {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:18:28: note: 'MPMediaGrouping' has been explicitly marked unavailable here
16 | @class MPMediaQuerySection;
17 |
18 | typedef NS_ENUM(NSInteger, MPMediaGrouping) {
| `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
19 | MPMediaGroupingTitle,
20 | MPMediaGroupingAlbum,
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h:28:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
26 | MP_API(ios(3.0))
27 | API_UNAVAILABLE(tvos, watchos, macos)
28 | @interface MPMediaPlaylist : MPMediaItemCollection
| `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
29 |
30 | #pragma mark - Properties
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h:28:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
26 | MP_API(ios(3.0))
27 | API_UNAVAILABLE(tvos, watchos, macos)
28 | @interface MPMediaPlaylist : MPMediaItemCollection
| `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
29 |
30 | #pragma mark - Properties
[20/21] Compiling MediaBridge MusicLibraryProtocol.swift
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaLibrary.h:26:28: note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
24 | // -----------------------------------------------------------------------------
25 |
26 | typedef NS_ENUM(NSInteger, MPMediaLibraryAuthorizationStatus) {
| `- note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
27 | MPMediaLibraryAuthorizationStatusNotDetermined = 0,
28 | MPMediaLibraryAuthorizationStatusDenied,
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaLibrary.h:26:28: note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
24 | // -----------------------------------------------------------------------------
25 |
26 | typedef NS_ENUM(NSInteger, MPMediaLibraryAuthorizationStatus) {
| `- note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
27 | MPMediaLibraryAuthorizationStatusNotDetermined = 0,
28 | MPMediaLibraryAuthorizationStatusDenied,
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:18:28: note: 'MPMediaGrouping' has been explicitly marked unavailable here
16 | @class MPMediaQuerySection;
17 |
18 | typedef NS_ENUM(NSInteger, MPMediaGrouping) {
| `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
19 | MPMediaGroupingTitle,
20 | MPMediaGroupingAlbum,
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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] {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:18:28: note: 'MPMediaGrouping' has been explicitly marked unavailable here
16 | @class MPMediaQuerySection;
17 |
18 | typedef NS_ENUM(NSInteger, MPMediaGrouping) {
| `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
19 | MPMediaGroupingTitle,
20 | MPMediaGroupingAlbum,
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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] {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:18:28: note: 'MPMediaGrouping' has been explicitly marked unavailable here
16 | @class MPMediaQuerySection;
17 |
18 | typedef NS_ENUM(NSInteger, MPMediaGrouping) {
| `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
19 | MPMediaGroupingTitle,
20 | MPMediaGroupingAlbum,
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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] {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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] {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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] {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:18:28: note: 'MPMediaGrouping' has been explicitly marked unavailable here
16 | @class MPMediaQuerySection;
17 |
18 | typedef NS_ENUM(NSInteger, MPMediaGrouping) {
| `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
19 | MPMediaGroupingTitle,
20 | MPMediaGroupingAlbum,
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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] {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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] {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:18:28: note: 'MPMediaGrouping' has been explicitly marked unavailable here
16 | @class MPMediaQuerySection;
17 |
18 | typedef NS_ENUM(NSInteger, MPMediaGrouping) {
| `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
19 | MPMediaGroupingTitle,
20 | MPMediaGroupingAlbum,
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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] {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h:28:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
26 | MP_API(ios(3.0))
27 | API_UNAVAILABLE(tvos, watchos, macos)
28 | @interface MPMediaPlaylist : MPMediaItemCollection
| `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
29 |
30 | #pragma mark - Properties
/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()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h:28:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
26 | MP_API(ios(3.0))
27 | API_UNAVAILABLE(tvos, watchos, macos)
28 | @interface MPMediaPlaylist : MPMediaItemCollection
| `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
29 |
30 | #pragma mark - Properties
/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()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h:28:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
26 | MP_API(ios(3.0))
27 | API_UNAVAILABLE(tvos, watchos, macos)
28 | @interface MPMediaPlaylist : MPMediaItemCollection
| `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
29 |
30 | #pragma mark - Properties
/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] {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:18:28: note: 'MPMediaGrouping' has been explicitly marked unavailable here
16 | @class MPMediaQuerySection;
17 |
18 | typedef NS_ENUM(NSInteger, MPMediaGrouping) {
| `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
19 | MPMediaGroupingTitle,
20 | MPMediaGroupingAlbum,
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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] {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaLibrary.h:26:28: note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
24 | // -----------------------------------------------------------------------------
25 |
26 | typedef NS_ENUM(NSInteger, MPMediaLibraryAuthorizationStatus) {
| `- note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
27 | MPMediaLibraryAuthorizationStatusNotDetermined = 0,
28 | MPMediaLibraryAuthorizationStatusDenied,
/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.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaLibrary.h:26:28: note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
24 | // -----------------------------------------------------------------------------
25 |
26 | typedef NS_ENUM(NSInteger, MPMediaLibraryAuthorizationStatus) {
| `- note: 'MPMediaLibraryAuthorizationStatus' has been explicitly marked unavailable here
27 | MPMediaLibraryAuthorizationStatusNotDetermined = 0,
28 | MPMediaLibraryAuthorizationStatusDenied,
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:18:28: note: 'MPMediaGrouping' has been explicitly marked unavailable here
16 | @class MPMediaQuerySection;
17 |
18 | typedef NS_ENUM(NSInteger, MPMediaGrouping) {
| `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
19 | MPMediaGroupingTitle,
20 | MPMediaGroupingAlbum,
/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.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:18:28: note: 'MPMediaGrouping' has been explicitly marked unavailable here
16 | @class MPMediaQuerySection;
17 |
18 | typedef NS_ENUM(NSInteger, MPMediaGrouping) {
| `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
19 | MPMediaGroupingTitle,
20 | MPMediaGroupingAlbum,
/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.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:18:28: note: 'MPMediaGrouping' has been explicitly marked unavailable here
16 | @class MPMediaQuerySection;
17 |
18 | typedef NS_ENUM(NSInteger, MPMediaGrouping) {
| `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
19 | MPMediaGroupingTitle,
20 | MPMediaGroupingAlbum,
/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.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:18:28: note: 'MPMediaGrouping' has been explicitly marked unavailable here
16 | @class MPMediaQuerySection;
17 |
18 | typedef NS_ENUM(NSInteger, MPMediaGrouping) {
| `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
19 | MPMediaGroupingTitle,
20 | MPMediaGroupingAlbum,
/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.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:18:28: note: 'MPMediaGrouping' has been explicitly marked unavailable here
16 | @class MPMediaQuerySection;
17 |
18 | typedef NS_ENUM(NSInteger, MPMediaGrouping) {
| `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
19 | MPMediaGroupingTitle,
20 | MPMediaGroupingAlbum,
/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.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h:28:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
26 | MP_API(ios(3.0))
27 | API_UNAVAILABLE(tvos, watchos, macos)
28 | @interface MPMediaPlaylist : MPMediaItemCollection
| `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
29 |
30 | #pragma mark - Properties
/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]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h:28:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
26 | MP_API(ios(3.0))
27 | API_UNAVAILABLE(tvos, watchos, macos)
28 | @interface MPMediaPlaylist : MPMediaItemCollection
| `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
29 |
30 | #pragma mark - Properties
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h:28:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
26 | MP_API(ios(3.0))
27 | API_UNAVAILABLE(tvos, watchos, macos)
28 | @interface MPMediaPlaylist : MPMediaItemCollection
| `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
29 |
30 | #pragma mark - Properties
/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] {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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] {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:18:28: note: 'MPMediaGrouping' has been explicitly marked unavailable here
16 | @class MPMediaQuerySection;
17 |
18 | typedef NS_ENUM(NSInteger, MPMediaGrouping) {
| `- note: 'MPMediaGrouping' has been explicitly marked unavailable here
19 | MPMediaGroupingTitle,
20 | MPMediaGroupingAlbum,
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h:28:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
26 | MP_API(ios(3.0))
27 | API_UNAVAILABLE(tvos, watchos, macos)
28 | @interface MPMediaPlaylist : MPMediaItemCollection
| `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
29 |
30 | #pragma mark - Properties
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h:82:28: note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
80 | // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81 |
82 | typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
| `- note: 'MPMediaPredicateComparison' has been explicitly marked unavailable here
83 | MPMediaPredicateComparisonEqualTo,
84 | MPMediaPredicateComparisonContains
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:42:12: note: 'MPMediaItem' has been explicitly marked unavailable here
40 | MP_API(ios(3.0), tvos(14.0))
41 | API_UNAVAILABLE(watchos, macos)
42 | @interface MPMediaItem : MPMediaEntity
| `- note: 'MPMediaItem' has been explicitly marked unavailable here
43 |
44 | #pragma mark - Properties
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h:19:12: note: 'MPMediaItemCollection' has been explicitly marked unavailable here
17 | MP_API(ios(3.0))
18 | API_UNAVAILABLE(tvos, watchos, macos)
19 | @interface MPMediaItemCollection : MPMediaEntity
| `- note: 'MPMediaItemCollection' has been explicitly marked unavailable here
20 |
21 | // Creates a media item collection by copying an array of MPMediaItems.
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h:28:12: note: 'MPMediaPlaylist' has been explicitly marked unavailable here
26 | MP_API(ios(3.0))
27 | API_UNAVAILABLE(tvos, watchos, macos)
28 | @interface MPMediaPlaylist : MPMediaItemCollection
| `- note: 'MPMediaPlaylist' has been explicitly marked unavailable here
29 |
30 | #pragma mark - Properties
[21/21] 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.1 macosSpm