The Swift Package Index logo.Swift Package Index

Build Information

Failed to build KYPhotoLibrary, reference main (a0e235), with Swift 6.1 for macOS (SPM) on 10 Feb 2026 20:44:39 UTC.

Build Command

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

Build Log

121 |         KYPhotoLibraryLog("Cancel Image Data Request...")
122 |         await imageDataRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:126:9: error: 'Task' is only available in macOS 10.15 or newer
 15 | #endif
 16 |
 17 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 18 |
 19 |   // MARK: - Error
    :
104 |   /// - Returns: The exported image URL.
105 |   ///
106 |   public static func exportImage(
    |                      `- note: add @available attribute to enclosing static method
107 |     _ image: KYPhotoLibraryImage,
108 |     exportOptions: KYPhotoLibraryExportOptions
    :
124 |     }
125 |
126 |     try Task.checkCancellation()
    |         |- error: 'Task' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
127 |
128 |     // Output image.
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:126:14: error: 'checkCancellation()' is only available in macOS 10.15 or newer
 15 | #endif
 16 |
 17 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 18 |
 19 |   // MARK: - Error
    :
104 |   /// - Returns: The exported image URL.
105 |   ///
106 |   public static func exportImage(
    |                      `- note: add @available attribute to enclosing static method
107 |     _ image: KYPhotoLibraryImage,
108 |     exportOptions: KYPhotoLibraryExportOptions
    :
124 |     }
125 |
126 |     try Task.checkCancellation()
    |              |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
127 |
128 |     // Output image.
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:113:66: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:113:65: note: expanded code originates here
 15 | #endif
 16 |
 17 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 18 |
 19 |   // MARK: - Error
    :
