The Swift Package Index logo.Swift Package Index

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

Build Information

Failed to build KYPhotoLibrary, reference 2.0.0 (28e87c), with Swift 6.0 for macOS (SPM) on 16 Nov 2024 08:14:41 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

    |                      `- 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(asset, expectedSize: expectedSize, options: options)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:196: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,
    :
194 |       return try await assetRequestActor.requestImage(asset, expectedSize: expectedSize, options: options)
195 |     } onCancel: {
196 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
197 |         KYPhotoLibraryLog("Cancel Image Request...")
198 |         await assetRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:196: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,
    :
194 |       return try await assetRequestActor.requestImage(asset, expectedSize: expectedSize, options: options)
195 |     } onCancel: {
196 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
197 |         KYPhotoLibraryLog("Cancel Image Request...")
198 |         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(asset, expectedSize: expectedSize, options: options)
/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
[21/25] Compiling KYPhotoLibrary URL+KYPhotoLibrary.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/URL+KYPhotoLibrary.swift:23:65: error: 'contentTypeKey' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension URL {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Get File Extension
15 |
16 |   /// Get the file extension from an existing file.
17 |   public func ky_getExistingFileExtension() throws -> String? {
   |               `- note: add @available attribute to enclosing instance method
18 |     guard let isReachable = try? checkResourceIsReachable(), isReachable else {
19 |       return nil
   :
21 |
22 |     var contentType: AnyObject?
23 |     try (self as NSURL).getResourceValue(&contentType, forKey: .contentTypeKey)
   |                                                                 |- error: 'contentTypeKey' is only available in macOS 11.0 or newer
   |                                                                 `- note: add 'if #available' version check
24 |
25 |     guard let contentType else {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/URL+KYPhotoLibrary.swift:29:35: error: 'UTType' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension URL {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Get File Extension
15 |
16 |   /// Get the file extension from an existing file.
17 |   public func ky_getExistingFileExtension() throws -> String? {
   |               `- note: add @available attribute to enclosing instance method
18 |     guard let isReachable = try? checkResourceIsReachable(), isReachable else {
19 |       return nil
   :
27 |     }
28 |
29 |     if let type = contentType as? UTType {
   |                                   |- error: 'UTType' is only available in macOS 11.0 or newer
   |                                   `- note: add 'if #available' version check
30 |       return type.ky_getFileExtension()
31 |     } else if let string = contentType as? String {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:16:56: error: 'UTType' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
15 |
16 |   public static func ky_fromFile(with fileURL: URL) -> UTType? {
   |                      |                                 `- error: 'UTType' is only available in macOS 11.0 or newer
   |                      `- note: add @available attribute to enclosing static method
17 |     if let fileExtension: String = ky_getFileExtensionFromURL(fileURL) {
18 |       return UTType(filenameExtension: fileExtension)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:12:11: error: 'UTType' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | |         `- error: 'UTType' is only available in macOS 11.0 or newer
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:18:14: error: 'UTType' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
15 |
16 |   public static func ky_fromFile(with fileURL: URL) -> UTType? {
   |                      `- note: add @available attribute to enclosing static method
17 |     if let fileExtension: String = ky_getFileExtensionFromURL(fileURL) {
18 |       return UTType(filenameExtension: fileExtension)
   |              |- error: 'UTType' is only available in macOS 11.0 or newer
   |              `- note: add 'if #available' version check
19 |     } else {
20 |       return nil
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:18:14: error: 'init(filenameExtension:conformingTo:)' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
15 |
16 |   public static func ky_fromFile(with fileURL: URL) -> UTType? {
   |                      `- note: add @available attribute to enclosing static method
17 |     if let fileExtension: String = ky_getFileExtensionFromURL(fileURL) {
18 |       return UTType(filenameExtension: fileExtension)
   |              |- error: 'init(filenameExtension:conformingTo:)' is only available in macOS 11.0 or newer
   |              `- note: add 'if #available' version check
19 |     } else {
20 |       return nil
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:36:22: error: 'UTType' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
33 |   }
34 |
35 |   public static func ky_getFileExtensionFromUniformTypeIdentifier(_ identifier: String) -> String? {
   |                      `- note: add @available attribute to enclosing static method
36 |     guard let type = UTType(identifier) else {
   |                      |- error: 'UTType' is only available in macOS 11.0 or newer
   |                      `- note: add 'if #available' version check
37 |       return nil
38 |     }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:36:22: error: 'init(_:)' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
33 |   }
34 |
35 |   public static func ky_getFileExtensionFromUniformTypeIdentifier(_ identifier: String) -> String? {
   |                      `- note: add @available attribute to enclosing static method
36 |     guard let type = UTType(identifier) else {
   |                      |- error: 'init(_:)' is only available in macOS 11.0 or newer
   |                      `- note: add 'if #available' version check
37 |       return nil
38 |     }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:43:17: error: 'preferredFilenameExtension' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
40 |   }
41 |
42 |   public func ky_getFileExtension() -> String? {
   |               `- note: add @available attribute to enclosing instance method
43 |     return self.preferredFilenameExtension ?? self.tags[UTTagClass.filenameExtension]?.first
   |                 |- error: 'preferredFilenameExtension' is only available in macOS 11.0 or newer
   |                 `- note: add 'if #available' version check
44 |   }
45 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:43:47: warning: conformance of 'UTTagClass' to 'Hashable' is only available in macOS 11.0 or newer; this is an error in the Swift 6 language mode
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
40 |   }
41 |
42 |   public func ky_getFileExtension() -> String? {
   |               `- note: add @available attribute to enclosing instance method
43 |     return self.preferredFilenameExtension ?? self.tags[UTTagClass.filenameExtension]?.first
   |                                               |- warning: conformance of 'UTTagClass' to 'Hashable' is only available in macOS 11.0 or newer; this is an error in the Swift 6 language mode
   |                                               `- note: add 'if #available' version check
44 |   }
45 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:43:52: error: 'tags' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
40 |   }
41 |
42 |   public func ky_getFileExtension() -> String? {
   |               `- note: add @available attribute to enclosing instance method
43 |     return self.preferredFilenameExtension ?? self.tags[UTTagClass.filenameExtension]?.first
   |                                                    |- error: 'tags' is only available in macOS 11.0 or newer
   |                                                    `- note: add 'if #available' version check
44 |   }
45 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:43:57: error: 'UTTagClass' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
40 |   }
41 |
42 |   public func ky_getFileExtension() -> String? {
   |               `- note: add @available attribute to enclosing instance method
43 |     return self.preferredFilenameExtension ?? self.tags[UTTagClass.filenameExtension]?.first
   |                                                         |- error: 'UTTagClass' is only available in macOS 11.0 or newer
   |                                                         `- note: add 'if #available' version check
44 |   }
45 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:43:68: error: 'filenameExtension' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
40 |   }
41 |
42 |   public func ky_getFileExtension() -> String? {
   |               `- note: add @available attribute to enclosing instance method
43 |     return self.preferredFilenameExtension ?? self.tags[UTTagClass.filenameExtension]?.first
   |                                                                    |- error: 'filenameExtension' is only available in macOS 11.0 or newer
   |                                                                    `- note: add 'if #available' version check
44 |   }
45 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:49:12: error: 'conforms(to:)' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
46 |   // MARK: - File Type Checking
47 |
48 |   public func ky_isPhotoFileType() -> Bool {
   |               `- note: add @available attribute to enclosing instance method
49 |     return conforms(to: .image)
   |            |- error: 'conforms(to:)' is only available in macOS 11.0 or newer
   |            `- note: add 'if #available' version check
50 |   }
51 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:49:26: error: 'image' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
46 |   // MARK: - File Type Checking
47 |
48 |   public func ky_isPhotoFileType() -> Bool {
   |               `- note: add @available attribute to enclosing instance method
49 |     return conforms(to: .image)
   |                          |- error: 'image' is only available in macOS 11.0 or newer
   |                          `- note: add 'if #available' version check
50 |   }
51 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:53:12: error: 'conforms(to:)' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
50 |   }
51 |
52 |   public func ky_isVideoFileType() -> Bool {
   |               `- note: add @available attribute to enclosing instance method
53 |     return conforms(to: .movie)
   |            |- error: 'conforms(to:)' is only available in macOS 11.0 or newer
   |            `- note: add 'if #available' version check
54 |   }
55 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:53:26: error: 'movie' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
50 |   }
51 |
52 |   public func ky_isVideoFileType() -> Bool {
   |               `- note: add @available attribute to enclosing instance method
53 |     return conforms(to: .movie)
   |                          |- error: 'movie' is only available in macOS 11.0 or newer
   |                          `- note: add 'if #available' version check
54 |   }
55 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:57:12: error: 'conforms(to:)' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
54 |   }
55 |
56 |   public func ky_isAudioFileType() -> Bool {
   |               `- note: add @available attribute to enclosing instance method
57 |     return conforms(to: .audio)
   |            |- error: 'conforms(to:)' is only available in macOS 11.0 or newer
   |            `- note: add 'if #available' version check
58 |   }
59 | }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:57:26: error: 'audio' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
54 |   }
55 |
56 |   public func ky_isAudioFileType() -> Bool {
   |               `- note: add @available attribute to enclosing instance method
57 |     return conforms(to: .audio)
   |                          |- error: 'audio' is only available in macOS 11.0 or newer
   |                          `- note: add 'if #available' version check
58 |   }
59 | }
[22/25] Compiling KYPhotoLibrary UTType+KYPhotoLibrary.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/URL+KYPhotoLibrary.swift:23:65: error: 'contentTypeKey' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension URL {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Get File Extension
15 |
16 |   /// Get the file extension from an existing file.
17 |   public func ky_getExistingFileExtension() throws -> String? {
   |               `- note: add @available attribute to enclosing instance method
18 |     guard let isReachable = try? checkResourceIsReachable(), isReachable else {
19 |       return nil
   :
21 |
22 |     var contentType: AnyObject?
23 |     try (self as NSURL).getResourceValue(&contentType, forKey: .contentTypeKey)
   |                                                                 |- error: 'contentTypeKey' is only available in macOS 11.0 or newer
   |                                                                 `- note: add 'if #available' version check
24 |
25 |     guard let contentType else {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/URL+KYPhotoLibrary.swift:29:35: error: 'UTType' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension URL {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Get File Extension
15 |
16 |   /// Get the file extension from an existing file.
17 |   public func ky_getExistingFileExtension() throws -> String? {
   |               `- note: add @available attribute to enclosing instance method
18 |     guard let isReachable = try? checkResourceIsReachable(), isReachable else {
19 |       return nil
   :
27 |     }
28 |
29 |     if let type = contentType as? UTType {
   |                                   |- error: 'UTType' is only available in macOS 11.0 or newer
   |                                   `- note: add 'if #available' version check
30 |       return type.ky_getFileExtension()
31 |     } else if let string = contentType as? String {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:16:56: error: 'UTType' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
15 |
16 |   public static func ky_fromFile(with fileURL: URL) -> UTType? {
   |                      |                                 `- error: 'UTType' is only available in macOS 11.0 or newer
   |                      `- note: add @available attribute to enclosing static method
17 |     if let fileExtension: String = ky_getFileExtensionFromURL(fileURL) {
18 |       return UTType(filenameExtension: fileExtension)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:12:11: error: 'UTType' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | |         `- error: 'UTType' is only available in macOS 11.0 or newer
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:18:14: error: 'UTType' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
15 |
16 |   public static func ky_fromFile(with fileURL: URL) -> UTType? {
   |                      `- note: add @available attribute to enclosing static method
17 |     if let fileExtension: String = ky_getFileExtensionFromURL(fileURL) {
18 |       return UTType(filenameExtension: fileExtension)
   |              |- error: 'UTType' is only available in macOS 11.0 or newer
   |              `- note: add 'if #available' version check
19 |     } else {
20 |       return nil
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:18:14: error: 'init(filenameExtension:conformingTo:)' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
15 |
16 |   public static func ky_fromFile(with fileURL: URL) -> UTType? {
   |                      `- note: add @available attribute to enclosing static method
17 |     if let fileExtension: String = ky_getFileExtensionFromURL(fileURL) {
18 |       return UTType(filenameExtension: fileExtension)
   |              |- error: 'init(filenameExtension:conformingTo:)' is only available in macOS 11.0 or newer
   |              `- note: add 'if #available' version check
19 |     } else {
20 |       return nil
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:36:22: error: 'UTType' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
33 |   }
34 |
35 |   public static func ky_getFileExtensionFromUniformTypeIdentifier(_ identifier: String) -> String? {
   |                      `- note: add @available attribute to enclosing static method
36 |     guard let type = UTType(identifier) else {
   |                      |- error: 'UTType' is only available in macOS 11.0 or newer
   |                      `- note: add 'if #available' version check
37 |       return nil
38 |     }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:36:22: error: 'init(_:)' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
33 |   }
34 |
35 |   public static func ky_getFileExtensionFromUniformTypeIdentifier(_ identifier: String) -> String? {
   |                      `- note: add @available attribute to enclosing static method
36 |     guard let type = UTType(identifier) else {
   |                      |- error: 'init(_:)' is only available in macOS 11.0 or newer
   |                      `- note: add 'if #available' version check
37 |       return nil
38 |     }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:43:17: error: 'preferredFilenameExtension' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
40 |   }
41 |
42 |   public func ky_getFileExtension() -> String? {
   |               `- note: add @available attribute to enclosing instance method
43 |     return self.preferredFilenameExtension ?? self.tags[UTTagClass.filenameExtension]?.first
   |                 |- error: 'preferredFilenameExtension' is only available in macOS 11.0 or newer
   |                 `- note: add 'if #available' version check
44 |   }
45 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:43:47: warning: conformance of 'UTTagClass' to 'Hashable' is only available in macOS 11.0 or newer; this is an error in the Swift 6 language mode
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
40 |   }
41 |
42 |   public func ky_getFileExtension() -> String? {
   |               `- note: add @available attribute to enclosing instance method
43 |     return self.preferredFilenameExtension ?? self.tags[UTTagClass.filenameExtension]?.first
   |                                               |- warning: conformance of 'UTTagClass' to 'Hashable' is only available in macOS 11.0 or newer; this is an error in the Swift 6 language mode
   |                                               `- note: add 'if #available' version check
44 |   }
45 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:43:52: error: 'tags' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
40 |   }
41 |
42 |   public func ky_getFileExtension() -> String? {
   |               `- note: add @available attribute to enclosing instance method
43 |     return self.preferredFilenameExtension ?? self.tags[UTTagClass.filenameExtension]?.first
   |                                                    |- error: 'tags' is only available in macOS 11.0 or newer
   |                                                    `- note: add 'if #available' version check
44 |   }
45 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:43:57: error: 'UTTagClass' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
40 |   }
41 |
42 |   public func ky_getFileExtension() -> String? {
   |               `- note: add @available attribute to enclosing instance method
43 |     return self.preferredFilenameExtension ?? self.tags[UTTagClass.filenameExtension]?.first
   |                                                         |- error: 'UTTagClass' is only available in macOS 11.0 or newer
   |                                                         `- note: add 'if #available' version check
44 |   }
45 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:43:68: error: 'filenameExtension' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
40 |   }
41 |
42 |   public func ky_getFileExtension() -> String? {
   |               `- note: add @available attribute to enclosing instance method
43 |     return self.preferredFilenameExtension ?? self.tags[UTTagClass.filenameExtension]?.first
   |                                                                    |- error: 'filenameExtension' is only available in macOS 11.0 or newer
   |                                                                    `- note: add 'if #available' version check
44 |   }
45 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:49:12: error: 'conforms(to:)' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
46 |   // MARK: - File Type Checking
47 |
48 |   public func ky_isPhotoFileType() -> Bool {
   |               `- note: add @available attribute to enclosing instance method
49 |     return conforms(to: .image)
   |            |- error: 'conforms(to:)' is only available in macOS 11.0 or newer
   |            `- note: add 'if #available' version check
50 |   }
51 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:49:26: error: 'image' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
46 |   // MARK: - File Type Checking
47 |
48 |   public func ky_isPhotoFileType() -> Bool {
   |               `- note: add @available attribute to enclosing instance method
49 |     return conforms(to: .image)
   |                          |- error: 'image' is only available in macOS 11.0 or newer
   |                          `- note: add 'if #available' version check
50 |   }
51 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:53:12: error: 'conforms(to:)' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
50 |   }
51 |
52 |   public func ky_isVideoFileType() -> Bool {
   |               `- note: add @available attribute to enclosing instance method
53 |     return conforms(to: .movie)
   |            |- error: 'conforms(to:)' is only available in macOS 11.0 or newer
   |            `- note: add 'if #available' version check
54 |   }
55 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:53:26: error: 'movie' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
50 |   }
51 |
52 |   public func ky_isVideoFileType() -> Bool {
   |               `- note: add @available attribute to enclosing instance method
53 |     return conforms(to: .movie)
   |                          |- error: 'movie' is only available in macOS 11.0 or newer
   |                          `- note: add 'if #available' version check
54 |   }
55 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:57:12: error: 'conforms(to:)' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
54 |   }
55 |
56 |   public func ky_isAudioFileType() -> Bool {
   |               `- note: add @available attribute to enclosing instance method
57 |     return conforms(to: .audio)
   |            |- error: 'conforms(to:)' is only available in macOS 11.0 or newer
   |            `- note: add 'if #available' version check
58 |   }
59 | }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:57:26: error: 'audio' is only available in macOS 11.0 or newer
10 | import UniformTypeIdentifiers
11 |
12 | extension UTType {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - Creation
   :
54 |   }
55 |
56 |   public func ky_isAudioFileType() -> Bool {
   |               `- note: add @available attribute to enclosing instance method
57 |     return conforms(to: .audio)
   |                          |- error: 'audio' is only available in macOS 11.0 or newer
   |                          `- note: add 'if #available' version check
58 |   }
59 | }
[23/25] Compiling KYPhotoLibrary AssetRequestActor.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:20:37: error: 'PHContentEditingInputRequestID' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
 20 |   var contentEditingInputRequestID: PHContentEditingInputRequestID?
    |                                     `- error: 'PHContentEditingInputRequestID' is only available in macOS 10.15 or newer
 21 |
 22 |   // MARK: - Image
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:52:51: error: 'PHContentEditingInputRequestOptions' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 50 |
 51 |   /// Request image URL from Photo Library.
 52 |   func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
    |        |                                          `- error: 'PHContentEditingInputRequestOptions' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing instance method
 53 |     return try await withCheckedThrowingContinuation { continuation in
 54 |       self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:71:48: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 69 |
 70 |   /// Request video asset from Photo Library.
 71 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        |                                       `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing instance method
 72 |     return try await withCheckedThrowingContinuation { continuation in
 73 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:89:51: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 87 |
 88 |   /// Request video URL from Photo Library.
 89 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        |                                          `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing instance method
 90 |     return try await withCheckedThrowingContinuation { continuation in
 91 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:30:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 23 |
 24 |   /// Request image asset from Photo Library.
 25 |   func requestImage(_ asset: PHAsset, expectedSize: CGSize, options: PHImageRequestOptions?) async throws -> KYPhotoLibraryImage {
    |        `- note: add @available attribute to enclosing instance method
 26 |     let targetSize = (CGSizeEqualToSize(expectedSize, .zero)
 27 |                       ? CGSize(width: asset.pixelWidth, height: asset.pixelHeight)
 28 |                       : expectedSize)
 29 |
 30 |     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
 31 |       self.requestID = PHCachingImageManager.default().requestImage(
 32 |         for: asset,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:31:24: error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 23 |
 24 |   /// Request image asset from Photo Library.
 25 |   func requestImage(_ asset: PHAsset, expectedSize: CGSize, options: PHImageRequestOptions?) async throws -> KYPhotoLibraryImage {
    |        `- note: add @available attribute to enclosing instance method
 26 |     let targetSize = (CGSizeEqualToSize(expectedSize, .zero)
 27 |                       ? CGSize(width: asset.pixelWidth, height: asset.pixelHeight)
    :
 29 |
 30 |     return try await withCheckedThrowingContinuation { continuation in
 31 |       self.requestID = PHCachingImageManager.default().requestImage(
    |                        |- error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
 32 |         for: asset,
 33 |         targetSize: targetSize,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:30:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:30:54: note: expanded code originates here
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 23 |
 24 |   /// Request image asset from Photo Library.
 25 |   func requestImage(_ asset: PHAsset, expectedSize: CGSize, options: PHImageRequestOptions?) async throws -> KYPhotoLibraryImage {
    |        `- note: add @available attribute to enclosing instance method
 26 |     let targetSize = (CGSizeEqualToSize(expectedSize, .zero)
 27 |                       ? CGSize(width: asset.pixelWidth, height: asset.pixelHeight)
 28 |                       : expectedSize)
 29 |
 30 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |28 |
    |29 |
    |30 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 31 |       self.requestID = PHCachingImageManager.default().requestImage(
 32 |         for: asset,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:53:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 50 |
 51 |   /// Request image URL from Photo Library.
 52 |   func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 53 |     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
 54 |       self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
 55 |         self.contentEditingInputRequestID = nil
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:54:49: error: 'requestContentEditingInput(with:completionHandler:)' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 50 |
 51 |   /// Request image URL from Photo Library.
 52 |   func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 53 |     return try await withCheckedThrowingContinuation { continuation in
 54 |       self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
    |                                                 |- error: 'requestContentEditingInput(with:completionHandler:)' is only available in macOS 10.15 or newer
    |                                                 `- note: add 'if #available' version check
 55 |         self.contentEditingInputRequestID = nil
 56 |         if
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:53:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:53:54: note: expanded code originates here
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 50 |
 51 |   /// Request image URL from Photo Library.
 52 |   func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 53 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |51 |
    |52 |
    |53 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 54 |       self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
 55 |         self.contentEditingInputRequestID = nil
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:72:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 69 |
 70 |   /// Request video asset from Photo Library.
 71 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 72 |     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
 73 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 74 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:73:24: error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 69 |
 70 |   /// Request video asset from Photo Library.
 71 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 72 |     return try await withCheckedThrowingContinuation { continuation in
 73 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
    |                        |- error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
 74 | #if DEBUG
 75 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:73:56: error: 'requestAVAsset(forVideo:options:resultHandler:)' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 69 |
 70 |   /// Request video asset from Photo Library.
 71 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 72 |     return try await withCheckedThrowingContinuation { continuation in
 73 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
    |                                                        |- error: 'requestAVAsset(forVideo:options:resultHandler:)' is only available in macOS 10.15 or newer
    |                                                        `- note: add 'if #available' version check
 74 | #if DEBUG
 75 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:72:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:72:54: note: expanded code originates here
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 69 |
 70 |   /// Request video asset from Photo Library.
 71 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 72 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |70 |
    |71 |
    |72 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 73 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 74 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:90:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 87 |
 88 |   /// Request video URL from Photo Library.
 89 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 90 |     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
 91 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 92 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:91:24: error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 87 |
 88 |   /// Request video URL from Photo Library.
 89 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 90 |     return try await withCheckedThrowingContinuation { continuation in
 91 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
    |                        |- error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
 92 | #if DEBUG
 93 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:91:56: error: 'requestAVAsset(forVideo:options:resultHandler:)' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 87 |
 88 |   /// Request video URL from Photo Library.
 89 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 90 |     return try await withCheckedThrowingContinuation { continuation in
 91 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
    |                                                        |- error: 'requestAVAsset(forVideo:options:resultHandler:)' is only available in macOS 10.15 or newer
    |                                                        `- note: add 'if #available' version check
 92 | #if DEBUG
 93 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:90:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:90:54: note: expanded code originates here
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 87 |
 88 |   /// Request video URL from Photo Library.
 89 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 90 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |88 |
    |89 |
    |90 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 91 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 92 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:119:13: error: 'cancelContentEditingInputRequest' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
107 |
108 |   /// Cancel the asset request.
109 |   func cancelRequst(_ asset: PHAsset? = nil) async {
    |        `- note: add @available attribute to enclosing instance method
110 |     if let requestID = self.requestID {
111 |       PHImageManager.default().cancelImageRequest(requestID)
    :
117 |       let asset
118 |     {
119 |       asset.cancelContentEditingInputRequest(requestID)
    |             |- error: 'cancelContentEditingInputRequest' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
120 |       self.contentEditingInputRequestID = nil
121 |     }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:66:33: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 64 |       PHPhotoLibrary.shared().performChanges {
 65 |         // Save asset
 66 |         var createAssetRequest: PHAssetChangeRequest?
    |                                 |- error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
    |                                 `- note: add 'if #available' version check
 67 |         if let image {
 68 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:77:43: error: 'PHObjectPlaceholder' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 75 |         guard
 76 |           let createAssetRequest,
 77 |           let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
    |                                           |- error: 'PHObjectPlaceholder' is only available in macOS 10.15 or newer
    |                                           `- note: add 'if #available' version check
 78 |         else {
 79 |           continuation.resume(throwing: AssetError.failedToSaveAssetToPhotoLibrary)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:63:50: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 61 |     }
 62 |
 63 |     let savedAssetIdentifier: String = try await withCheckedThrowingContinuation { continuation in
    |                                                  |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
    |                                                  `- note: add 'if #available' version check
 64 |       PHPhotoLibrary.shared().performChanges {
 65 |         // Save asset
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:66:33: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 64 |       PHPhotoLibrary.shared().performChanges {
 65 |         // Save asset
 66 |         var createAssetRequest: PHAssetChangeRequest?
    |                                 |- error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
    |                                 `- note: add 'if #available' version check
 67 |         if let image {
 68 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:68:32: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 66 |         var createAssetRequest: PHAssetChangeRequest?
 67 |         if let image {
 68 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
    |                                |- error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
    |                                `- note: add 'if #available' version check
 69 |         } else if let imageURL {
 70 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:68:53: error: 'creationRequestForAsset(from:)' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 66 |         var createAssetRequest: PHAssetChangeRequest?
 67 |         if let image {
 68 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
    |                                                     |- error: 'creationRequestForAsset(from:)' is only available in macOS 10.15 or newer
    |                                                     `- note: add 'if #available' version check
 69 |         } else if let imageURL {
 70 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:70:32: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 68 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
 69 |         } else if let imageURL {
 70 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
    |                                |- error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
    |                                `- note: add 'if #available' version check
 71 |         } else if let videoURL {
 72 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:70:53: error: 'creationRequestForAssetFromImage(atFileURL:)' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 68 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
 69 |         } else if let imageURL {
 70 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
    |                                                     |- error: 'creationRequestForAssetFromImage(atFileURL:)' is only available in macOS 10.15 or newer
    |                                                     `- note: add 'if #available' version check
 71 |         } else if let videoURL {
 72 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:72:32: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 70 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
 71 |         } else if let videoURL {
 72 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
    |                                |- error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
    |                                `- note: add 'if #available' version check
 73 |         }
 74 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:72:53: error: 'creationRequestForAssetFromVideo(atFileURL:)' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 70 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
 71 |         } else if let videoURL {
 72 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
    |                                                     |- error: 'creationRequestForAssetFromVideo(atFileURL:)' is only available in macOS 10.15 or newer
    |                                                     `- note: add 'if #available' version check
 73 |         }
 74 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:77:43: error: 'PHObjectPlaceholder' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 75 |         guard
 76 |           let createAssetRequest,
 77 |           let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
    |                                           |- error: 'PHObjectPlaceholder' is only available in macOS 10.15 or newer
    |                                           `- note: add 'if #available' version check
 78 |         else {
 79 |           continuation.resume(throwing: AssetError.failedToSaveAssetToPhotoLibrary)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:77:84: error: 'placeholderForCreatedAsset' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 75 |         guard
 76 |           let createAssetRequest,
 77 |           let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
    |                                                                                    |- error: 'placeholderForCreatedAsset' is only available in macOS 10.15 or newer
    |                                                                                    `- note: add 'if #available' version check
 78 |         else {
 79 |           continuation.resume(throwing: AssetError.failedToSaveAssetToPhotoLibrary)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:87:41: error: 'PHAssetCollectionChangeRequest' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 85 |         guard
 86 |           let albumAssetCollection,
 87 |           let collectionChangeRequest = PHAssetCollectionChangeRequest(for: albumAssetCollection)
    |                                         |- error: 'PHAssetCollectionChangeRequest' is only available in macOS 10.15 or newer
    |                                         `- note: add 'if #available' version check
 88 |         else {
 89 |           continuation.resume(throwing: AssetError.failedToAddSavedAssetToAlbum(albumName ?? ""))
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:87:41: error: 'init(for:)' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 85 |         guard
 86 |           let albumAssetCollection,
 87 |           let collectionChangeRequest = PHAssetCollectionChangeRequest(for: albumAssetCollection)
    |                                         |- error: 'init(for:)' is only available in macOS 10.15 or newer
    |                                         `- note: add 'if #available' version check
 88 |         else {
 89 |           continuation.resume(throwing: AssetError.failedToAddSavedAssetToAlbum(albumName ?? ""))
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:92:33: error: 'addAssets' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 90 |           return
 91 |         }
 92 |         collectionChangeRequest.addAssets([placeholderForCreatedAsset] as NSFastEnumeration)
    |                                 |- error: 'addAssets' is only available in macOS 10.15 or newer
    |                                 `- note: add 'if #available' version check
 93 |         KYPhotoLibraryLog("Add saved asset to custom album succeeded.")
 94 |         continuation.resume(returning: placeholderForCreatedAsset.localIdentifier)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:63:83: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:63:82: note: expanded code originates here
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 61 |     }
 62 |
 63 |     let savedAssetIdentifier: String = try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift
    |61 |
    |62 |
    |63 |                                                                                  #isolation
    |   |                                                                                   `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
 64 |       PHPhotoLibrary.shared().performChanges {
 65 |         // Save asset
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:112:7: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
104 |   ///   - assetIdentifier: The asset's unique identifier used in the Photo Library.
105 |   ///
106 |   static func asset_delete(for mediaType: PHAssetMediaType, with assetIdentifier: String) async throws {
    |               `- note: add @available attribute to enclosing static method
107 |     guard let asset: PHAsset = await asset(with: assetIdentifier, for: mediaType) else {
108 |       throw AssetError.assetNotFound(assetIdentifier)
    :
110 |
111 |     try await PHPhotoLibrary.shared().performChanges {
112 |       PHAssetChangeRequest.deleteAssets([asset] as NSFastEnumeration)
    |       |- error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
113 |     }
114 |     KYPhotoLibraryLog("Delete asset succeeded.")
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:112:28: error: 'deleteAssets' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
104 |   ///   - assetIdentifier: The asset's unique identifier used in the Photo Library.
105 |   ///
106 |   static func asset_delete(for mediaType: PHAssetMediaType, with assetIdentifier: String) async throws {
    |               `- note: add @available attribute to enclosing static method
107 |     guard let asset: PHAsset = await asset(with: assetIdentifier, for: mediaType) else {
108 |       throw AssetError.assetNotFound(assetIdentifier)
    :
110 |
111 |     try await PHPhotoLibrary.shared().performChanges {
112 |       PHAssetChangeRequest.deleteAssets([asset] as NSFastEnumeration)
    |                            |- error: 'deleteAssets' is only available in macOS 10.15 or newer
    |                            `- note: add 'if #available' version check
113 |     }
114 |     KYPhotoLibraryLog("Delete asset succeeded.")
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetQuery.swift:45:22: error: 'fetchAssets(with:)' 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: - Load Assets
    :
 23 |   /// - Returns: A fetch result that contains the requested PHAsset objects, or empty if no objects match the request.
 24 |   ///
 25 |   public static func loadAssets(
    |                      `- note: add @available attribute to enclosing static method
 26 |     of mediaType: PHAssetMediaType,
 27 |     fromAlbum albumName: String?,
    :
 43 |       return PHAsset.fetchAssets(in: albumAssetCollection, options: fetchOptions)
 44 |     } else {
 45 |       return PHAsset.fetchAssets(with: fetchOptions)
    |                      |- error: 'fetchAssets(with:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
 46 |     }
 47 |   }
[24/25] Compiling KYPhotoLibrary KYPhotoLibrary+AssetChange.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:20:37: error: 'PHContentEditingInputRequestID' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
 20 |   var contentEditingInputRequestID: PHContentEditingInputRequestID?
    |                                     `- error: 'PHContentEditingInputRequestID' is only available in macOS 10.15 or newer
 21 |
 22 |   // MARK: - Image
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:52:51: error: 'PHContentEditingInputRequestOptions' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 50 |
 51 |   /// Request image URL from Photo Library.
 52 |   func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
    |        |                                          `- error: 'PHContentEditingInputRequestOptions' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing instance method
 53 |     return try await withCheckedThrowingContinuation { continuation in
 54 |       self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:71:48: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 69 |
 70 |   /// Request video asset from Photo Library.
 71 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        |                                       `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing instance method
 72 |     return try await withCheckedThrowingContinuation { continuation in
 73 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:89:51: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 87 |
 88 |   /// Request video URL from Photo Library.
 89 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        |                                          `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing instance method
 90 |     return try await withCheckedThrowingContinuation { continuation in
 91 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:30:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 23 |
 24 |   /// Request image asset from Photo Library.
 25 |   func requestImage(_ asset: PHAsset, expectedSize: CGSize, options: PHImageRequestOptions?) async throws -> KYPhotoLibraryImage {
    |        `- note: add @available attribute to enclosing instance method
 26 |     let targetSize = (CGSizeEqualToSize(expectedSize, .zero)
 27 |                       ? CGSize(width: asset.pixelWidth, height: asset.pixelHeight)
 28 |                       : expectedSize)
 29 |
 30 |     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
 31 |       self.requestID = PHCachingImageManager.default().requestImage(
 32 |         for: asset,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:31:24: error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 23 |
 24 |   /// Request image asset from Photo Library.
 25 |   func requestImage(_ asset: PHAsset, expectedSize: CGSize, options: PHImageRequestOptions?) async throws -> KYPhotoLibraryImage {
    |        `- note: add @available attribute to enclosing instance method
 26 |     let targetSize = (CGSizeEqualToSize(expectedSize, .zero)
 27 |                       ? CGSize(width: asset.pixelWidth, height: asset.pixelHeight)
    :
 29 |
 30 |     return try await withCheckedThrowingContinuation { continuation in
 31 |       self.requestID = PHCachingImageManager.default().requestImage(
    |                        |- error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
 32 |         for: asset,
 33 |         targetSize: targetSize,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:30:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:30:54: note: expanded code originates here
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 23 |
 24 |   /// Request image asset from Photo Library.
 25 |   func requestImage(_ asset: PHAsset, expectedSize: CGSize, options: PHImageRequestOptions?) async throws -> KYPhotoLibraryImage {
    |        `- note: add @available attribute to enclosing instance method
 26 |     let targetSize = (CGSizeEqualToSize(expectedSize, .zero)
 27 |                       ? CGSize(width: asset.pixelWidth, height: asset.pixelHeight)
 28 |                       : expectedSize)
 29 |
 30 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |28 |
    |29 |
    |30 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 31 |       self.requestID = PHCachingImageManager.default().requestImage(
 32 |         for: asset,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:53:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 50 |
 51 |   /// Request image URL from Photo Library.
 52 |   func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 53 |     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
 54 |       self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
 55 |         self.contentEditingInputRequestID = nil
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:54:49: error: 'requestContentEditingInput(with:completionHandler:)' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 50 |
 51 |   /// Request image URL from Photo Library.
 52 |   func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 53 |     return try await withCheckedThrowingContinuation { continuation in
 54 |       self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
    |                                                 |- error: 'requestContentEditingInput(with:completionHandler:)' is only available in macOS 10.15 or newer
    |                                                 `- note: add 'if #available' version check
 55 |         self.contentEditingInputRequestID = nil
 56 |         if
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:53:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:53:54: note: expanded code originates here
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 50 |
 51 |   /// Request image URL from Photo Library.
 52 |   func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 53 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |51 |
    |52 |
    |53 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 54 |       self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
 55 |         self.contentEditingInputRequestID = nil
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:72:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 69 |
 70 |   /// Request video asset from Photo Library.
 71 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 72 |     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
 73 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 74 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:73:24: error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 69 |
 70 |   /// Request video asset from Photo Library.
 71 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 72 |     return try await withCheckedThrowingContinuation { continuation in
 73 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
    |                        |- error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
 74 | #if DEBUG
 75 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:73:56: error: 'requestAVAsset(forVideo:options:resultHandler:)' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 69 |
 70 |   /// Request video asset from Photo Library.
 71 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 72 |     return try await withCheckedThrowingContinuation { continuation in
 73 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
    |                                                        |- error: 'requestAVAsset(forVideo:options:resultHandler:)' is only available in macOS 10.15 or newer
    |                                                        `- note: add 'if #available' version check
 74 | #if DEBUG
 75 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:72:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:72:54: note: expanded code originates here
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 69 |
 70 |   /// Request video asset from Photo Library.
 71 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 72 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |70 |
    |71 |
    |72 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 73 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 74 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:90:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 87 |
 88 |   /// Request video URL from Photo Library.
 89 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 90 |     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
 91 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 92 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:91:24: error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 87 |
 88 |   /// Request video URL from Photo Library.
 89 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 90 |     return try await withCheckedThrowingContinuation { continuation in
 91 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
    |                        |- error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
 92 | #if DEBUG
 93 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:91:56: error: 'requestAVAsset(forVideo:options:resultHandler:)' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 87 |
 88 |   /// Request video URL from Photo Library.
 89 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 90 |     return try await withCheckedThrowingContinuation { continuation in
 91 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
    |                                                        |- error: 'requestAVAsset(forVideo:options:resultHandler:)' is only available in macOS 10.15 or newer
    |                                                        `- note: add 'if #available' version check
 92 | #if DEBUG
 93 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:90:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:90:54: note: expanded code originates here
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 87 |
 88 |   /// Request video URL from Photo Library.
 89 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 90 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |88 |
    |89 |
    |90 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 91 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 92 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:119:13: error: 'cancelContentEditingInputRequest' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
107 |
108 |   /// Cancel the asset request.
109 |   func cancelRequst(_ asset: PHAsset? = nil) async {
    |        `- note: add @available attribute to enclosing instance method
110 |     if let requestID = self.requestID {
111 |       PHImageManager.default().cancelImageRequest(requestID)
    :
117 |       let asset
118 |     {
119 |       asset.cancelContentEditingInputRequest(requestID)
    |             |- error: 'cancelContentEditingInputRequest' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
120 |       self.contentEditingInputRequestID = nil
121 |     }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:66:33: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 64 |       PHPhotoLibrary.shared().performChanges {
 65 |         // Save asset
 66 |         var createAssetRequest: PHAssetChangeRequest?
    |                                 |- error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
    |                                 `- note: add 'if #available' version check
 67 |         if let image {
 68 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:77:43: error: 'PHObjectPlaceholder' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 75 |         guard
 76 |           let createAssetRequest,
 77 |           let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
    |                                           |- error: 'PHObjectPlaceholder' is only available in macOS 10.15 or newer
    |                                           `- note: add 'if #available' version check
 78 |         else {
 79 |           continuation.resume(throwing: AssetError.failedToSaveAssetToPhotoLibrary)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:63:50: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 61 |     }
 62 |
 63 |     let savedAssetIdentifier: String = try await withCheckedThrowingContinuation { continuation in
    |                                                  |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
    |                                                  `- note: add 'if #available' version check
 64 |       PHPhotoLibrary.shared().performChanges {
 65 |         // Save asset
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:66:33: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 64 |       PHPhotoLibrary.shared().performChanges {
 65 |         // Save asset
 66 |         var createAssetRequest: PHAssetChangeRequest?
    |                                 |- error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
    |                                 `- note: add 'if #available' version check
 67 |         if let image {
 68 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:68:32: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 66 |         var createAssetRequest: PHAssetChangeRequest?
 67 |         if let image {
 68 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
    |                                |- error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
    |                                `- note: add 'if #available' version check
 69 |         } else if let imageURL {
 70 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:68:53: error: 'creationRequestForAsset(from:)' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 66 |         var createAssetRequest: PHAssetChangeRequest?
 67 |         if let image {
 68 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
    |                                                     |- error: 'creationRequestForAsset(from:)' is only available in macOS 10.15 or newer
    |                                                     `- note: add 'if #available' version check
 69 |         } else if let imageURL {
 70 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:70:32: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 68 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
 69 |         } else if let imageURL {
 70 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
    |                                |- error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
    |                                `- note: add 'if #available' version check
 71 |         } else if let videoURL {
 72 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:70:53: error: 'creationRequestForAssetFromImage(atFileURL:)' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 68 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
 69 |         } else if let imageURL {
 70 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
    |                                                     |- error: 'creationRequestForAssetFromImage(atFileURL:)' is only available in macOS 10.15 or newer
    |                                                     `- note: add 'if #available' version check
 71 |         } else if let videoURL {
 72 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:72:32: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 70 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
 71 |         } else if let videoURL {
 72 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
    |                                |- error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
    |                                `- note: add 'if #available' version check
 73 |         }
 74 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:72:53: error: 'creationRequestForAssetFromVideo(atFileURL:)' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 70 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
 71 |         } else if let videoURL {
 72 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
    |                                                     |- error: 'creationRequestForAssetFromVideo(atFileURL:)' is only available in macOS 10.15 or newer
    |                                                     `- note: add 'if #available' version check
 73 |         }
 74 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:77:43: error: 'PHObjectPlaceholder' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 75 |         guard
 76 |           let createAssetRequest,
 77 |           let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
    |                                           |- error: 'PHObjectPlaceholder' is only available in macOS 10.15 or newer
    |                                           `- note: add 'if #available' version check
 78 |         else {
 79 |           continuation.resume(throwing: AssetError.failedToSaveAssetToPhotoLibrary)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:77:84: error: 'placeholderForCreatedAsset' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 75 |         guard
 76 |           let createAssetRequest,
 77 |           let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
    |                                                                                    |- error: 'placeholderForCreatedAsset' is only available in macOS 10.15 or newer
    |                                                                                    `- note: add 'if #available' version check
 78 |         else {
 79 |           continuation.resume(throwing: AssetError.failedToSaveAssetToPhotoLibrary)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:87:41: error: 'PHAssetCollectionChangeRequest' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 85 |         guard
 86 |           let albumAssetCollection,
 87 |           let collectionChangeRequest = PHAssetCollectionChangeRequest(for: albumAssetCollection)
    |                                         |- error: 'PHAssetCollectionChangeRequest' is only available in macOS 10.15 or newer
    |                                         `- note: add 'if #available' version check
 88 |         else {
 89 |           continuation.resume(throwing: AssetError.failedToAddSavedAssetToAlbum(albumName ?? ""))
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:87:41: error: 'init(for:)' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 85 |         guard
 86 |           let albumAssetCollection,
 87 |           let collectionChangeRequest = PHAssetCollectionChangeRequest(for: albumAssetCollection)
    |                                         |- error: 'init(for:)' is only available in macOS 10.15 or newer
    |                                         `- note: add 'if #available' version check
 88 |         else {
 89 |           continuation.resume(throwing: AssetError.failedToAddSavedAssetToAlbum(albumName ?? ""))
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:92:33: error: 'addAssets' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 90 |           return
 91 |         }
 92 |         collectionChangeRequest.addAssets([placeholderForCreatedAsset] as NSFastEnumeration)
    |                                 |- error: 'addAssets' is only available in macOS 10.15 or newer
    |                                 `- note: add 'if #available' version check
 93 |         KYPhotoLibraryLog("Add saved asset to custom album succeeded.")
 94 |         continuation.resume(returning: placeholderForCreatedAsset.localIdentifier)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:63:83: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:63:82: note: expanded code originates here
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 61 |     }
 62 |
 63 |     let savedAssetIdentifier: String = try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift
    |61 |
    |62 |
    |63 |                                                                                  #isolation
    |   |                                                                                   `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
 64 |       PHPhotoLibrary.shared().performChanges {
 65 |         // Save asset
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:112:7: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
104 |   ///   - assetIdentifier: The asset's unique identifier used in the Photo Library.
105 |   ///
106 |   static func asset_delete(for mediaType: PHAssetMediaType, with assetIdentifier: String) async throws {
    |               `- note: add @available attribute to enclosing static method
107 |     guard let asset: PHAsset = await asset(with: assetIdentifier, for: mediaType) else {
108 |       throw AssetError.assetNotFound(assetIdentifier)
    :
110 |
111 |     try await PHPhotoLibrary.shared().performChanges {
112 |       PHAssetChangeRequest.deleteAssets([asset] as NSFastEnumeration)
    |       |- error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
113 |     }
114 |     KYPhotoLibraryLog("Delete asset succeeded.")
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:112:28: error: 'deleteAssets' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
104 |   ///   - assetIdentifier: The asset's unique identifier used in the Photo Library.
105 |   ///
106 |   static func asset_delete(for mediaType: PHAssetMediaType, with assetIdentifier: String) async throws {
    |               `- note: add @available attribute to enclosing static method
107 |     guard let asset: PHAsset = await asset(with: assetIdentifier, for: mediaType) else {
108 |       throw AssetError.assetNotFound(assetIdentifier)
    :
110 |
111 |     try await PHPhotoLibrary.shared().performChanges {
112 |       PHAssetChangeRequest.deleteAssets([asset] as NSFastEnumeration)
    |                            |- error: 'deleteAssets' is only available in macOS 10.15 or newer
    |                            `- note: add 'if #available' version check
113 |     }
114 |     KYPhotoLibraryLog("Delete asset succeeded.")
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetQuery.swift:45:22: error: 'fetchAssets(with:)' 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: - Load Assets
    :
 23 |   /// - Returns: A fetch result that contains the requested PHAsset objects, or empty if no objects match the request.
 24 |   ///
 25 |   public static func loadAssets(
    |                      `- note: add @available attribute to enclosing static method
 26 |     of mediaType: PHAssetMediaType,
 27 |     fromAlbum albumName: String?,
    :
 43 |       return PHAsset.fetchAssets(in: albumAssetCollection, options: fetchOptions)
 44 |     } else {
 45 |       return PHAsset.fetchAssets(with: fetchOptions)
    |                      |- error: 'fetchAssets(with:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
 46 |     }
 47 |   }
[25/25] Compiling KYPhotoLibrary KYPhotoLibrary+AssetQuery.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:20:37: error: 'PHContentEditingInputRequestID' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
 20 |   var contentEditingInputRequestID: PHContentEditingInputRequestID?
    |                                     `- error: 'PHContentEditingInputRequestID' is only available in macOS 10.15 or newer
 21 |
 22 |   // MARK: - Image
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:52:51: error: 'PHContentEditingInputRequestOptions' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 50 |
 51 |   /// Request image URL from Photo Library.
 52 |   func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
    |        |                                          `- error: 'PHContentEditingInputRequestOptions' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing instance method
 53 |     return try await withCheckedThrowingContinuation { continuation in
 54 |       self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:71:48: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 69 |
 70 |   /// Request video asset from Photo Library.
 71 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        |                                       `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing instance method
 72 |     return try await withCheckedThrowingContinuation { continuation in
 73 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:89:51: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 87 |
 88 |   /// Request video URL from Photo Library.
 89 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        |                                          `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing instance method
 90 |     return try await withCheckedThrowingContinuation { continuation in
 91 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:30:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 23 |
 24 |   /// Request image asset from Photo Library.
 25 |   func requestImage(_ asset: PHAsset, expectedSize: CGSize, options: PHImageRequestOptions?) async throws -> KYPhotoLibraryImage {
    |        `- note: add @available attribute to enclosing instance method
 26 |     let targetSize = (CGSizeEqualToSize(expectedSize, .zero)
 27 |                       ? CGSize(width: asset.pixelWidth, height: asset.pixelHeight)
 28 |                       : expectedSize)
 29 |
 30 |     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
 31 |       self.requestID = PHCachingImageManager.default().requestImage(
 32 |         for: asset,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:31:24: error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 23 |
 24 |   /// Request image asset from Photo Library.
 25 |   func requestImage(_ asset: PHAsset, expectedSize: CGSize, options: PHImageRequestOptions?) async throws -> KYPhotoLibraryImage {
    |        `- note: add @available attribute to enclosing instance method
 26 |     let targetSize = (CGSizeEqualToSize(expectedSize, .zero)
 27 |                       ? CGSize(width: asset.pixelWidth, height: asset.pixelHeight)
    :
 29 |
 30 |     return try await withCheckedThrowingContinuation { continuation in
 31 |       self.requestID = PHCachingImageManager.default().requestImage(
    |                        |- error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
 32 |         for: asset,
 33 |         targetSize: targetSize,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:30:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:30:54: note: expanded code originates here
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 23 |
 24 |   /// Request image asset from Photo Library.
 25 |   func requestImage(_ asset: PHAsset, expectedSize: CGSize, options: PHImageRequestOptions?) async throws -> KYPhotoLibraryImage {
    |        `- note: add @available attribute to enclosing instance method
 26 |     let targetSize = (CGSizeEqualToSize(expectedSize, .zero)
 27 |                       ? CGSize(width: asset.pixelWidth, height: asset.pixelHeight)
 28 |                       : expectedSize)
 29 |
 30 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |28 |
    |29 |
    |30 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 31 |       self.requestID = PHCachingImageManager.default().requestImage(
 32 |         for: asset,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:53:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 50 |
 51 |   /// Request image URL from Photo Library.
 52 |   func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 53 |     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
 54 |       self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
 55 |         self.contentEditingInputRequestID = nil
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:54:49: error: 'requestContentEditingInput(with:completionHandler:)' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 50 |
 51 |   /// Request image URL from Photo Library.
 52 |   func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 53 |     return try await withCheckedThrowingContinuation { continuation in
 54 |       self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
    |                                                 |- error: 'requestContentEditingInput(with:completionHandler:)' is only available in macOS 10.15 or newer
    |                                                 `- note: add 'if #available' version check
 55 |         self.contentEditingInputRequestID = nil
 56 |         if
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:53:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:53:54: note: expanded code originates here
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 50 |
 51 |   /// Request image URL from Photo Library.
 52 |   func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 53 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |51 |
    |52 |
    |53 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 54 |       self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
 55 |         self.contentEditingInputRequestID = nil
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:72:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 69 |
 70 |   /// Request video asset from Photo Library.
 71 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 72 |     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
 73 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 74 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:73:24: error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 69 |
 70 |   /// Request video asset from Photo Library.
 71 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 72 |     return try await withCheckedThrowingContinuation { continuation in
 73 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
    |                        |- error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
 74 | #if DEBUG
 75 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:73:56: error: 'requestAVAsset(forVideo:options:resultHandler:)' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 69 |
 70 |   /// Request video asset from Photo Library.
 71 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 72 |     return try await withCheckedThrowingContinuation { continuation in
 73 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
    |                                                        |- error: 'requestAVAsset(forVideo:options:resultHandler:)' is only available in macOS 10.15 or newer
    |                                                        `- note: add 'if #available' version check
 74 | #if DEBUG
 75 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:72:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:72:54: note: expanded code originates here
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 69 |
 70 |   /// Request video asset from Photo Library.
 71 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 72 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |70 |
    |71 |
    |72 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 73 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 74 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:90:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 87 |
 88 |   /// Request video URL from Photo Library.
 89 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 90 |     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
 91 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 92 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:91:24: error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 87 |
 88 |   /// Request video URL from Photo Library.
 89 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 90 |     return try await withCheckedThrowingContinuation { continuation in
 91 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
    |                        |- error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
 92 | #if DEBUG
 93 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:91:56: error: 'requestAVAsset(forVideo:options:resultHandler:)' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 87 |
 88 |   /// Request video URL from Photo Library.
 89 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 90 |     return try await withCheckedThrowingContinuation { continuation in
 91 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
    |                                                        |- error: 'requestAVAsset(forVideo:options:resultHandler:)' is only available in macOS 10.15 or newer
    |                                                        `- note: add 'if #available' version check
 92 | #if DEBUG
 93 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:90:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:90:54: note: expanded code originates here
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
 87 |
 88 |   /// Request video URL from Photo Library.
 89 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 90 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |88 |
    |89 |
    |90 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 91 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 92 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:119:13: error: 'cancelContentEditingInputRequest' is only available in macOS 10.15 or newer
 15 |
 16 | /// **[PKG Internal Usage Only]** Photo library asset request actor.
 17 | actor AssetRequestActor {
    |       `- note: add @available attribute to enclosing actor
 18 |
 19 |   var requestID: PHImageRequestID?
    :
107 |
108 |   /// Cancel the asset request.
109 |   func cancelRequst(_ asset: PHAsset? = nil) async {
    |        `- note: add @available attribute to enclosing instance method
110 |     if let requestID = self.requestID {
111 |       PHImageManager.default().cancelImageRequest(requestID)
    :
117 |       let asset
118 |     {
119 |       asset.cancelContentEditingInputRequest(requestID)
    |             |- error: 'cancelContentEditingInputRequest' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
120 |       self.contentEditingInputRequestID = nil
121 |     }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:66:33: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 64 |       PHPhotoLibrary.shared().performChanges {
 65 |         // Save asset
 66 |         var createAssetRequest: PHAssetChangeRequest?
    |                                 |- error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
    |                                 `- note: add 'if #available' version check
 67 |         if let image {
 68 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:77:43: error: 'PHObjectPlaceholder' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 75 |         guard
 76 |           let createAssetRequest,
 77 |           let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
    |                                           |- error: 'PHObjectPlaceholder' is only available in macOS 10.15 or newer
    |                                           `- note: add 'if #available' version check
 78 |         else {
 79 |           continuation.resume(throwing: AssetError.failedToSaveAssetToPhotoLibrary)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:63:50: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 61 |     }
 62 |
 63 |     let savedAssetIdentifier: String = try await withCheckedThrowingContinuation { continuation in
    |                                                  |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
    |                                                  `- note: add 'if #available' version check
 64 |       PHPhotoLibrary.shared().performChanges {
 65 |         // Save asset
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:66:33: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 64 |       PHPhotoLibrary.shared().performChanges {
 65 |         // Save asset
 66 |         var createAssetRequest: PHAssetChangeRequest?
    |                                 |- error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
    |                                 `- note: add 'if #available' version check
 67 |         if let image {
 68 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:68:32: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 66 |         var createAssetRequest: PHAssetChangeRequest?
 67 |         if let image {
 68 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
    |                                |- error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
    |                                `- note: add 'if #available' version check
 69 |         } else if let imageURL {
 70 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:68:53: error: 'creationRequestForAsset(from:)' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 66 |         var createAssetRequest: PHAssetChangeRequest?
 67 |         if let image {
 68 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
    |                                                     |- error: 'creationRequestForAsset(from:)' is only available in macOS 10.15 or newer
    |                                                     `- note: add 'if #available' version check
 69 |         } else if let imageURL {
 70 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:70:32: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 68 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
 69 |         } else if let imageURL {
 70 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
    |                                |- error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
    |                                `- note: add 'if #available' version check
 71 |         } else if let videoURL {
 72 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:70:53: error: 'creationRequestForAssetFromImage(atFileURL:)' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 68 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
 69 |         } else if let imageURL {
 70 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
    |                                                     |- error: 'creationRequestForAssetFromImage(atFileURL:)' is only available in macOS 10.15 or newer
    |                                                     `- note: add 'if #available' version check
 71 |         } else if let videoURL {
 72 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:72:32: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 70 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
 71 |         } else if let videoURL {
 72 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
    |                                |- error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
    |                                `- note: add 'if #available' version check
 73 |         }
 74 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:72:53: error: 'creationRequestForAssetFromVideo(atFileURL:)' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 70 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
 71 |         } else if let videoURL {
 72 |           createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
    |                                                     |- error: 'creationRequestForAssetFromVideo(atFileURL:)' is only available in macOS 10.15 or newer
    |                                                     `- note: add 'if #available' version check
 73 |         }
 74 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:77:43: error: 'PHObjectPlaceholder' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 75 |         guard
 76 |           let createAssetRequest,
 77 |           let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
    |                                           |- error: 'PHObjectPlaceholder' is only available in macOS 10.15 or newer
    |                                           `- note: add 'if #available' version check
 78 |         else {
 79 |           continuation.resume(throwing: AssetError.failedToSaveAssetToPhotoLibrary)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:77:84: error: 'placeholderForCreatedAsset' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 75 |         guard
 76 |           let createAssetRequest,
 77 |           let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
    |                                                                                    |- error: 'placeholderForCreatedAsset' is only available in macOS 10.15 or newer
    |                                                                                    `- note: add 'if #available' version check
 78 |         else {
 79 |           continuation.resume(throwing: AssetError.failedToSaveAssetToPhotoLibrary)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:87:41: error: 'PHAssetCollectionChangeRequest' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 85 |         guard
 86 |           let albumAssetCollection,
 87 |           let collectionChangeRequest = PHAssetCollectionChangeRequest(for: albumAssetCollection)
    |                                         |- error: 'PHAssetCollectionChangeRequest' is only available in macOS 10.15 or newer
    |                                         `- note: add 'if #available' version check
 88 |         else {
 89 |           continuation.resume(throwing: AssetError.failedToAddSavedAssetToAlbum(albumName ?? ""))
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:87:41: error: 'init(for:)' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 85 |         guard
 86 |           let albumAssetCollection,
 87 |           let collectionChangeRequest = PHAssetCollectionChangeRequest(for: albumAssetCollection)
    |                                         |- error: 'init(for:)' is only available in macOS 10.15 or newer
    |                                         `- note: add 'if #available' version check
 88 |         else {
 89 |           continuation.resume(throwing: AssetError.failedToAddSavedAssetToAlbum(albumName ?? ""))
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:92:33: error: 'addAssets' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 90 |           return
 91 |         }
 92 |         collectionChangeRequest.addAssets([placeholderForCreatedAsset] as NSFastEnumeration)
    |                                 |- error: 'addAssets' is only available in macOS 10.15 or newer
    |                                 `- note: add 'if #available' version check
 93 |         KYPhotoLibraryLog("Add saved asset to custom album succeeded.")
 94 |         continuation.resume(returning: placeholderForCreatedAsset.localIdentifier)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:63:83: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:63:82: note: expanded code originates here
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
 48 |   /// - Returns: Saved asset's localIdentifier.
 49 |   ///
 50 |   static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
    |               `- note: add @available attribute to enclosing static method
 51 |     if image == nil && imageURL == nil && videoURL == nil {
 52 |       throw AssetError.noAssetProvided
    :
 61 |     }
 62 |
 63 |     let savedAssetIdentifier: String = try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift
    |61 |
    |62 |
    |63 |                                                                                  #isolation
    |   |                                                                                   `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
 64 |       PHPhotoLibrary.shared().performChanges {
 65 |         // Save asset
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:112:7: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
104 |   ///   - assetIdentifier: The asset's unique identifier used in the Photo Library.
105 |   ///
106 |   static func asset_delete(for mediaType: PHAssetMediaType, with assetIdentifier: String) async throws {
    |               `- note: add @available attribute to enclosing static method
107 |     guard let asset: PHAsset = await asset(with: assetIdentifier, for: mediaType) else {
108 |       throw AssetError.assetNotFound(assetIdentifier)
    :
110 |
111 |     try await PHPhotoLibrary.shared().performChanges {
112 |       PHAssetChangeRequest.deleteAssets([asset] as NSFastEnumeration)
    |       |- error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
113 |     }
114 |     KYPhotoLibraryLog("Delete asset succeeded.")
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:112:28: error: 'deleteAssets' is only available in macOS 10.15 or newer
 14 | #endif
 15 |
 16 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 17 |
 18 |   // MARK: - Public - Save Asset to Photo Library
    :
104 |   ///   - assetIdentifier: The asset's unique identifier used in the Photo Library.
105 |   ///
106 |   static func asset_delete(for mediaType: PHAssetMediaType, with assetIdentifier: String) async throws {
    |               `- note: add @available attribute to enclosing static method
107 |     guard let asset: PHAsset = await asset(with: assetIdentifier, for: mediaType) else {
108 |       throw AssetError.assetNotFound(assetIdentifier)
    :
110 |
111 |     try await PHPhotoLibrary.shared().performChanges {
112 |       PHAssetChangeRequest.deleteAssets([asset] as NSFastEnumeration)
    |                            |- error: 'deleteAssets' is only available in macOS 10.15 or newer
    |                            `- note: add 'if #available' version check
113 |     }
114 |     KYPhotoLibraryLog("Delete asset succeeded.")
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetQuery.swift:45:22: error: 'fetchAssets(with:)' 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: - Load Assets
    :
 23 |   /// - Returns: A fetch result that contains the requested PHAsset objects, or empty if no objects match the request.
 24 |   ///
 25 |   public static func loadAssets(
    |                      `- note: add @available attribute to enclosing static method
 26 |     of mediaType: PHAssetMediaType,
 27 |     fromAlbum albumName: String?,
    :
 43 |       return PHAsset.fetchAssets(in: albumAssetCollection, options: fetchOptions)
 44 |     } else {
 45 |       return PHAsset.fetchAssets(with: fetchOptions)
    |                      |- error: 'fetchAssets(with:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
 46 |     }
 47 |   }
BUILD FAILURE 6.0 macosSpm