104 |   /// - Returns: The exported image URL.
105 |   ///
106 |   public static func exportImage(
    |                      `- note: add @available attribute to enclosing static method
107 |     _ image: KYPhotoLibraryImage,
108 |     exportOptions: KYPhotoLibraryExportOptions
    :
111 |     // Request image data for type.
112 |     let imageDataRequestActor = ImageDataRequestActor()
113 |     let imageData: Data = try await withTaskCancellationHandler {
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift
    |111 |
    |112 |
    |113 |                                                                 #isolation
    |    |                                                                  `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
114 |       KYPhotoLibraryLog("Start Image Data Request...")
115 |       return try await imageDataRequestActor.requestImageData(
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:144:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
136 | // MARK: - Image Data Request Actor
137 |
138 | private actor ImageDataRequestActor {
    |               `- note: add @available attribute to enclosing actor
139 |
140 |   private var requestID: PHImageRequestID?
141 |   private var progress: Progress?
142 |
143 |   func requestOriginalImageData(asset: PHAsset, requestOptions: PHImageRequestOptions?) async throws -> Data {
    |        `- note: add @available attribute to enclosing instance method
144 |     return try await withCheckedThrowingContinuation { continuation in
    |                      |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
145 |       self.requestID = PHImageManager.default().requestImageDataAndOrientation(
146 |         for: asset,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:145:49: error: 'requestImageDataAndOrientation(for:options:resultHandler:)' is only available in macOS 10.15 or newer
136 | // MARK: - Image Data Request Actor
137 |
138 | private actor ImageDataRequestActor {
    |               `- note: add @available attribute to enclosing actor
139 |
140 |   private var requestID: PHImageRequestID?
141 |   private var progress: Progress?
142 |
143 |   func requestOriginalImageData(asset: PHAsset, requestOptions: PHImageRequestOptions?) async throws -> Data {
    |        `- note: add @available attribute to enclosing instance method
144 |     return try await withCheckedThrowingContinuation { continuation in
145 |       self.requestID = PHImageManager.default().requestImageDataAndOrientation(
    |                                                 |- error: 'requestImageDataAndOrientation(for:options:resultHandler:)' is only available in macOS 10.15 or newer
    |                                                 `- note: add 'if #available' version check
146 |         for: asset,
147 |         options: requestOptions
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:144:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:144:54: note: expanded code originates here
136 | // MARK: - Image Data Request Actor
137 |
138 | private actor ImageDataRequestActor {
    |               `- note: add @available attribute to enclosing actor
139 |
140 |   private var requestID: PHImageRequestID?
141 |   private var progress: Progress?
142 |
143 |   func requestOriginalImageData(asset: PHAsset, requestOptions: PHImageRequestOptions?) async throws -> Data {
    |        `- note: add @available attribute to enclosing instance method
144 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift
    |142 |
    |143 |
    |144 |                                                      #isolation
    |    |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
145 |       self.requestID = PHImageManager.default().requestImageDataAndOrientation(
146 |         for: asset,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:162:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
136 | // MARK: - Image Data Request Actor
137 |
138 | private actor ImageDataRequestActor {
    |               `- note: add @available attribute to enclosing actor
139 |
140 |   private var requestID: PHImageRequestID?
    :
159 |   }
160 |
161 |   func requestImageData(forTpye typeIdentifier: String, image: KYPhotoLibraryImage) async throws -> Data {
    |        `- note: add @available attribute to enclosing instance method
162 |     return try await withCheckedThrowingContinuation { continuation in
    |                      |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
163 |       self.progress = image.loadData(withTypeIdentifier: typeIdentifier) { data, error in
164 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:162:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:162:54: note: expanded code originates here
136 | // MARK: - Image Data Request Actor
137 |
138 | private actor ImageDataRequestActor {
    |               `- note: add @available attribute to enclosing actor
139 |
140 |   private var requestID: PHImageRequestID?
    :
159 |   }
160 |
161 |   func requestImageData(forTpye typeIdentifier: String, image: KYPhotoLibraryImage) async throws -> Data {
    |        `- note: add @available attribute to enclosing instance method
162 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift
    |160 |
    |161 |
    |162 |                                                      #isolation
    |    |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
163 |       self.progress = image.loadData(withTypeIdentifier: typeIdentifier) { data, error in
164 | #if DEBUG
[19/24] Compiling KYPhotoLibrary KYPhotoLibrary+ImageExport.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:18:1: warning: extension declares a conformance of imported type 'NSImage' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
 16 | import AppKit
 17 | public typealias KYPhotoLibraryImage = NSImage
 18 | extension NSImage: @unchecked Sendable {}
    | |- warning: extension declares a conformance of imported type 'NSImage' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 19 | #endif
 20 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:137:9: error: 'Task' is only available in macOS 10.15 or newer
 19 | #endif
 20 |
 21 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 22 |
 23 |   // MARK: - Public - Save Image to Photo Library
    :
121 |   /// - Returns: An array of matched image, or an empty array if no images match the request.
122 |   ///
123 |   public static func loadImages(
    |                      `- note: add @available attribute to enclosing static method
124 |     fromAlbum albumName: String?,
125 |     expectedSize: CGSize = .zero,
    :
135 |     }
136 |
137 |     try Task.checkCancellation()
    |         |- error: 'Task' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
138 |
139 |     let options = PHImageRequestOptions()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:137:14: error: 'checkCancellation()' is only available in macOS 10.15 or newer
 19 | #endif
 20 |
 21 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 22 |
 23 |   // MARK: - Public - Save Image to Photo Library
    :
121 |   /// - Returns: An array of matched image, or an empty array if no images match the request.
122 |   ///
123 |   public static func loadImages(
    |                      `- note: add @available attribute to enclosing static method
124 |     fromAlbum albumName: String?,
125 |     expectedSize: CGSize = .zero,
    :
135 |     }
136 |
137 |     try Task.checkCancellation()
    |              |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
138 |
139 |     let options = PHImageRequestOptions()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:143:22: error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
 19 | #endif
 20 |
 21 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 22 |
 23 |   // MARK: - Public - Save Image to Photo Library
    :
121 |   /// - Returns: An array of matched image, or an empty array if no images match the request.
122 |   ///
123 |   public static func loadImages(
    |                      `- note: add @available attribute to enclosing static method
124 |     fromAlbum albumName: String?,
125 |     expectedSize: CGSize = .zero,
    :
141 |     options.resizeMode = resizeMode
142 |
143 |     return try await withThrowingTaskGroup(of: KYPhotoLibraryImage.self, returning: [KYPhotoLibraryImage].self) { taskGroup in
    |                      |- error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
144 |       for i in 0..<assets.count {
145 |         let isTaskAdded = taskGroup.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:156:53: error: 'next(isolation:)' is only available in macOS 10.15 or newer
 19 | #endif
 20 |
 21 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 22 |
 23 |   // MARK: - Public - Save Image to Photo Library
    :
121 |   /// - Returns: An array of matched image, or an empty array if no images match the request.
122 |   ///
123 |   public static func loadImages(
    |                      `- note: add @available attribute to enclosing static method
124 |     fromAlbum albumName: String?,
125 |     expectedSize: CGSize = .zero,
    :
154 |         var images: [KYPhotoLibraryImage] = []
155 |         // Fails the task group if a child task throws an error.
156 |         while let loadedImage = try await taskGroup.next() {
    |                                                     |- error: 'next(isolation:)' is only available in macOS 10.15 or newer
    |                                                     `- note: add 'if #available' version check
157 |           images.append(loadedImage)
158 |         }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:165:36: error: 'reduce(into:_:)' is only available in macOS 10.15 or newer
 19 | #endif
 20 |
 21 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 22 |
 23 |   // MARK: - Public - Save Image to Photo Library
    :
121 |   /// - Returns: An array of matched image, or an empty array if no images match the request.
122 |   ///
123 |   public static func loadImages(
    |                      `- note: add @available attribute to enclosing static method
124 |     fromAlbum albumName: String?,
125 |     expectedSize: CGSize = .zero,
    :
163 |         // for await result in taskGroup { images.append(result) }
164 |         // return images
165 |         return try await taskGroup.reduce(into: [KYPhotoLibraryImage]()) { partialResult, image in
    |                                    |- error: 'reduce(into:_:)' is only available in macOS 10.15 or newer
    |                                    `- note: add 'if #available' version check
166 |           partialResult.append(image)
167 |         }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:143:44: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:143:43: note: expanded code originates here
 19 | #endif
 20 |
 21 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 22 |
 23 |   // MARK: - Public - Save Image to Photo Library
    :
121 |   /// - Returns: An array of matched image, or an empty array if no images match the request.
122 |   ///
123 |   public static func loadImages(
    |                      `- note: add @available attribute to enclosing static method
124 |     fromAlbum albumName: String?,
125 |     expectedSize: CGSize = .zero,
    :
141 |     options.resizeMode = resizeMode
142 |
143 |     return try await withThrowingTaskGroup(of: KYPhotoLibraryImage.self, returning: [KYPhotoLibraryImage].self) { taskGroup in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift
    |141 |
    |142 |
    |143 |                                           #isolation
    |    |                                            `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------
144 |       for i in 0..<assets.count {
145 |         let isTaskAdded = taskGroup.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:156:58: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:156:57: note: expanded code originates here
 19 | #endif
 20 |
 21 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 22 |
 23 |   // MARK: - Public - Save Image to Photo Library
    :
121 |   /// - Returns: An array of matched image, or an empty array if no images match the request.
122 |   ///
123 |   public static func loadImages(
    |                      `- note: add @available attribute to enclosing static method
124 |     fromAlbum albumName: String?,
125 |     expectedSize: CGSize = .zero,
    :
154 |         var images: [KYPhotoLibraryImage] = []
155 |         // Fails the task group if a child task throws an error.
156 |         while let loadedImage = try await taskGroup.next() {
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift
    |154 |
    |155 |
    |156 |                                                         #isolation
    |    |                                                          `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------
157 |           images.append(loadedImage)
158 |         }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:192:22: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
 19 | #endif
 20 |
 21 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 22 |
 23 |   // MARK: - Public - Save Image to Photo Library
    :
182 |   /// - Returns: A matched image.
183 |   ///
184 |   private static func _loadImageForAsset(
    |                       `- note: add @available attribute to enclosing static method
185 |     _ asset: PHAsset,
186 |     expectedSize: CGSize,
    :
190 |     let assetRequestActor = AssetRequestActor()
191 |
192 |     return try await withTaskCancellationHandler {
    |                      |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
193 |       KYPhotoLibraryLog("Start Image Request...")
194 |       return try await assetRequestActor.requestImage(
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:201:7: error: 'Task' is only available in macOS 10.15 or newer
 19 | #endif
 20 |
 21 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 22 |
 23 |   // MARK: - Public - Save Image to Photo Library
    :
182 |   /// - Returns: A matched image.
183 |   ///
184 |   private static func _loadImageForAsset(
    |                       `- note: add @available attribute to enclosing static method
185 |     _ asset: PHAsset,
186 |     expectedSize: CGSize,
    :
199 |
200 |     } onCancel: {
201 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
202 |         KYPhotoLibraryLog("Cancel Image Request...")
203 |         await assetRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:201:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 19 | #endif
 20 |
 21 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 22 |
 23 |   // MARK: - Public - Save Image to Photo Library
    :
182 |   /// - Returns: A matched image.
183 |   ///
184 |   private static func _loadImageForAsset(
    |                       `- note: add @available attribute to enclosing static method
185 |     _ asset: PHAsset,
186 |     expectedSize: CGSize,
    :
199 |
200 |     } onCancel: {
201 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
202 |         KYPhotoLibraryLog("Cancel Image Request...")
203 |         await assetRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:192:51: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:192:50: note: expanded code originates here
 19 | #endif
 20 |
 21 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 22 |
 23 |   // MARK: - Public - Save Image to Photo Library
    :
182 |   /// - Returns: A matched image.
183 |   ///
184 |   private static func _loadImageForAsset(
    |                       `- note: add @available attribute to enclosing static method
185 |     _ asset: PHAsset,
186 |     expectedSize: CGSize,
    :
190 |     let assetRequestActor = AssetRequestActor()
191 |
192 |     return try await withTaskCancellationHandler {
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift
    |190 |
    |191 |
    |192 |                                                  #isolation
    |    |                                                   `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------
193 |       KYPhotoLibraryLog("Start Image Request...")
194 |       return try await assetRequestActor.requestImage(
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:79:37: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
 15 | #endif
 16 |
 17 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 18 |
 19 |   // MARK: - Error
    :
 65 |   /// - Returns: The exported image URL.
 66 |   ///
 67 |   public static func exportImageFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 68 |     with assetIdentifier: String,
 69 |     requestOptions: PHImageRequestOptions?,
    :
 77 |     // Request original image data.
 78 |     let imageDataRequestActor = ImageDataRequestActor()
 79 |     let imageData: Data = try await withTaskCancellationHandler {
    |                                     |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
    |                                     `- note: add 'if #available' version check
 80 |       KYPhotoLibraryLog("Start Image Data Request...")
 81 |       return try await imageDataRequestActor.requestOriginalImageData(asset: asset, requestOptions: requestOptions)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:83:7: error: 'Task' is only available in macOS 10.15 or newer
 15 | #endif
 16 |
 17 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 18 |
 19 |   // MARK: - Error
    :
 65 |   /// - Returns: The exported image URL.
 66 |   ///
 67 |   public static func exportImageFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 68 |     with assetIdentifier: String,
 69 |     requestOptions: PHImageRequestOptions?,
    :
 81 |       return try await imageDataRequestActor.requestOriginalImageData(asset: asset, requestOptions: requestOptions)
 82 |     } onCancel: {
 83 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 84 |         KYPhotoLibraryLog("Cancel Image Data Request...")
 85 |         await imageDataRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:83:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 15 | #endif
 16 |
 17 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 18 |
 19 |   // MARK: - Error
    :
 65 |   /// - Returns: The exported image URL.
 66 |   ///
 67 |   public static func exportImageFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 68 |     with assetIdentifier: String,
 69 |     requestOptions: PHImageRequestOptions?,
    :
 81 |       return try await imageDataRequestActor.requestOriginalImageData(asset: asset, requestOptions: requestOptions)
 82 |     } onCancel: {
 83 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 84 |         KYPhotoLibraryLog("Cancel Image Data Request...")
 85 |         await imageDataRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:89:9: error: 'Task' is only available in macOS 10.15 or newer
 15 | #endif
 16 |
 17 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 18 |
 19 |   // MARK: - Error
    :
 65 |   /// - Returns: The exported image URL.
 66 |   ///
 67 |   public static func exportImageFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 68 |     with assetIdentifier: String,
 69 |     requestOptions: PHImageRequestOptions?,
    :
 87 |     }
 88 |
 89 |     try Task.checkCancellation()
    |         |- error: 'Task' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 90 |
 91 |     // Output image.
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:89:14: error: 'checkCancellation()' is only available in macOS 10.15 or newer
 15 | #endif
 16 |
 17 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 18 |
 19 |   // MARK: - Error
    :
 65 |   /// - Returns: The exported image URL.
 66 |   ///
 67 |   public static func exportImageFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 68 |     with assetIdentifier: String,
 69 |     requestOptions: PHImageRequestOptions?,
    :
 87 |     }
 88 |
 89 |     try Task.checkCancellation()
    |              |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
 90 |
 91 |     // Output image.
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:79:66: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:79:65: note: expanded code originates here
 15 | #endif
 16 |
 17 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 18 |
 19 |   // MARK: - Error
    :
 65 |   /// - Returns: The exported image URL.
 66 |   ///
 67 |   public static func exportImageFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 68 |     with assetIdentifier: String,
 69 |     requestOptions: PHImageRequestOptions?,
    :
 77 |     // Request original image data.
 78 |     let imageDataRequestActor = ImageDataRequestActor()
 79 |     let imageData: Data = try await withTaskCancellationHandler {
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift
    |77 |
    |78 |
    |79 |                                                                 #isolation
    |   |                                                                  `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
 80 |       KYPhotoLibraryLog("Start Image Data Request...")
 81 |       return try await imageDataRequestActor.requestOriginalImageData(asset: asset, requestOptions: requestOptions)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:113:37: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
 15 | #endif
 16 |
 17 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 18 |
 19 |   // MARK: - Error
    :
104 |   /// - Returns: The exported image URL.
105 |   ///
106 |   public static func exportImage(
    |                      `- note: add @available attribute to enclosing static method
107 |     _ image: KYPhotoLibraryImage,
108 |     exportOptions: KYPhotoLibraryExportOptions
    :
111 |     // Request image data for type.
112 |     let imageDataRequestActor = ImageDataRequestActor()
113 |     let imageData: Data = try await withTaskCancellationHandler {
    |                                     |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
    |                                     `- note: add 'if #available' version check
114 |       KYPhotoLibraryLog("Start Image Data Request...")
115 |       return try await imageDataRequestActor.requestImageData(
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:120:7: error: 'Task' is only available in macOS 10.15 or newer
 15 | #endif
 16 |
 17 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 18 |
 19 |   // MARK: - Error
    :
104 |   /// - Returns: The exported image URL.
105 |   ///
106 |   public static func exportImage(
    |                      `- note: add @available attribute to enclosing static method
107 |     _ image: KYPhotoLibraryImage,
108 |     exportOptions: KYPhotoLibraryExportOptions
    :
118 |
119 |     } onCancel: {
120 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
121 |         KYPhotoLibraryLog("Cancel Image Data Request...")
122 |         await imageDataRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:120:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 15 | #endif
 16 |
 17 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 18 |
 19 |   // MARK: - Error
    :
104 |   /// - Returns: The exported image URL.
105 |   ///
106 |   public static func exportImage(
    |                      `- note: add @available attribute to enclosing static method
107 |     _ image: KYPhotoLibraryImage,
108 |     exportOptions: KYPhotoLibraryExportOptions
    :
118 |
119 |     } onCancel: {
120 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
121 |         KYPhotoLibraryLog("Cancel Image Data Request...")
122 |         await imageDataRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:126:9: error: 'Task' is only available in macOS 10.15 or newer
 15 | #endif
 16 |
 17 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 18 |
 19 |   // MARK: - Error
    :
104 |   /// - Returns: The exported image URL.
105 |   ///
106 |   public static func exportImage(
    |                      `- note: add @available attribute to enclosing static method
107 |     _ image: KYPhotoLibraryImage,
108 |     exportOptions: KYPhotoLibraryExportOptions
    :
124 |     }
125 |
126 |     try Task.checkCancellation()
    |         |- error: 'Task' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
127 |
128 |     // Output image.
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:126:14: error: 'checkCancellation()' is only available in macOS 10.15 or newer
 15 | #endif
 16 |
 17 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 18 |
 19 |   // MARK: - Error
    :
104 |   /// - Returns: The exported image URL.
105 |   ///
106 |   public static func exportImage(
    |                      `- note: add @available attribute to enclosing static method
107 |     _ image: KYPhotoLibraryImage,
108 |     exportOptions: KYPhotoLibraryExportOptions
    :
124 |     }
125 |
126 |     try Task.checkCancellation()
    |              |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
127 |
128 |     // Output image.
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:113:66: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:113:65: note: expanded code originates here
 15 | #endif
 16 |
 17 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 18 |
 19 |   // MARK: - Error
    :
104 |   /// - Returns: The exported image URL.
105 |   ///
106 |   public static func exportImage(
    |                      `- note: add @available attribute to enclosing static method
107 |     _ image: KYPhotoLibraryImage,
108 |     exportOptions: KYPhotoLibraryExportOptions
    :
111 |     // Request image data for type.
112 |     let imageDataRequestActor = ImageDataRequestActor()
113 |     let imageData: Data = try await withTaskCancellationHandler {
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift
    |111 |
    |112 |
    |113 |                                                                 #isolation
    |    |                                                                  `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
114 |       KYPhotoLibraryLog("Start Image Data Request...")
115 |       return try await imageDataRequestActor.requestImageData(
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:144:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
136 | // MARK: - Image Data Request Actor
137 |
138 | private actor ImageDataRequestActor {
    |               `- note: add @available attribute to enclosing actor
139 |
140 |   private var requestID: PHImageRequestID?
141 |   private var progress: Progress?
142 |
143 |   func requestOriginalImageData(asset: PHAsset, requestOptions: PHImageRequestOptions?) async throws -> Data {
    |        `- note: add @available attribute to enclosing instance method
144 |     return try await withCheckedThrowingContinuation { continuation in
    |                      |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
145 |       self.requestID = PHImageManager.default().requestImageDataAndOrientation(
146 |         for: asset,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:145:49: error: 'requestImageDataAndOrientation(for:options:resultHandler:)' is only available in macOS 10.15 or newer
136 | // MARK: - Image Data Request Actor
137 |
138 | private actor ImageDataRequestActor {
    |               `- note: add @available attribute to enclosing actor
139 |
140 |   private var requestID: PHImageRequestID?
141 |   private var progress: Progress?
142 |
143 |   func requestOriginalImageData(asset: PHAsset, requestOptions: PHImageRequestOptions?) async throws -> Data {
    |        `- note: add @available attribute to enclosing instance method
144 |     return try await withCheckedThrowingContinuation { continuation in
145 |       self.requestID = PHImageManager.default().requestImageDataAndOrientation(
    |                                                 |- error: 'requestImageDataAndOrientation(for:options:resultHandler:)' is only available in macOS 10.15 or newer
    |                                                 `- note: add 'if #available' version check
146 |         for: asset,
147 |         options: requestOptions
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:144:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:144:54: note: expanded code originates here
136 | // MARK: - Image Data Request Actor
137 |
138 | private actor ImageDataRequestActor {
    |               `- note: add @available attribute to enclosing actor
139 |
140 |   private var requestID: PHImageRequestID?
141 |   private var progress: Progress?
142 |
143 |   func requestOriginalImageData(asset: PHAsset, requestOptions: PHImageRequestOptions?) async throws -> Data {
    |        `- note: add @available attribute to enclosing instance method
144 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift
    |142 |
    |143 |
    |144 |                                                      #isolation
    |    |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
145 |       self.requestID = PHImageManager.default().requestImageDataAndOrientation(
146 |         for: asset,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:162:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
136 | // MARK: - Image Data Request Actor
137 |
138 | private actor ImageDataRequestActor {
    |               `- note: add @available attribute to enclosing actor
139 |
140 |   private var requestID: PHImageRequestID?
    :
159 |   }
160 |
161 |   func requestImageData(forTpye typeIdentifier: String, image: KYPhotoLibraryImage) async throws -> Data {
    |        `- note: add @available attribute to enclosing instance method
162 |     return try await withCheckedThrowingContinuation { continuation in
    |                      |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
163 |       self.progress = image.loadData(withTypeIdentifier: typeIdentifier) { data, error in
164 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:162:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:162:54: note: expanded code originates here
136 | // MARK: - Image Data Request Actor
137 |
138 | private actor ImageDataRequestActor {
    |               `- note: add @available attribute to enclosing actor
139 |
140 |   private var requestID: PHImageRequestID?
    :
159 |   }
160 |
161 |   func requestImageData(forTpye typeIdentifier: String, image: KYPhotoLibraryImage) async throws -> Data {
    |        `- note: add @available attribute to enclosing instance method
162 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift
    |160 |
    |161 |
    |162 |                                                      #isolation
    |    |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
163 |       self.progress = image.loadData(withTypeIdentifier: typeIdentifier) { data, error in
164 | #if DEBUG
[20/24] Compiling KYPhotoLibrary KYPhotoLibrary+AssetResource.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:59: error: 'PHAssetResource' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      |                                    `- error: 'PHAssetResource' is only available in macOS 10.15 or newer
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:26: error: 'PHAssetResource' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
   |                          |- error: 'PHAssetResource' is only available in macOS 10.15 or newer
   |                          `- note: add 'if #available' version check
23 |
24 |     var appropriateAssetResource: PHAssetResource?
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:45: error: 'PHAssetResource' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
   |                                             |- error: 'PHAssetResource' is only available in macOS 10.15 or newer
   |                                             `- note: add 'if #available' version check
23 |
24 |     var appropriateAssetResource: PHAssetResource?
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:61: error: 'assetResources(for:)' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
   |                                                             |- error: 'assetResources(for:)' is only available in macOS 10.15 or newer
   |                                                             `- note: add 'if #available' version check
23 |
24 |     var appropriateAssetResource: PHAssetResource?
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:24:35: error: 'PHAssetResource' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
24 |     var appropriateAssetResource: PHAssetResource?
   |                                   |- error: 'PHAssetResource' is only available in macOS 10.15 or newer
   |                                   `- note: add 'if #available' version check
25 |     if asset.mediaType == .image {
26 |       appropriateAssetResource = assetResources.first {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:27:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
25 |     if asset.mediaType == .image {
26 |       appropriateAssetResource = assetResources.first {
27 |         $0.type == .photo ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
28 |         $0.type == .alternatePhoto ||
29 |         $0.type == .fullSizePhoto ||
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:28:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
26 |       appropriateAssetResource = assetResources.first {
27 |         $0.type == .photo ||
28 |         $0.type == .alternatePhoto ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
29 |         $0.type == .fullSizePhoto ||
30 |         $0.type == .adjustmentBasePhoto
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:29:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
27 |         $0.type == .photo ||
28 |         $0.type == .alternatePhoto ||
29 |         $0.type == .fullSizePhoto ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
30 |         $0.type == .adjustmentBasePhoto
31 |       }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:30:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
28 |         $0.type == .alternatePhoto ||
29 |         $0.type == .fullSizePhoto ||
30 |         $0.type == .adjustmentBasePhoto
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
31 |       }
32 |     } else if asset.mediaType == .video {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:34:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
32 |     } else if asset.mediaType == .video {
33 |       appropriateAssetResource = assetResources.first {
34 |         $0.type == .video ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
35 |         $0.type == .fullSizeVideo ||
36 |         $0.type == .pairedVideo ||
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:35:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
33 |       appropriateAssetResource = assetResources.first {
34 |         $0.type == .video ||
35 |         $0.type == .fullSizeVideo ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
36 |         $0.type == .pairedVideo ||
37 |         $0.type == .fullSizePairedVideo ||
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:36:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
34 |         $0.type == .video ||
35 |         $0.type == .fullSizeVideo ||
36 |         $0.type == .pairedVideo ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
37 |         $0.type == .fullSizePairedVideo ||
38 |         $0.type == .adjustmentBasePairedVideo ||
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:37:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
35 |         $0.type == .fullSizeVideo ||
36 |         $0.type == .pairedVideo ||
37 |         $0.type == .fullSizePairedVideo ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
38 |         $0.type == .adjustmentBasePairedVideo ||
39 |         $0.type == .adjustmentBaseVideo
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:37:21: error: 'fullSizePairedVideo' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
35 |         $0.type == .fullSizeVideo ||
36 |         $0.type == .pairedVideo ||
37 |         $0.type == .fullSizePairedVideo ||
   |                     |- error: 'fullSizePairedVideo' is only available in macOS 10.15 or newer
   |                     `- note: add 'if #available' version check
38 |         $0.type == .adjustmentBasePairedVideo ||
39 |         $0.type == .adjustmentBaseVideo
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:38:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
36 |         $0.type == .pairedVideo ||
37 |         $0.type == .fullSizePairedVideo ||
38 |         $0.type == .adjustmentBasePairedVideo ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
39 |         $0.type == .adjustmentBaseVideo
40 |       }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:38:21: error: 'adjustmentBasePairedVideo' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
36 |         $0.type == .pairedVideo ||
37 |         $0.type == .fullSizePairedVideo ||
38 |         $0.type == .adjustmentBasePairedVideo ||
   |                     |- error: 'adjustmentBasePairedVideo' is only available in macOS 10.15 or newer
   |                     `- note: add 'if #available' version check
39 |         $0.type == .adjustmentBaseVideo
40 |       }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:39:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
37 |         $0.type == .fullSizePairedVideo ||
38 |         $0.type == .adjustmentBasePairedVideo ||
39 |         $0.type == .adjustmentBaseVideo
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
40 |       }
41 |     }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:39:21: error: 'adjustmentBaseVideo' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
37 |         $0.type == .fullSizePairedVideo ||
38 |         $0.type == .adjustmentBasePairedVideo ||
39 |         $0.type == .adjustmentBaseVideo
   |                     |- error: 'adjustmentBaseVideo' is only available in macOS 10.15 or newer
   |                     `- note: add 'if #available' version check
40 |       }
41 |     }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:47:39: error: 'originalFilename' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
44 |
45 |   /// Get the original filename of the PHAsset object.
46 |   public static func originalFilename(for asset: PHAsset) -> String? {
   |                      `- note: add @available attribute to enclosing static method
47 |     return assetResource(for: asset)?.originalFilename
   |                                       |- error: 'originalFilename' is only available in macOS 10.15 or newer
   |                                       `- note: add 'if #available' version check
48 |   }
49 | }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:54:30: error: 'PHAssetResource' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 29 |   /// - Returns: An asset URL.
 30 |   ///
 31 |   public static func assetURL(
    |                      `- note: add @available attribute to enclosing static method
 32 |     with assetIdentifier: String,
 33 |     scheme: KYPhotoLibrary.URLScheme = .library,
    :
 52 |     // -      originalFilename: Title.MP4
 53 |     //
 54 |     guard let assetResource: PHAssetResource = assetResource(for: asset) else {
    |                              |- error: 'PHAssetResource' is only available in macOS 10.15 or newer
    |                              `- note: add 'if #available' version check
 55 |       throw AssetError.assetNotFound(assetIdentifier)
 56 |     }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:60:33: error: 'originalFilename' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 29 |   /// - Returns: An asset URL.
 30 |   ///
 31 |   public static func assetURL(
    |                      `- note: add @available attribute to enclosing static method
 32 |     with assetIdentifier: String,
 33 |     scheme: KYPhotoLibrary.URLScheme = .library,
    :
 58 |     var filename: String
 59 |     if useOriginalFilename {
 60 |       filename = (assetResource.originalFilename.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed)
    |                                 |- error: 'originalFilename' is only available in macOS 10.15 or newer
    |                                 `- note: add 'if #available' version check
 61 |                   ?? assetResource.originalFilename)
 62 |     } else {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:61:36: error: 'originalFilename' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 29 |   /// - Returns: An asset URL.
 30 |   ///
 31 |   public static func assetURL(
    |                      `- note: add @available attribute to enclosing static method
 32 |     with assetIdentifier: String,
 33 |     scheme: KYPhotoLibrary.URLScheme = .library,
    :
 59 |     if useOriginalFilename {
 60 |       filename = (assetResource.originalFilename.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed)
 61 |                   ?? assetResource.originalFilename)
    |                                    |- error: 'originalFilename' is only available in macOS 10.15 or newer
    |                                    `- note: add 'if #available' version check
 62 |     } else {
 63 |       guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:63:41: error: 'UTType' is only available in macOS 11.0 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 29 |   /// - Returns: An asset URL.
 30 |   ///
 31 |   public static func assetURL(
    |                      `- note: add @available attribute to enclosing static method
 32 |     with assetIdentifier: String,
 33 |     scheme: KYPhotoLibrary.URLScheme = .library,
    :
 61 |                   ?? assetResource.originalFilename)
 62 |     } else {
 63 |       guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
    |                                         |- error: 'UTType' is only available in macOS 11.0 or newer
    |                                         `- note: add 'if #available' version check
 64 |         throw AssetError.unsupportedMediaType(asset.mediaType.rawValue)
 65 |       }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:63:107: error: 'uniformTypeIdentifier' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 29 |   /// - Returns: An asset URL.
 30 |   ///
 31 |   public static func assetURL(
    |                      `- note: add @available attribute to enclosing static method
 32 |     with assetIdentifier: String,
 33 |     scheme: KYPhotoLibrary.URLScheme = .library,
    :
 61 |                   ?? assetResource.originalFilename)
 62 |     } else {
 63 |       guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
    |                                                                                                           |- error: 'uniformTypeIdentifier' is only available in macOS 10.15 or newer
    |                                                                                                           `- note: add 'if #available' version check
 64 |         throw AssetError.unsupportedMediaType(asset.mediaType.rawValue)
 65 |       }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:82:22: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
 82 |     return try await withTaskCancellationHandler {
    |                      |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
 83 |       KYPhotoLibraryLog("Start image URL request...")
 84 |       let options = PHContentEditingInputRequestOptions()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:84:21: error: 'PHContentEditingInputRequestOptions' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
 82 |     return try await withTaskCancellationHandler {
 83 |       KYPhotoLibraryLog("Start image URL request...")
 84 |       let options = PHContentEditingInputRequestOptions()
    |                     |- error: 'PHContentEditingInputRequestOptions' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 85 |       options.canHandleAdjustmentData = { _ in true }
 86 |       return try await assetRequestActor.requestImageURL(asset, options: options)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:85:15: error: 'canHandleAdjustmentData' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
    :
 83 |       KYPhotoLibraryLog("Start image URL request...")
 84 |       let options = PHContentEditingInputRequestOptions()
 85 |       options.canHandleAdjustmentData = { _ in true }
    |               |- error: 'canHandleAdjustmentData' is only available in macOS 10.15 or newer
    |               `- note: add 'if #available' version check
 86 |       return try await assetRequestActor.requestImageURL(asset, options: options)
 87 |     } onCancel: {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:88:7: error: 'Task' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
    :
 86 |       return try await assetRequestActor.requestImageURL(asset, options: options)
 87 |     } onCancel: {
 88 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 89 |         KYPhotoLibraryLog("Cancel image URL request...")
 90 |         await assetRequestActor.cancelRequst(asset)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:88:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
    :
 86 |       return try await assetRequestActor.requestImageURL(asset, options: options)
 87 |     } onCancel: {
 88 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 89 |         KYPhotoLibraryLog("Cancel image URL request...")
 90 |         await assetRequestActor.cancelRequst(asset)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:82:51: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:82:50: note: expanded code originates here
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
 82 |     return try await withTaskCancellationHandler {
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift
    |80 |
    |81 |
    |82 |                                                  #isolation
    |   |                                                   `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------------
 83 |       KYPhotoLibraryLog("Start image URL request...")
 84 |       let options = PHContentEditingInputRequestOptions()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:98:22: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 93 |   }
 94 |
 95 |   private static func _videoURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 96 |     let assetRequestActor = AssetRequestActor()
 97 |
 98 |     return try await withTaskCancellationHandler {
    |                      |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
 99 |       KYPhotoLibraryLog("Start video URL request...")
100 |       return try await assetRequestActor.requestVideoURL(asset, options: nil)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:102:7: error: 'Task' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 93 |   }
 94 |
 95 |   private static func _videoURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 96 |     let assetRequestActor = AssetRequestActor()
 97 |
    :
100 |       return try await assetRequestActor.requestVideoURL(asset, options: nil)
101 |     } onCancel: {
102 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
103 |         KYPhotoLibraryLog("Cancel video URL request...")
104 |         await assetRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:102:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 93 |   }
 94 |
 95 |   private static func _videoURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 96 |     let assetRequestActor = AssetRequestActor()
 97 |
    :
100 |       return try await assetRequestActor.requestVideoURL(asset, options: nil)
101 |     } onCancel: {
102 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
103 |         KYPhotoLibraryLog("Cancel video URL request...")
104 |         await assetRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:98:51: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:98:50: note: expanded code originates here
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 93 |   }
 94 |
 95 |   private static func _videoURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 96 |     let assetRequestActor = AssetRequestActor()
 97 |
 98 |     return try await withTaskCancellationHandler {
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift
    |96 |
    |97 |
    |98 |                                                  #isolation
    |   |                                                   `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------------
 99 |       KYPhotoLibraryLog("Start video URL request...")
100 |       return try await assetRequestActor.requestVideoURL(asset, options: nil)
[21/24] Compiling KYPhotoLibrary KYPhotoLibrary+AssetURL.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:59: error: 'PHAssetResource' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      |                                    `- error: 'PHAssetResource' is only available in macOS 10.15 or newer
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:26: error: 'PHAssetResource' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
   |                          |- error: 'PHAssetResource' is only available in macOS 10.15 or newer
   |                          `- note: add 'if #available' version check
23 |
24 |     var appropriateAssetResource: PHAssetResource?
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:45: error: 'PHAssetResource' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
   |                                             |- error: 'PHAssetResource' is only available in macOS 10.15 or newer
   |                                             `- note: add 'if #available' version check
23 |
24 |     var appropriateAssetResource: PHAssetResource?
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:61: error: 'assetResources(for:)' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
   |                                                             |- error: 'assetResources(for:)' is only available in macOS 10.15 or newer
   |                                                             `- note: add 'if #available' version check
23 |
24 |     var appropriateAssetResource: PHAssetResource?
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:24:35: error: 'PHAssetResource' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
24 |     var appropriateAssetResource: PHAssetResource?
   |                                   |- error: 'PHAssetResource' is only available in macOS 10.15 or newer
   |                                   `- note: add 'if #available' version check
25 |     if asset.mediaType == .image {
26 |       appropriateAssetResource = assetResources.first {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:27:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
25 |     if asset.mediaType == .image {
26 |       appropriateAssetResource = assetResources.first {
27 |         $0.type == .photo ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
28 |         $0.type == .alternatePhoto ||
29 |         $0.type == .fullSizePhoto ||
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:28:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
26 |       appropriateAssetResource = assetResources.first {
27 |         $0.type == .photo ||
28 |         $0.type == .alternatePhoto ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
29 |         $0.type == .fullSizePhoto ||
30 |         $0.type == .adjustmentBasePhoto
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:29:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
27 |         $0.type == .photo ||
28 |         $0.type == .alternatePhoto ||
29 |         $0.type == .fullSizePhoto ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
30 |         $0.type == .adjustmentBasePhoto
31 |       }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:30:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
28 |         $0.type == .alternatePhoto ||
29 |         $0.type == .fullSizePhoto ||
30 |         $0.type == .adjustmentBasePhoto
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
31 |       }
32 |     } else if asset.mediaType == .video {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:34:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
32 |     } else if asset.mediaType == .video {
33 |       appropriateAssetResource = assetResources.first {
34 |         $0.type == .video ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
35 |         $0.type == .fullSizeVideo ||
36 |         $0.type == .pairedVideo ||
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:35:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
33 |       appropriateAssetResource = assetResources.first {
34 |         $0.type == .video ||
35 |         $0.type == .fullSizeVideo ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
36 |         $0.type == .pairedVideo ||
37 |         $0.type == .fullSizePairedVideo ||
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:36:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
34 |         $0.type == .video ||
35 |         $0.type == .fullSizeVideo ||
36 |         $0.type == .pairedVideo ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
37 |         $0.type == .fullSizePairedVideo ||
38 |         $0.type == .adjustmentBasePairedVideo ||
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:37:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
35 |         $0.type == .fullSizeVideo ||
36 |         $0.type == .pairedVideo ||
37 |         $0.type == .fullSizePairedVideo ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
38 |         $0.type == .adjustmentBasePairedVideo ||
39 |         $0.type == .adjustmentBaseVideo
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:37:21: error: 'fullSizePairedVideo' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
35 |         $0.type == .fullSizeVideo ||
36 |         $0.type == .pairedVideo ||
37 |         $0.type == .fullSizePairedVideo ||
   |                     |- error: 'fullSizePairedVideo' is only available in macOS 10.15 or newer
   |                     `- note: add 'if #available' version check
38 |         $0.type == .adjustmentBasePairedVideo ||
39 |         $0.type == .adjustmentBaseVideo
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:38:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
36 |         $0.type == .pairedVideo ||
37 |         $0.type == .fullSizePairedVideo ||
38 |         $0.type == .adjustmentBasePairedVideo ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
39 |         $0.type == .adjustmentBaseVideo
40 |       }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:38:21: error: 'adjustmentBasePairedVideo' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
36 |         $0.type == .pairedVideo ||
37 |         $0.type == .fullSizePairedVideo ||
38 |         $0.type == .adjustmentBasePairedVideo ||
   |                     |- error: 'adjustmentBasePairedVideo' is only available in macOS 10.15 or newer
   |                     `- note: add 'if #available' version check
39 |         $0.type == .adjustmentBaseVideo
40 |       }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:39:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
37 |         $0.type == .fullSizePairedVideo ||
38 |         $0.type == .adjustmentBasePairedVideo ||
39 |         $0.type == .adjustmentBaseVideo
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
40 |       }
41 |     }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:39:21: error: 'adjustmentBaseVideo' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
37 |         $0.type == .fullSizePairedVideo ||
38 |         $0.type == .adjustmentBasePairedVideo ||
39 |         $0.type == .adjustmentBaseVideo
   |                     |- error: 'adjustmentBaseVideo' is only available in macOS 10.15 or newer
   |                     `- note: add 'if #available' version check
40 |       }
41 |     }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:47:39: error: 'originalFilename' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
44 |
45 |   /// Get the original filename of the PHAsset object.
46 |   public static func originalFilename(for asset: PHAsset) -> String? {
   |                      `- note: add @available attribute to enclosing static method
47 |     return assetResource(for: asset)?.originalFilename
   |                                       |- error: 'originalFilename' is only available in macOS 10.15 or newer
   |                                       `- note: add 'if #available' version check
48 |   }
49 | }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:54:30: error: 'PHAssetResource' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 29 |   /// - Returns: An asset URL.
 30 |   ///
 31 |   public static func assetURL(
    |                      `- note: add @available attribute to enclosing static method
 32 |     with assetIdentifier: String,
 33 |     scheme: KYPhotoLibrary.URLScheme = .library,
    :
 52 |     // -      originalFilename: Title.MP4
 53 |     //
 54 |     guard let assetResource: PHAssetResource = assetResource(for: asset) else {
    |                              |- error: 'PHAssetResource' is only available in macOS 10.15 or newer
    |                              `- note: add 'if #available' version check
 55 |       throw AssetError.assetNotFound(assetIdentifier)
 56 |     }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:60:33: error: 'originalFilename' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 29 |   /// - Returns: An asset URL.
 30 |   ///
 31 |   public static func assetURL(
    |                      `- note: add @available attribute to enclosing static method
 32 |     with assetIdentifier: String,
 33 |     scheme: KYPhotoLibrary.URLScheme = .library,
    :
 58 |     var filename: String
 59 |     if useOriginalFilename {
 60 |       filename = (assetResource.originalFilename.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed)
    |                                 |- error: 'originalFilename' is only available in macOS 10.15 or newer
    |                                 `- note: add 'if #available' version check
 61 |                   ?? assetResource.originalFilename)
 62 |     } else {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:61:36: error: 'originalFilename' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 29 |   /// - Returns: An asset URL.
 30 |   ///
 31 |   public static func assetURL(
    |                      `- note: add @available attribute to enclosing static method
 32 |     with assetIdentifier: String,
 33 |     scheme: KYPhotoLibrary.URLScheme = .library,
    :
 59 |     if useOriginalFilename {
 60 |       filename = (assetResource.originalFilename.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed)
 61 |                   ?? assetResource.originalFilename)
    |                                    |- error: 'originalFilename' is only available in macOS 10.15 or newer
    |                                    `- note: add 'if #available' version check
 62 |     } else {
 63 |       guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:63:41: error: 'UTType' is only available in macOS 11.0 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 29 |   /// - Returns: An asset URL.
 30 |   ///
 31 |   public static func assetURL(
    |                      `- note: add @available attribute to enclosing static method
 32 |     with assetIdentifier: String,
 33 |     scheme: KYPhotoLibrary.URLScheme = .library,
    :
 61 |                   ?? assetResource.originalFilename)
 62 |     } else {
 63 |       guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
    |                                         |- error: 'UTType' is only available in macOS 11.0 or newer
    |                                         `- note: add 'if #available' version check
 64 |         throw AssetError.unsupportedMediaType(asset.mediaType.rawValue)
 65 |       }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:63:107: error: 'uniformTypeIdentifier' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 29 |   /// - Returns: An asset URL.
 30 |   ///
 31 |   public static func assetURL(
    |                      `- note: add @available attribute to enclosing static method
 32 |     with assetIdentifier: String,
 33 |     scheme: KYPhotoLibrary.URLScheme = .library,
    :
 61 |                   ?? assetResource.originalFilename)
 62 |     } else {
 63 |       guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
    |                                                                                                           |- error: 'uniformTypeIdentifier' is only available in macOS 10.15 or newer
    |                                                                                                           `- note: add 'if #available' version check
 64 |         throw AssetError.unsupportedMediaType(asset.mediaType.rawValue)
 65 |       }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:82:22: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
 82 |     return try await withTaskCancellationHandler {
    |                      |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
 83 |       KYPhotoLibraryLog("Start image URL request...")
 84 |       let options = PHContentEditingInputRequestOptions()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:84:21: error: 'PHContentEditingInputRequestOptions' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
 82 |     return try await withTaskCancellationHandler {
 83 |       KYPhotoLibraryLog("Start image URL request...")
 84 |       let options = PHContentEditingInputRequestOptions()
    |                     |- error: 'PHContentEditingInputRequestOptions' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 85 |       options.canHandleAdjustmentData = { _ in true }
 86 |       return try await assetRequestActor.requestImageURL(asset, options: options)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:85:15: error: 'canHandleAdjustmentData' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
    :
 83 |       KYPhotoLibraryLog("Start image URL request...")
 84 |       let options = PHContentEditingInputRequestOptions()
 85 |       options.canHandleAdjustmentData = { _ in true }
    |               |- error: 'canHandleAdjustmentData' is only available in macOS 10.15 or newer
    |               `- note: add 'if #available' version check
 86 |       return try await assetRequestActor.requestImageURL(asset, options: options)
 87 |     } onCancel: {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:88:7: error: 'Task' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
    :
 86 |       return try await assetRequestActor.requestImageURL(asset, options: options)
 87 |     } onCancel: {
 88 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 89 |         KYPhotoLibraryLog("Cancel image URL request...")
 90 |         await assetRequestActor.cancelRequst(asset)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:88:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
    :
 86 |       return try await assetRequestActor.requestImageURL(asset, options: options)
 87 |     } onCancel: {
 88 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 89 |         KYPhotoLibraryLog("Cancel image URL request...")
 90 |         await assetRequestActor.cancelRequst(asset)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:82:51: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:82:50: note: expanded code originates here
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
 82 |     return try await withTaskCancellationHandler {
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift
    |80 |
    |81 |
    |82 |                                                  #isolation
    |   |                                                   `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------------
 83 |       KYPhotoLibraryLog("Start image URL request...")
 84 |       let options = PHContentEditingInputRequestOptions()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:98:22: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 93 |   }
 94 |
 95 |   private static func _videoURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 96 |     let assetRequestActor = AssetRequestActor()
 97 |
 98 |     return try await withTaskCancellationHandler {
    |                      |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
 99 |       KYPhotoLibraryLog("Start video URL request...")
100 |       return try await assetRequestActor.requestVideoURL(asset, options: nil)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:102:7: error: 'Task' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 93 |   }
 94 |
 95 |   private static func _videoURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 96 |     let assetRequestActor = AssetRequestActor()
 97 |
    :
100 |       return try await assetRequestActor.requestVideoURL(asset, options: nil)
101 |     } onCancel: {
102 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
103 |         KYPhotoLibraryLog("Cancel video URL request...")
104 |         await assetRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:102:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 93 |   }
 94 |
 95 |   private static func _videoURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 96 |     let assetRequestActor = AssetRequestActor()
 97 |
    :
100 |       return try await assetRequestActor.requestVideoURL(asset, options: nil)
101 |     } onCancel: {
102 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
103 |         KYPhotoLibraryLog("Cancel video URL request...")
104 |         await assetRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:98:51: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:98:50: note: expanded code originates here
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 93 |   }
 94 |
 95 |   private static func _videoURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 96 |     let assetRequestActor = AssetRequestActor()
 97 |
 98 |     return try await withTaskCancellationHandler {
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift
    |96 |
    |97 |
    |98 |                                                  #isolation
    |   |                                                   `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------------
 99 |       KYPhotoLibraryLog("Start video URL request...")
100 |       return try await assetRequestActor.requestVideoURL(asset, options: nil)
[22/24] Compiling KYPhotoLibrary KYPhotoLibrary+Thumbnail.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:59: error: 'PHAssetResource' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      |                                    `- error: 'PHAssetResource' is only available in macOS 10.15 or newer
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:26: error: 'PHAssetResource' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
   |                          |- error: 'PHAssetResource' is only available in macOS 10.15 or newer
   |                          `- note: add 'if #available' version check
23 |
24 |     var appropriateAssetResource: PHAssetResource?
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:45: error: 'PHAssetResource' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
   |                                             |- error: 'PHAssetResource' is only available in macOS 10.15 or newer
   |                                             `- note: add 'if #available' version check
23 |
24 |     var appropriateAssetResource: PHAssetResource?
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:61: error: 'assetResources(for:)' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
   |                                                             |- error: 'assetResources(for:)' is only available in macOS 10.15 or newer
   |                                                             `- note: add 'if #available' version check
23 |
24 |     var appropriateAssetResource: PHAssetResource?
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:24:35: error: 'PHAssetResource' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
24 |     var appropriateAssetResource: PHAssetResource?
   |                                   |- error: 'PHAssetResource' is only available in macOS 10.15 or newer
   |                                   `- note: add 'if #available' version check
25 |     if asset.mediaType == .image {
26 |       appropriateAssetResource = assetResources.first {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:27:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
25 |     if asset.mediaType == .image {
26 |       appropriateAssetResource = assetResources.first {
27 |         $0.type == .photo ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
28 |         $0.type == .alternatePhoto ||
29 |         $0.type == .fullSizePhoto ||
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:28:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
26 |       appropriateAssetResource = assetResources.first {
27 |         $0.type == .photo ||
28 |         $0.type == .alternatePhoto ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
29 |         $0.type == .fullSizePhoto ||
30 |         $0.type == .adjustmentBasePhoto
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:29:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
27 |         $0.type == .photo ||
28 |         $0.type == .alternatePhoto ||
29 |         $0.type == .fullSizePhoto ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
30 |         $0.type == .adjustmentBasePhoto
31 |       }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:30:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
28 |         $0.type == .alternatePhoto ||
29 |         $0.type == .fullSizePhoto ||
30 |         $0.type == .adjustmentBasePhoto
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
31 |       }
32 |     } else if asset.mediaType == .video {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:34:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
32 |     } else if asset.mediaType == .video {
33 |       appropriateAssetResource = assetResources.first {
34 |         $0.type == .video ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
35 |         $0.type == .fullSizeVideo ||
36 |         $0.type == .pairedVideo ||
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:35:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
33 |       appropriateAssetResource = assetResources.first {
34 |         $0.type == .video ||
35 |         $0.type == .fullSizeVideo ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
36 |         $0.type == .pairedVideo ||
37 |         $0.type == .fullSizePairedVideo ||
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:36:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
34 |         $0.type == .video ||
35 |         $0.type == .fullSizeVideo ||
36 |         $0.type == .pairedVideo ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
37 |         $0.type == .fullSizePairedVideo ||
38 |         $0.type == .adjustmentBasePairedVideo ||
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:37:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
35 |         $0.type == .fullSizeVideo ||
36 |         $0.type == .pairedVideo ||
37 |         $0.type == .fullSizePairedVideo ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
38 |         $0.type == .adjustmentBasePairedVideo ||
39 |         $0.type == .adjustmentBaseVideo
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:37:21: error: 'fullSizePairedVideo' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
35 |         $0.type == .fullSizeVideo ||
36 |         $0.type == .pairedVideo ||
37 |         $0.type == .fullSizePairedVideo ||
   |                     |- error: 'fullSizePairedVideo' is only available in macOS 10.15 or newer
   |                     `- note: add 'if #available' version check
38 |         $0.type == .adjustmentBasePairedVideo ||
39 |         $0.type == .adjustmentBaseVideo
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:38:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
36 |         $0.type == .pairedVideo ||
37 |         $0.type == .fullSizePairedVideo ||
38 |         $0.type == .adjustmentBasePairedVideo ||
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
39 |         $0.type == .adjustmentBaseVideo
40 |       }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:38:21: error: 'adjustmentBasePairedVideo' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
36 |         $0.type == .pairedVideo ||
37 |         $0.type == .fullSizePairedVideo ||
38 |         $0.type == .adjustmentBasePairedVideo ||
   |                     |- error: 'adjustmentBasePairedVideo' is only available in macOS 10.15 or newer
   |                     `- note: add 'if #available' version check
39 |         $0.type == .adjustmentBaseVideo
40 |       }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:39:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
37 |         $0.type == .fullSizePairedVideo ||
38 |         $0.type == .adjustmentBasePairedVideo ||
39 |         $0.type == .adjustmentBaseVideo
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
40 |       }
41 |     }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:39:21: error: 'adjustmentBaseVideo' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
37 |         $0.type == .fullSizePairedVideo ||
38 |         $0.type == .adjustmentBasePairedVideo ||
39 |         $0.type == .adjustmentBaseVideo
   |                     |- error: 'adjustmentBaseVideo' is only available in macOS 10.15 or newer
   |                     `- note: add 'if #available' version check
40 |       }
41 |     }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:47:39: error: 'originalFilename' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
44 |
45 |   /// Get the original filename of the PHAsset object.
46 |   public static func originalFilename(for asset: PHAsset) -> String? {
   |                      `- note: add @available attribute to enclosing static method
47 |     return assetResource(for: asset)?.originalFilename
   |                                       |- error: 'originalFilename' is only available in macOS 10.15 or newer
   |                                       `- note: add 'if #available' version check
48 |   }
49 | }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:54:30: error: 'PHAssetResource' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 29 |   /// - Returns: An asset URL.
 30 |   ///
 31 |   public static func assetURL(
    |                      `- note: add @available attribute to enclosing static method
 32 |     with assetIdentifier: String,
 33 |     scheme: KYPhotoLibrary.URLScheme = .library,
    :
 52 |     // -      originalFilename: Title.MP4
 53 |     //
 54 |     guard let assetResource: PHAssetResource = assetResource(for: asset) else {
    |                              |- error: 'PHAssetResource' is only available in macOS 10.15 or newer
    |                              `- note: add 'if #available' version check
 55 |       throw AssetError.assetNotFound(assetIdentifier)
 56 |     }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:60:33: error: 'originalFilename' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 29 |   /// - Returns: An asset URL.
 30 |   ///
 31 |   public static func assetURL(
    |                      `- note: add @available attribute to enclosing static method
 32 |     with assetIdentifier: String,
 33 |     scheme: KYPhotoLibrary.URLScheme = .library,
    :
 58 |     var filename: String
 59 |     if useOriginalFilename {
 60 |       filename = (assetResource.originalFilename.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed)
    |                                 |- error: 'originalFilename' is only available in macOS 10.15 or newer
    |                                 `- note: add 'if #available' version check
 61 |                   ?? assetResource.originalFilename)
 62 |     } else {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:61:36: error: 'originalFilename' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 29 |   /// - Returns: An asset URL.
 30 |   ///
 31 |   public static func assetURL(
    |                      `- note: add @available attribute to enclosing static method
 32 |     with assetIdentifier: String,
 33 |     scheme: KYPhotoLibrary.URLScheme = .library,
    :
 59 |     if useOriginalFilename {
 60 |       filename = (assetResource.originalFilename.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed)
 61 |                   ?? assetResource.originalFilename)
    |                                    |- error: 'originalFilename' is only available in macOS 10.15 or newer
    |                                    `- note: add 'if #available' version check
 62 |     } else {
 63 |       guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:63:41: error: 'UTType' is only available in macOS 11.0 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 29 |   /// - Returns: An asset URL.
 30 |   ///
 31 |   public static func assetURL(
    |                      `- note: add @available attribute to enclosing static method
 32 |     with assetIdentifier: String,
 33 |     scheme: KYPhotoLibrary.URLScheme = .library,
    :
 61 |                   ?? assetResource.originalFilename)
 62 |     } else {
 63 |       guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
    |                                         |- error: 'UTType' is only available in macOS 11.0 or newer
    |                                         `- note: add 'if #available' version check
 64 |         throw AssetError.unsupportedMediaType(asset.mediaType.rawValue)
 65 |       }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:63:107: error: 'uniformTypeIdentifier' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 29 |   /// - Returns: An asset URL.
 30 |   ///
 31 |   public static func assetURL(
    |                      `- note: add @available attribute to enclosing static method
 32 |     with assetIdentifier: String,
 33 |     scheme: KYPhotoLibrary.URLScheme = .library,
    :
 61 |                   ?? assetResource.originalFilename)
 62 |     } else {
 63 |       guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
    |                                                                                                           |- error: 'uniformTypeIdentifier' is only available in macOS 10.15 or newer
    |                                                                                                           `- note: add 'if #available' version check
 64 |         throw AssetError.unsupportedMediaType(asset.mediaType.rawValue)
 65 |       }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:82:22: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
 82 |     return try await withTaskCancellationHandler {
    |                      |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
 83 |       KYPhotoLibraryLog("Start image URL request...")
 84 |       let options = PHContentEditingInputRequestOptions()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:84:21: error: 'PHContentEditingInputRequestOptions' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
 82 |     return try await withTaskCancellationHandler {
 83 |       KYPhotoLibraryLog("Start image URL request...")
 84 |       let options = PHContentEditingInputRequestOptions()
    |                     |- error: 'PHContentEditingInputRequestOptions' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 85 |       options.canHandleAdjustmentData = { _ in true }
 86 |       return try await assetRequestActor.requestImageURL(asset, options: options)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:85:15: error: 'canHandleAdjustmentData' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
    :
 83 |       KYPhotoLibraryLog("Start image URL request...")
 84 |       let options = PHContentEditingInputRequestOptions()
 85 |       options.canHandleAdjustmentData = { _ in true }
    |               |- error: 'canHandleAdjustmentData' is only available in macOS 10.15 or newer
    |               `- note: add 'if #available' version check
 86 |       return try await assetRequestActor.requestImageURL(asset, options: options)
 87 |     } onCancel: {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:88:7: error: 'Task' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
    :
 86 |       return try await assetRequestActor.requestImageURL(asset, options: options)
 87 |     } onCancel: {
 88 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 89 |         KYPhotoLibraryLog("Cancel image URL request...")
 90 |         await assetRequestActor.cancelRequst(asset)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:88:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
    :
 86 |       return try await assetRequestActor.requestImageURL(asset, options: options)
 87 |     } onCancel: {
 88 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 89 |         KYPhotoLibraryLog("Cancel image URL request...")
 90 |         await assetRequestActor.cancelRequst(asset)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:82:51: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:82:50: note: expanded code originates here
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
 82 |     return try await withTaskCancellationHandler {
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift
    |80 |
    |81 |
    |82 |                                                  #isolation
    |   |                                                   `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------------
 83 |       KYPhotoLibraryLog("Start image URL request...")
 84 |       let options = PHContentEditingInputRequestOptions()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:98:22: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 93 |   }
 94 |
 95 |   private static func _videoURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 96 |     let assetRequestActor = AssetRequestActor()
 97 |
 98 |     return try await withTaskCancellationHandler {
    |                      |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
 99 |       KYPhotoLibraryLog("Start video URL request...")
100 |       return try await assetRequestActor.requestVideoURL(asset, options: nil)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:102:7: error: 'Task' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 93 |   }
 94 |
 95 |   private static func _videoURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 96 |     let assetRequestActor = AssetRequestActor()
 97 |
    :
100 |       return try await assetRequestActor.requestVideoURL(asset, options: nil)
101 |     } onCancel: {
102 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
103 |         KYPhotoLibraryLog("Cancel video URL request...")
104 |         await assetRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:102:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 93 |   }
 94 |
 95 |   private static func _videoURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 96 |     let assetRequestActor = AssetRequestActor()
 97 |
    :
100 |       return try await assetRequestActor.requestVideoURL(asset, options: nil)
101 |     } onCancel: {
102 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
103 |         KYPhotoLibraryLog("Cancel video URL request...")
104 |         await assetRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:98:51: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:98:50: note: expanded code originates here
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 93 |   }
 94 |
 95 |   private static func _videoURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 96 |     let assetRequestActor = AssetRequestActor()
 97 |
 98 |     return try await withTaskCancellationHandler {
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift
    |96 |
    |97 |
    |98 |                                                  #isolation
    |   |                                                   `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------------
 99 |       KYPhotoLibraryLog("Start video URL request...")
100 |       return try await assetRequestActor.requestVideoURL(asset, options: nil)
[23/24] Compiling KYPhotoLibrary KYPhotoLibrary+Video.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:52:14: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
48 |   /// - Returns: An AVAsset object that provides access to the video asset as a collection of tracks and metadata.
49 |   ///
50 |   public static func loadVideo(
   |                      `- note: add @available attribute to enclosing static method
51 |     with assetIdentifier: String,
52 |     options: PHVideoRequestOptions? = nil
   |              `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
53 |   ) async throws -> AVAsset {
54 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:63:69: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
61 |   // MARK: - Private - Load Video from Photo Library
62 |
63 |   private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
   |                       |                                             `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
   |                       `- note: add @available attribute to enclosing static method
64 |     let assetRequestActor = AssetRequestActor()
65 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:66:22: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
61 |   // MARK: - Private - Load Video from Photo Library
62 |
63 |   private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
   |                       `- note: add @available attribute to enclosing static method
64 |     let assetRequestActor = AssetRequestActor()
65 |
66 |     return try await withTaskCancellationHandler {
   |                      |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
   |                      `- note: add 'if #available' version check
67 |       KYPhotoLibraryLog("Start Video Request...")
68 |       return try await assetRequestActor.requestVideo(asset, options: options)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:70:7: error: 'Task' is only available in macOS 10.15 or newer
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
61 |   // MARK: - Private - Load Video from Photo Library
62 |
63 |   private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
   |                       `- note: add @available attribute to enclosing static method
64 |     let assetRequestActor = AssetRequestActor()
65 |
   :
68 |       return try await assetRequestActor.requestVideo(asset, options: options)
69 |     } onCancel: {
70 |       Task {
   |       |- error: 'Task' is only available in macOS 10.15 or newer
   |       `- note: add 'if #available' version check
71 |         KYPhotoLibraryLog("Cancel Video Request...")
72 |         await assetRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:70:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
61 |   // MARK: - Private - Load Video from Photo Library
62 |
63 |   private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
   |                       `- note: add @available attribute to enclosing static method
64 |     let assetRequestActor = AssetRequestActor()
65 |
   :
68 |       return try await assetRequestActor.requestVideo(asset, options: options)
69 |     } onCancel: {
70 |       Task {
   |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
   |       `- note: add 'if #available' version check
71 |         KYPhotoLibraryLog("Cancel Video Request...")
72 |         await assetRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:66:51: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:66:50: note: expanded code originates here
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
61 |   // MARK: - Private - Load Video from Photo Library
62 |
63 |   private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
   |                       `- note: add @available attribute to enclosing static method
64 |     let assetRequestActor = AssetRequestActor()
65 |
66 |     return try await withTaskCancellationHandler {
   +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift
   |64 |
   |65 |
   |66 |                                                  #isolation
   |   |                                                   `- error: 'isolation()' is only available in macOS 10.15 or newer
   +-------------------------------------------------------------------------------------------------------
67 |       KYPhotoLibraryLog("Start Video Request...")
68 |       return try await assetRequestActor.requestVideo(asset, options: options)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:62:21: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    |                     `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
 63 |     exportOptions: KYPhotoLibraryExportOptions
 64 |   ) async throws -> URL? {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:125:21: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
117 | // MARK: - Video Export Session Request Actor
118 |
119 | private actor VideoExportSessionRequestActor {
    |               `- note: add @available attribute to enclosing actor
120 |
121 |   private var requestID: PHImageRequestID?
122 |
123 |   func requestSession(
    |        `- note: add @available attribute to enclosing instance method
124 |     asset: PHAsset,
125 |     requestOptions: PHVideoRequestOptions?,
    |                     `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
126 |     exportOptions: KYPhotoLibraryExportOptions
127 |   ) async throws -> AVAssetExportSession {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:73:51: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 71 |     //
 72 |     let exportSessionRequestActor = VideoExportSessionRequestActor()
 73 |     let session: AVAssetExportSession = try await withTaskCancellationHandler {
    |                                                   |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
    |                                                   `- note: add 'if #available' version check
 74 |       KYPhotoLibraryLog("Start Export Session Request...")
 75 |       return try await exportSessionRequestActor.requestSession(
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:81:7: error: 'Task' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 79 |       )
 80 |     } onCancel: {
 81 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 82 |         KYPhotoLibraryLog("Cancel Export Session Request...")
 83 |         await exportSessionRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:81:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 79 |       )
 80 |     } onCancel: {
 81 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 82 |         KYPhotoLibraryLog("Cancel Export Session Request...")
 83 |         await exportSessionRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:90:9: error: 'Task' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 88 |     KYPhotoLibraryDebug.simulateWaiting(.assetExport)
 89 | #endif
 90 |     try Task.checkCancellation()
    |         |- error: 'Task' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 91 |
 92 |     // Export video w/ the session prepared.
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:90:14: error: 'checkCancellation()' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 88 |     KYPhotoLibraryDebug.simulateWaiting(.assetExport)
 89 | #endif
 90 |     try Task.checkCancellation()
    |              |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
 91 |
 92 |     // Export video w/ the session prepared.
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:102:9: error: 'Task' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
100 |     let outputURL: URL = try await exportOptions.prepareOutputURL(for: asset)
101 |
102 |     try Task.checkCancellation()
    |         |- error: 'Task' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
103 |
104 |     if #available(iOS 18, *) {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:102:14: error: 'checkCancellation()' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
100 |     let outputURL: URL = try await exportOptions.prepareOutputURL(for: asset)
101 |
102 |     try Task.checkCancellation()
    |              |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
103 |
104 |     if #available(iOS 18, *) {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:105:25: error: 'export(to:as:isolation:)' is only available in macOS 15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
103 |
104 |     if #available(iOS 18, *) {
105 |       try await session.export(to: outputURL, as: outputFileType)
    |                         |- error: 'export(to:as:isolation:)' is only available in macOS 15 or newer
    |                         `- note: add 'if #available' version check
106 |     } else {
107 |       session.outputURL = outputURL
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:73:80: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:73:79: note: expanded code originates here
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 71 |     //
 72 |     let exportSessionRequestActor = VideoExportSessionRequestActor()
 73 |     let session: AVAssetExportSession = try await withTaskCancellationHandler {
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift
    |71 |
    |72 |
    |73 |                                                                               #isolation
    |   |                                                                                `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
 74 |       KYPhotoLibraryLog("Start Export Session Request...")
 75 |       return try await exportSessionRequestActor.requestSession(
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:105:32: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:105:31: note: expanded code originates here
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
103 |
104 |     if #available(iOS 18, *) {
105 |       try await session.export(to: outputURL, as: outputFileType)
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift
    |103 |
    |104 |
    |105 |                               #isolation
    |    |                                `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
106 |     } else {
107 |       session.outputURL = outputURL
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:75:50: warning: non-sendable result type 'AVAssetExportSession' cannot be sent from actor-isolated context in call to instance method 'requestSession(asset:requestOptions:exportOptions:)'; this is an error in the Swift 6 language mode
 73 |     let session: AVAssetExportSession = try await withTaskCancellationHandler {
 74 |       KYPhotoLibraryLog("Start Export Session Request...")
 75 |       return try await exportSessionRequestActor.requestSession(
    |                                                  `- warning: non-sendable result type 'AVAssetExportSession' cannot be sent from actor-isolated context in call to instance method 'requestSession(asset:requestOptions:exportOptions:)'; this is an error in the Swift 6 language mode
 76 |         asset: asset,
 77 |         requestOptions: requestOptions,
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetExportSession.h:156:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
154 | NS_SWIFT_NONSENDABLE
155 | API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
156 | @interface AVAssetExportSession : NSObject
    |            `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
157 | {
158 | @private
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:129:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
117 | // MARK: - Video Export Session Request Actor
118 |
119 | private actor VideoExportSessionRequestActor {
    |               `- note: add @available attribute to enclosing actor
120 |
121 |   private var requestID: PHImageRequestID?
122 |
123 |   func requestSession(
    |        `- note: add @available attribute to enclosing instance method
124 |     asset: PHAsset,
125 |     requestOptions: PHVideoRequestOptions?,
    :
127 |   ) async throws -> AVAssetExportSession {
128 |
129 |     return try await withCheckedThrowingContinuation { continuation in
    |                      |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
130 |       self.requestID = PHImageManager.default().requestExportSession(
131 |         forVideo: asset,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:130:49: error: 'requestExportSession(forVideo:options:exportPreset:resultHandler:)' is only available in macOS 10.15 or newer
117 | // MARK: - Video Export Session Request Actor
118 |
119 | private actor VideoExportSessionRequestActor {
    |               `- note: add @available attribute to enclosing actor
120 |
121 |   private var requestID: PHImageRequestID?
122 |
123 |   func requestSession(
    |        `- note: add @available attribute to enclosing instance method
124 |     asset: PHAsset,
125 |     requestOptions: PHVideoRequestOptions?,
    :
128 |
129 |     return try await withCheckedThrowingContinuation { continuation in
130 |       self.requestID = PHImageManager.default().requestExportSession(
    |                                                 |- error: 'requestExportSession(forVideo:options:exportPreset:resultHandler:)' is only available in macOS 10.15 or newer
    |                                                 `- note: add 'if #available' version check
131 |         forVideo: asset,
132 |         options: requestOptions,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:129:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:129:54: note: expanded code originates here
117 | // MARK: - Video Export Session Request Actor
118 |
119 | private actor VideoExportSessionRequestActor {
    |               `- note: add @available attribute to enclosing actor
120 |
121 |   private var requestID: PHImageRequestID?
122 |
123 |   func requestSession(
    |        `- note: add @available attribute to enclosing instance method
124 |     asset: PHAsset,
125 |     requestOptions: PHVideoRequestOptions?,
    :
127 |   ) async throws -> AVAssetExportSession {
128 |
129 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift
    |127 |
    |128 |
    |129 |                                                      #isolation
    |    |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
130 |       self.requestID = PHImageManager.default().requestExportSession(
131 |         forVideo: asset,
[24/24] Compiling KYPhotoLibrary KYPhotoLibrary+VideoExport.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:52:14: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
48 |   /// - Returns: An AVAsset object that provides access to the video asset as a collection of tracks and metadata.
49 |   ///
50 |   public static func loadVideo(
   |                      `- note: add @available attribute to enclosing static method
51 |     with assetIdentifier: String,
52 |     options: PHVideoRequestOptions? = nil
   |              `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
53 |   ) async throws -> AVAsset {
54 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:63:69: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
61 |   // MARK: - Private - Load Video from Photo Library
62 |
63 |   private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
   |                       |                                             `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
   |                       `- note: add @available attribute to enclosing static method
64 |     let assetRequestActor = AssetRequestActor()
65 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:66:22: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
61 |   // MARK: - Private - Load Video from Photo Library
62 |
63 |   private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
   |                       `- note: add @available attribute to enclosing static method
64 |     let assetRequestActor = AssetRequestActor()
65 |
66 |     return try await withTaskCancellationHandler {
   |                      |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
   |                      `- note: add 'if #available' version check
67 |       KYPhotoLibraryLog("Start Video Request...")
68 |       return try await assetRequestActor.requestVideo(asset, options: options)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:70:7: error: 'Task' is only available in macOS 10.15 or newer
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
61 |   // MARK: - Private - Load Video from Photo Library
62 |
63 |   private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
   |                       `- note: add @available attribute to enclosing static method
64 |     let assetRequestActor = AssetRequestActor()
65 |
   :
68 |       return try await assetRequestActor.requestVideo(asset, options: options)
69 |     } onCancel: {
70 |       Task {
   |       |- error: 'Task' is only available in macOS 10.15 or newer
   |       `- note: add 'if #available' version check
71 |         KYPhotoLibraryLog("Cancel Video Request...")
72 |         await assetRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:70:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
61 |   // MARK: - Private - Load Video from Photo Library
62 |
63 |   private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
   |                       `- note: add @available attribute to enclosing static method
64 |     let assetRequestActor = AssetRequestActor()
65 |
   :
68 |       return try await assetRequestActor.requestVideo(asset, options: options)
69 |     } onCancel: {
70 |       Task {
   |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
   |       `- note: add 'if #available' version check
71 |         KYPhotoLibraryLog("Cancel Video Request...")
72 |         await assetRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:66:51: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:66:50: note: expanded code originates here
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
61 |   // MARK: - Private - Load Video from Photo Library
62 |
63 |   private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
   |                       `- note: add @available attribute to enclosing static method
64 |     let assetRequestActor = AssetRequestActor()
65 |
66 |     return try await withTaskCancellationHandler {
   +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift
   |64 |
   |65 |
   |66 |                                                  #isolation
   |   |                                                   `- error: 'isolation()' is only available in macOS 10.15 or newer
   +-------------------------------------------------------------------------------------------------------
67 |       KYPhotoLibraryLog("Start Video Request...")
68 |       return try await assetRequestActor.requestVideo(asset, options: options)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:62:21: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    |                     `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
 63 |     exportOptions: KYPhotoLibraryExportOptions
 64 |   ) async throws -> URL? {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:125:21: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
117 | // MARK: - Video Export Session Request Actor
118 |
119 | private actor VideoExportSessionRequestActor {
    |               `- note: add @available attribute to enclosing actor
120 |
121 |   private var requestID: PHImageRequestID?
122 |
123 |   func requestSession(
    |        `- note: add @available attribute to enclosing instance method
124 |     asset: PHAsset,
125 |     requestOptions: PHVideoRequestOptions?,
    |                     `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
126 |     exportOptions: KYPhotoLibraryExportOptions
127 |   ) async throws -> AVAssetExportSession {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:73:51: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 71 |     //
 72 |     let exportSessionRequestActor = VideoExportSessionRequestActor()
 73 |     let session: AVAssetExportSession = try await withTaskCancellationHandler {
    |                                                   |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
    |                                                   `- note: add 'if #available' version check
 74 |       KYPhotoLibraryLog("Start Export Session Request...")
 75 |       return try await exportSessionRequestActor.requestSession(
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:81:7: error: 'Task' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 79 |       )
 80 |     } onCancel: {
 81 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 82 |         KYPhotoLibraryLog("Cancel Export Session Request...")
 83 |         await exportSessionRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:81:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 79 |       )
 80 |     } onCancel: {
 81 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 82 |         KYPhotoLibraryLog("Cancel Export Session Request...")
 83 |         await exportSessionRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:90:9: error: 'Task' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 88 |     KYPhotoLibraryDebug.simulateWaiting(.assetExport)
 89 | #endif
 90 |     try Task.checkCancellation()
    |         |- error: 'Task' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 91 |
 92 |     // Export video w/ the session prepared.
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:90:14: error: 'checkCancellation()' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 88 |     KYPhotoLibraryDebug.simulateWaiting(.assetExport)
 89 | #endif
 90 |     try Task.checkCancellation()
    |              |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
 91 |
 92 |     // Export video w/ the session prepared.
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:102:9: error: 'Task' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
100 |     let outputURL: URL = try await exportOptions.prepareOutputURL(for: asset)
101 |
102 |     try Task.checkCancellation()
    |         |- error: 'Task' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
103 |
104 |     if #available(iOS 18, *) {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:102:14: error: 'checkCancellation()' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
100 |     let outputURL: URL = try await exportOptions.prepareOutputURL(for: asset)
101 |
102 |     try Task.checkCancellation()
    |              |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
103 |
104 |     if #available(iOS 18, *) {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:105:25: error: 'export(to:as:isolation:)' is only available in macOS 15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
103 |
104 |     if #available(iOS 18, *) {
105 |       try await session.export(to: outputURL, as: outputFileType)
    |                         |- error: 'export(to:as:isolation:)' is only available in macOS 15 or newer
    |                         `- note: add 'if #available' version check
106 |     } else {
107 |       session.outputURL = outputURL
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:73:80: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:73:79: note: expanded code originates here
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 71 |     //
 72 |     let exportSessionRequestActor = VideoExportSessionRequestActor()
 73 |     let session: AVAssetExportSession = try await withTaskCancellationHandler {
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift
    |71 |
    |72 |
    |73 |                                                                               #isolation
    |   |                                                                                `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
 74 |       KYPhotoLibraryLog("Start Export Session Request...")
 75 |       return try await exportSessionRequestActor.requestSession(
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:105:32: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:105:31: note: expanded code originates here
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
103 |
104 |     if #available(iOS 18, *) {
105 |       try await session.export(to: outputURL, as: outputFileType)
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift
    |103 |
    |104 |
    |105 |                               #isolation
    |    |                                `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
106 |     } else {
107 |       session.outputURL = outputURL
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:75:50: warning: non-sendable result type 'AVAssetExportSession' cannot be sent from actor-isolated context in call to instance method 'requestSession(asset:requestOptions:exportOptions:)'; this is an error in the Swift 6 language mode
 73 |     let session: AVAssetExportSession = try await withTaskCancellationHandler {
 74 |       KYPhotoLibraryLog("Start Export Session Request...")
 75 |       return try await exportSessionRequestActor.requestSession(
    |                                                  `- warning: non-sendable result type 'AVAssetExportSession' cannot be sent from actor-isolated context in call to instance method 'requestSession(asset:requestOptions:exportOptions:)'; this is an error in the Swift 6 language mode
 76 |         asset: asset,
 77 |         requestOptions: requestOptions,
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetExportSession.h:156:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
154 | NS_SWIFT_NONSENDABLE
155 | API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
156 | @interface AVAssetExportSession : NSObject
    |            `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
157 | {
158 | @private
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:129:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
117 | // MARK: - Video Export Session Request Actor
118 |
119 | private actor VideoExportSessionRequestActor {
    |               `- note: add @available attribute to enclosing actor
120 |
121 |   private var requestID: PHImageRequestID?
122 |
123 |   func requestSession(
    |        `- note: add @available attribute to enclosing instance method
124 |     asset: PHAsset,
125 |     requestOptions: PHVideoRequestOptions?,
    :
127 |   ) async throws -> AVAssetExportSession {
128 |
129 |     return try await withCheckedThrowingContinuation { continuation in
    |                      |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
130 |       self.requestID = PHImageManager.default().requestExportSession(
131 |         forVideo: asset,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:130:49: error: 'requestExportSession(forVideo:options:exportPreset:resultHandler:)' is only available in macOS 10.15 or newer
117 | // MARK: - Video Export Session Request Actor
118 |
119 | private actor VideoExportSessionRequestActor {
    |               `- note: add @available attribute to enclosing actor
120 |
121 |   private var requestID: PHImageRequestID?
122 |
123 |   func requestSession(
    |        `- note: add @available attribute to enclosing instance method
124 |     asset: PHAsset,
125 |     requestOptions: PHVideoRequestOptions?,
    :
128 |
129 |     return try await withCheckedThrowingContinuation { continuation in
130 |       self.requestID = PHImageManager.default().requestExportSession(
    |                                                 |- error: 'requestExportSession(forVideo:options:exportPreset:resultHandler:)' is only available in macOS 10.15 or newer
    |                                                 `- note: add 'if #available' version check
131 |         forVideo: asset,
132 |         options: requestOptions,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:129:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:129:54: note: expanded code originates here
117 | // MARK: - Video Export Session Request Actor
118 |
119 | private actor VideoExportSessionRequestActor {
    |               `- note: add @available attribute to enclosing actor
120 |
121 |   private var requestID: PHImageRequestID?
122 |
123 |   func requestSession(
    |        `- note: add @available attribute to enclosing instance method
124 |     asset: PHAsset,
125 |     requestOptions: PHVideoRequestOptions?,
    :
127 |   ) async throws -> AVAssetExportSession {
128 |
129 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift
    |127 |
    |128 |
    |129 |                                                      #isolation
    |    |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
130 |       self.requestID = PHImageManager.default().requestExportSession(
131 |         forVideo: asset,
BUILD FAILURE 6.1 macosSpm