The Swift Package Index logo.Swift Package Index

Build Information

Failed to build KYPhotoLibrary, reference 2.1.1 (83b5b5), with Swift 6.1 for macOS (SPM) on 10 May 2025 09:41:46 UTC.

Build Command

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

Build Log

39 |         $0.type == .adjustmentBaseVideo
40 |       }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:39:12: error: 'type' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
37 |         $0.type == .fullSizePairedVideo ||
38 |         $0.type == .adjustmentBasePairedVideo ||
39 |         $0.type == .adjustmentBaseVideo
   |            |- error: 'type' is only available in macOS 10.15 or newer
   |            `- note: add 'if #available' version check
40 |       }
41 |     }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:39:21: error: 'adjustmentBaseVideo' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
19 |   ///   asset in the Photos library.
20 |   ///
21 |   public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
   |                      `- note: add @available attribute to enclosing static method
22 |     let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
23 |
   :
37 |         $0.type == .fullSizePairedVideo ||
38 |         $0.type == .adjustmentBasePairedVideo ||
39 |         $0.type == .adjustmentBaseVideo
   |                     |- error: 'adjustmentBaseVideo' is only available in macOS 10.15 or newer
   |                     `- note: add 'if #available' version check
40 |       }
41 |     }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:47:39: error: 'originalFilename' is only available in macOS 10.15 or newer
10 | import Photos
11 |
12 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
13 |
14 |   // MARK: - PHAssetResource from PHAsset
   :
44 |
45 |   /// Get the original filename of the PHAsset object.
46 |   public static func originalFilename(for asset: PHAsset) -> String? {
   |                      `- note: add @available attribute to enclosing static method
47 |     return assetResource(for: asset)?.originalFilename
   |                                       |- error: 'originalFilename' is only available in macOS 10.15 or newer
   |                                       `- note: add 'if #available' version check
48 |   }
49 | }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:54:30: error: 'PHAssetResource' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 29 |   /// - Returns: An asset URL.
 30 |   ///
 31 |   public static func assetURL(
    |                      `- note: add @available attribute to enclosing static method
 32 |     with assetIdentifier: String,
 33 |     scheme: KYPhotoLibrary.URLScheme = .library,
    :
 52 |     // -      originalFilename: Title.MP4
 53 |     //
 54 |     guard let assetResource: PHAssetResource = assetResource(for: asset) else {
    |                              |- error: 'PHAssetResource' is only available in macOS 10.15 or newer
    |                              `- note: add 'if #available' version check
 55 |       throw AssetError.assetNotFound(assetIdentifier)
 56 |     }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:60:33: error: 'originalFilename' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 29 |   /// - Returns: An asset URL.
 30 |   ///
 31 |   public static func assetURL(
    |                      `- note: add @available attribute to enclosing static method
 32 |     with assetIdentifier: String,
 33 |     scheme: KYPhotoLibrary.URLScheme = .library,
    :
 58 |     var filename: String
 59 |     if useOriginalFilename {
 60 |       filename = (assetResource.originalFilename.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed)
    |                                 |- error: 'originalFilename' is only available in macOS 10.15 or newer
    |                                 `- note: add 'if #available' version check
 61 |                   ?? assetResource.originalFilename)
 62 |     } else {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:61:36: error: 'originalFilename' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 29 |   /// - Returns: An asset URL.
 30 |   ///
 31 |   public static func assetURL(
    |                      `- note: add @available attribute to enclosing static method
 32 |     with assetIdentifier: String,
 33 |     scheme: KYPhotoLibrary.URLScheme = .library,
    :
 59 |     if useOriginalFilename {
 60 |       filename = (assetResource.originalFilename.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed)
 61 |                   ?? assetResource.originalFilename)
    |                                    |- error: 'originalFilename' is only available in macOS 10.15 or newer
    |                                    `- note: add 'if #available' version check
 62 |     } else {
 63 |       guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:63:41: error: 'UTType' is only available in macOS 11.0 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 29 |   /// - Returns: An asset URL.
 30 |   ///
 31 |   public static func assetURL(
    |                      `- note: add @available attribute to enclosing static method
 32 |     with assetIdentifier: String,
 33 |     scheme: KYPhotoLibrary.URLScheme = .library,
    :
 61 |                   ?? assetResource.originalFilename)
 62 |     } else {
 63 |       guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
    |                                         |- error: 'UTType' is only available in macOS 11.0 or newer
    |                                         `- note: add 'if #available' version check
 64 |         throw AssetError.unsupportedMediaType(asset.mediaType.rawValue)
 65 |       }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:63:107: error: 'uniformTypeIdentifier' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 29 |   /// - Returns: An asset URL.
 30 |   ///
 31 |   public static func assetURL(
    |                      `- note: add @available attribute to enclosing static method
 32 |     with assetIdentifier: String,
 33 |     scheme: KYPhotoLibrary.URLScheme = .library,
    :
 61 |                   ?? assetResource.originalFilename)
 62 |     } else {
 63 |       guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
    |                                                                                                           |- error: 'uniformTypeIdentifier' is only available in macOS 10.15 or newer
    |                                                                                                           `- note: add 'if #available' version check
 64 |         throw AssetError.unsupportedMediaType(asset.mediaType.rawValue)
 65 |       }
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:82:22: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
 82 |     return try await withTaskCancellationHandler {
    |                      |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
 83 |       KYPhotoLibraryLog("Start image URL request...")
 84 |       let options = PHContentEditingInputRequestOptions()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:84:21: error: 'PHContentEditingInputRequestOptions' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
 82 |     return try await withTaskCancellationHandler {
 83 |       KYPhotoLibraryLog("Start image URL request...")
 84 |       let options = PHContentEditingInputRequestOptions()
    |                     |- error: 'PHContentEditingInputRequestOptions' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 85 |       options.canHandleAdjustmentData = { _ in true }
 86 |       return try await assetRequestActor.requestImageURL(asset, options: options)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:85:15: error: 'canHandleAdjustmentData' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
    :
 83 |       KYPhotoLibraryLog("Start image URL request...")
 84 |       let options = PHContentEditingInputRequestOptions()
 85 |       options.canHandleAdjustmentData = { _ in true }
    |               |- error: 'canHandleAdjustmentData' is only available in macOS 10.15 or newer
    |               `- note: add 'if #available' version check
 86 |       return try await assetRequestActor.requestImageURL(asset, options: options)
 87 |     } onCancel: {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:88:7: error: 'Task' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
    :
 86 |       return try await assetRequestActor.requestImageURL(asset, options: options)
 87 |     } onCancel: {
 88 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 89 |         KYPhotoLibraryLog("Cancel image URL request...")
 90 |         await assetRequestActor.cancelRequst(asset)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:88:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
    :
 86 |       return try await assetRequestActor.requestImageURL(asset, options: options)
 87 |     } onCancel: {
 88 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 89 |         KYPhotoLibraryLog("Cancel image URL request...")
 90 |         await assetRequestActor.cancelRequst(asset)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:82:51: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:82:50: note: expanded code originates here
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 77 |   // MARK: - Private
 78 |
 79 |   private static func _imageURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 80 |     let assetRequestActor = AssetRequestActor()
 81 |
 82 |     return try await withTaskCancellationHandler {
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift
    |80 |
    |81 |
    |82 |                                                  #isolation
    |   |                                                   `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------------
 83 |       KYPhotoLibraryLog("Start image URL request...")
 84 |       let options = PHContentEditingInputRequestOptions()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:98:22: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 93 |   }
 94 |
 95 |   private static func _videoURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 96 |     let assetRequestActor = AssetRequestActor()
 97 |
 98 |     return try await withTaskCancellationHandler {
    |                      |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
 99 |       KYPhotoLibraryLog("Start video URL request...")
100 |       return try await assetRequestActor.requestVideoURL(asset, options: nil)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:102:7: error: 'Task' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 93 |   }
 94 |
 95 |   private static func _videoURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 96 |     let assetRequestActor = AssetRequestActor()
 97 |
    :
100 |       return try await assetRequestActor.requestVideoURL(asset, options: nil)
101 |     } onCancel: {
102 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
103 |         KYPhotoLibraryLog("Cancel video URL request...")
104 |         await assetRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:102:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 93 |   }
 94 |
 95 |   private static func _videoURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 96 |     let assetRequestActor = AssetRequestActor()
 97 |
    :
100 |       return try await assetRequestActor.requestVideoURL(asset, options: nil)
101 |     } onCancel: {
102 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
103 |         KYPhotoLibraryLog("Cancel video URL request...")
104 |         await assetRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:98:51: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:98:50: note: expanded code originates here
 10 | import Photos
 11 |
 12 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 13 |
 14 |   /// Get the asset URL with the Photo Library scheme "assets-library://".
    :
 93 |   }
 94 |
 95 |   private static func _videoURL(of asset: PHAsset) async throws -> URL {
    |                       `- note: add @available attribute to enclosing static method
 96 |     let assetRequestActor = AssetRequestActor()
 97 |
 98 |     return try await withTaskCancellationHandler {
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift
    |96 |
    |97 |
    |98 |                                                  #isolation
    |   |                                                   `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------------
 99 |       KYPhotoLibraryLog("Start video URL request...")
100 |       return try await assetRequestActor.requestVideoURL(asset, options: nil)
[20/24] 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:54: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?
    :
 52 |
 53 |   /// Request image URL from Photo Library.
 54 |   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
 55 |     return try await withCheckedThrowingContinuation { continuation in
 56 |       self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:73: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?
    :
 71 |
 72 |   /// Request video asset from Photo Library.
 73 |   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
 74 |     return try await withCheckedThrowingContinuation { continuation in
 75 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:91: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?
    :
 89 |
 90 |   /// Request video URL from Photo Library.
 91 |   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
 92 |     return try await withCheckedThrowingContinuation { continuation in
 93 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:32: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(
    |        `- note: add @available attribute to enclosing instance method
 26 |     _ asset: PHAsset,
 27 |     targetSize: CGSize,
    :
 30 |   ) async throws -> KYPhotoLibraryImage {
 31 |
 32 |     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
 33 |       self.requestID = PHCachingImageManager.default().requestImage(
 34 |         for: asset,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:33: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(
    |        `- note: add @available attribute to enclosing instance method
 26 |     _ asset: PHAsset,
 27 |     targetSize: CGSize,
    :
 31 |
 32 |     return try await withCheckedThrowingContinuation { continuation in
 33 |       self.requestID = PHCachingImageManager.default().requestImage(
    |                        |- error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
 34 |         for: asset,
 35 |         targetSize: targetSize,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:32:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:32: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(
    |        `- note: add @available attribute to enclosing instance method
 26 |     _ asset: PHAsset,
 27 |     targetSize: CGSize,
    :
 30 |   ) async throws -> KYPhotoLibraryImage {
 31 |
 32 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |30 |
    |31 |
    |32 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 33 |       self.requestID = PHCachingImageManager.default().requestImage(
 34 |         for: asset,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:55: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?
    :
 52 |
 53 |   /// Request image URL from Photo Library.
 54 |   func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 55 |     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
 56 |       self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
 57 |         self.contentEditingInputRequestID = nil
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:56: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?
    :
 52 |
 53 |   /// Request image URL from Photo Library.
 54 |   func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 55 |     return try await withCheckedThrowingContinuation { continuation in
 56 |       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
 57 |         self.contentEditingInputRequestID = nil
 58 |         if
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:55:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:55: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?
    :
 52 |
 53 |   /// Request image URL from Photo Library.
 54 |   func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 55 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |53 |
    |54 |
    |55 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 56 |       self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
 57 |         self.contentEditingInputRequestID = nil
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:74: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?
    :
 71 |
 72 |   /// Request video asset from Photo Library.
 73 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 74 |     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
 75 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 76 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:75: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?
    :
 71 |
 72 |   /// Request video asset from Photo Library.
 73 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 74 |     return try await withCheckedThrowingContinuation { continuation in
 75 |       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
 76 | #if DEBUG
 77 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:75: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?
    :
 71 |
 72 |   /// Request video asset from Photo Library.
 73 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 74 |     return try await withCheckedThrowingContinuation { continuation in
 75 |       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
 76 | #if DEBUG
 77 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:74:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:74: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?
    :
 71 |
 72 |   /// Request video asset from Photo Library.
 73 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 74 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |72 |
    |73 |
    |74 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 75 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 76 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:92: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?
    :
 89 |
 90 |   /// Request video URL from Photo Library.
 91 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 92 |     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
 93 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 94 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:93: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?
    :
 89 |
 90 |   /// Request video URL from Photo Library.
 91 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 92 |     return try await withCheckedThrowingContinuation { continuation in
 93 |       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
 94 | #if DEBUG
 95 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:93: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?
    :
 89 |
 90 |   /// Request video URL from Photo Library.
 91 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 92 |     return try await withCheckedThrowingContinuation { continuation in
 93 |       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
 94 | #if DEBUG
 95 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:92:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:92: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?
    :
 89 |
 90 |   /// Request video URL from Photo Library.
 91 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 92 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |90 |
    |91 |
    |92 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 93 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 94 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:121: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?
    :
109 |
110 |   /// Cancel the asset request.
111 |   func cancelRequst(_ asset: PHAsset? = nil) async {
    |        `- note: add @available attribute to enclosing instance method
112 |     if let requestID = self.requestID {
113 |       PHImageManager.default().cancelImageRequest(requestID)
    :
119 |       let asset
120 |     {
121 |       asset.cancelContentEditingInputRequest(requestID)
    |             |- error: 'cancelContentEditingInputRequest' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
122 |       self.contentEditingInputRequestID = nil
123 |     }
/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: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: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: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: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: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 |   }
[21/24] 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:54: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?
    :
 52 |
 53 |   /// Request image URL from Photo Library.
 54 |   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
 55 |     return try await withCheckedThrowingContinuation { continuation in
 56 |       self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:73: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?
    :
 71 |
 72 |   /// Request video asset from Photo Library.
 73 |   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
 74 |     return try await withCheckedThrowingContinuation { continuation in
 75 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:91: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?
    :
 89 |
 90 |   /// Request video URL from Photo Library.
 91 |   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
 92 |     return try await withCheckedThrowingContinuation { continuation in
 93 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:32: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(
    |        `- note: add @available attribute to enclosing instance method
 26 |     _ asset: PHAsset,
 27 |     targetSize: CGSize,
    :
 30 |   ) async throws -> KYPhotoLibraryImage {
 31 |
 32 |     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
 33 |       self.requestID = PHCachingImageManager.default().requestImage(
 34 |         for: asset,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:33: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(
    |        `- note: add @available attribute to enclosing instance method
 26 |     _ asset: PHAsset,
 27 |     targetSize: CGSize,
    :
 31 |
 32 |     return try await withCheckedThrowingContinuation { continuation in
 33 |       self.requestID = PHCachingImageManager.default().requestImage(
    |                        |- error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
 34 |         for: asset,
 35 |         targetSize: targetSize,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:32:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:32: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(
    |        `- note: add @available attribute to enclosing instance method
 26 |     _ asset: PHAsset,
 27 |     targetSize: CGSize,
    :
 30 |   ) async throws -> KYPhotoLibraryImage {
 31 |
 32 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |30 |
    |31 |
    |32 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 33 |       self.requestID = PHCachingImageManager.default().requestImage(
 34 |         for: asset,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:55: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?
    :
 52 |
 53 |   /// Request image URL from Photo Library.
 54 |   func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 55 |     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
 56 |       self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
 57 |         self.contentEditingInputRequestID = nil
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:56: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?
    :
 52 |
 53 |   /// Request image URL from Photo Library.
 54 |   func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 55 |     return try await withCheckedThrowingContinuation { continuation in
 56 |       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
 57 |         self.contentEditingInputRequestID = nil
 58 |         if
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:55:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:55: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?
    :
 52 |
 53 |   /// Request image URL from Photo Library.
 54 |   func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 55 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |53 |
    |54 |
    |55 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 56 |       self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
 57 |         self.contentEditingInputRequestID = nil
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:74: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?
    :
 71 |
 72 |   /// Request video asset from Photo Library.
 73 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 74 |     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
 75 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 76 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:75: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?
    :
 71 |
 72 |   /// Request video asset from Photo Library.
 73 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 74 |     return try await withCheckedThrowingContinuation { continuation in
 75 |       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
 76 | #if DEBUG
 77 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:75: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?
    :
 71 |
 72 |   /// Request video asset from Photo Library.
 73 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 74 |     return try await withCheckedThrowingContinuation { continuation in
 75 |       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
 76 | #if DEBUG
 77 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:74:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:74: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?
    :
 71 |
 72 |   /// Request video asset from Photo Library.
 73 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 74 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |72 |
    |73 |
    |74 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 75 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 76 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:92: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?
    :
 89 |
 90 |   /// Request video URL from Photo Library.
 91 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 92 |     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
 93 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 94 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:93: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?
    :
 89 |
 90 |   /// Request video URL from Photo Library.
 91 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 92 |     return try await withCheckedThrowingContinuation { continuation in
 93 |       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
 94 | #if DEBUG
 95 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:93: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?
    :
 89 |
 90 |   /// Request video URL from Photo Library.
 91 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 92 |     return try await withCheckedThrowingContinuation { continuation in
 93 |       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
 94 | #if DEBUG
 95 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:92:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:92: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?
    :
 89 |
 90 |   /// Request video URL from Photo Library.
 91 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 92 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |90 |
    |91 |
    |92 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 93 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 94 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:121: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?
    :
109 |
110 |   /// Cancel the asset request.
111 |   func cancelRequst(_ asset: PHAsset? = nil) async {
    |        `- note: add @available attribute to enclosing instance method
112 |     if let requestID = self.requestID {
113 |       PHImageManager.default().cancelImageRequest(requestID)
    :
119 |       let asset
120 |     {
121 |       asset.cancelContentEditingInputRequest(requestID)
    |             |- error: 'cancelContentEditingInputRequest' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
122 |       self.contentEditingInputRequestID = nil
123 |     }
/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: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: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: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: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: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 |   }
[22/24] 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:54: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?
    :
 52 |
 53 |   /// Request image URL from Photo Library.
 54 |   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
 55 |     return try await withCheckedThrowingContinuation { continuation in
 56 |       self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:73: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?
    :
 71 |
 72 |   /// Request video asset from Photo Library.
 73 |   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
 74 |     return try await withCheckedThrowingContinuation { continuation in
 75 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:91: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?
    :
 89 |
 90 |   /// Request video URL from Photo Library.
 91 |   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
 92 |     return try await withCheckedThrowingContinuation { continuation in
 93 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:32: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(
    |        `- note: add @available attribute to enclosing instance method
 26 |     _ asset: PHAsset,
 27 |     targetSize: CGSize,
    :
 30 |   ) async throws -> KYPhotoLibraryImage {
 31 |
 32 |     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
 33 |       self.requestID = PHCachingImageManager.default().requestImage(
 34 |         for: asset,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:33: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(
    |        `- note: add @available attribute to enclosing instance method
 26 |     _ asset: PHAsset,
 27 |     targetSize: CGSize,
    :
 31 |
 32 |     return try await withCheckedThrowingContinuation { continuation in
 33 |       self.requestID = PHCachingImageManager.default().requestImage(
    |                        |- error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
 34 |         for: asset,
 35 |         targetSize: targetSize,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:32:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:32: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(
    |        `- note: add @available attribute to enclosing instance method
 26 |     _ asset: PHAsset,
 27 |     targetSize: CGSize,
    :
 30 |   ) async throws -> KYPhotoLibraryImage {
 31 |
 32 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |30 |
    |31 |
    |32 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 33 |       self.requestID = PHCachingImageManager.default().requestImage(
 34 |         for: asset,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:55: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?
    :
 52 |
 53 |   /// Request image URL from Photo Library.
 54 |   func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 55 |     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
 56 |       self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
 57 |         self.contentEditingInputRequestID = nil
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:56: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?
    :
 52 |
 53 |   /// Request image URL from Photo Library.
 54 |   func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 55 |     return try await withCheckedThrowingContinuation { continuation in
 56 |       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
 57 |         self.contentEditingInputRequestID = nil
 58 |         if
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:55:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:55: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?
    :
 52 |
 53 |   /// Request image URL from Photo Library.
 54 |   func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 55 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |53 |
    |54 |
    |55 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 56 |       self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
 57 |         self.contentEditingInputRequestID = nil
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:74: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?
    :
 71 |
 72 |   /// Request video asset from Photo Library.
 73 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 74 |     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
 75 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 76 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:75: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?
    :
 71 |
 72 |   /// Request video asset from Photo Library.
 73 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 74 |     return try await withCheckedThrowingContinuation { continuation in
 75 |       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
 76 | #if DEBUG
 77 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:75: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?
    :
 71 |
 72 |   /// Request video asset from Photo Library.
 73 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 74 |     return try await withCheckedThrowingContinuation { continuation in
 75 |       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
 76 | #if DEBUG
 77 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:74:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:74: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?
    :
 71 |
 72 |   /// Request video asset from Photo Library.
 73 |   func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
    |        `- note: add @available attribute to enclosing instance method
 74 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |72 |
    |73 |
    |74 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 75 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 76 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:92: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?
    :
 89 |
 90 |   /// Request video URL from Photo Library.
 91 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 92 |     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
 93 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 94 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:93: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?
    :
 89 |
 90 |   /// Request video URL from Photo Library.
 91 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 92 |     return try await withCheckedThrowingContinuation { continuation in
 93 |       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
 94 | #if DEBUG
 95 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:93: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?
    :
 89 |
 90 |   /// Request video URL from Photo Library.
 91 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 92 |     return try await withCheckedThrowingContinuation { continuation in
 93 |       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
 94 | #if DEBUG
 95 |         KYPhotoLibraryDebug.simulateWaiting(.assetQuery)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:92:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:92: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?
    :
 89 |
 90 |   /// Request video URL from Photo Library.
 91 |   func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
    |        `- note: add @available attribute to enclosing instance method
 92 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift
    |90 |
    |91 |
    |92 |                                                      #isolation
    |   |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +----------------------------------------------------------------------------------------------------
 93 |       self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
 94 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:121: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?
    :
109 |
110 |   /// Cancel the asset request.
111 |   func cancelRequst(_ asset: PHAsset? = nil) async {
    |        `- note: add @available attribute to enclosing instance method
112 |     if let requestID = self.requestID {
113 |       PHImageManager.default().cancelImageRequest(requestID)
    :
119 |       let asset
120 |     {
121 |       asset.cancelContentEditingInputRequest(requestID)
    |             |- error: 'cancelContentEditingInputRequest' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
122 |       self.contentEditingInputRequestID = nil
123 |     }
/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: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: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: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: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: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 |   }
[23/24] Compiling KYPhotoLibrary KYPhotoLibrary+Video.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:52:14: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
48 |   /// - Returns: An AVAsset object that provides access to the video asset as a collection of tracks and metadata.
49 |   ///
50 |   public static func loadVideo(
   |                      `- note: add @available attribute to enclosing static method
51 |     with assetIdentifier: String,
52 |     options: PHVideoRequestOptions? = nil
   |              `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
53 |   ) async throws -> AVAsset {
54 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:63:69: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
61 |   // MARK: - Private - Load Video from Photo Library
62 |
63 |   private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
   |                       |                                             `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
   |                       `- note: add @available attribute to enclosing static method
64 |     let assetRequestActor = AssetRequestActor()
65 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:66:22: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
61 |   // MARK: - Private - Load Video from Photo Library
62 |
63 |   private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
   |                       `- note: add @available attribute to enclosing static method
64 |     let assetRequestActor = AssetRequestActor()
65 |
66 |     return try await withTaskCancellationHandler {
   |                      |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
   |                      `- note: add 'if #available' version check
67 |       KYPhotoLibraryLog("Start Video Request...")
68 |       return try await assetRequestActor.requestVideo(asset, options: options)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:70:7: error: 'Task' is only available in macOS 10.15 or newer
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
61 |   // MARK: - Private - Load Video from Photo Library
62 |
63 |   private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
   |                       `- note: add @available attribute to enclosing static method
64 |     let assetRequestActor = AssetRequestActor()
65 |
   :
68 |       return try await assetRequestActor.requestVideo(asset, options: options)
69 |     } onCancel: {
70 |       Task {
   |       |- error: 'Task' is only available in macOS 10.15 or newer
   |       `- note: add 'if #available' version check
71 |         KYPhotoLibraryLog("Cancel Video Request...")
72 |         await assetRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:70:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
61 |   // MARK: - Private - Load Video from Photo Library
62 |
63 |   private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
   |                       `- note: add @available attribute to enclosing static method
64 |     let assetRequestActor = AssetRequestActor()
65 |
   :
68 |       return try await assetRequestActor.requestVideo(asset, options: options)
69 |     } onCancel: {
70 |       Task {
   |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
   |       `- note: add 'if #available' version check
71 |         KYPhotoLibraryLog("Cancel Video Request...")
72 |         await assetRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:66:51: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:66:50: note: expanded code originates here
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
61 |   // MARK: - Private - Load Video from Photo Library
62 |
63 |   private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
   |                       `- note: add @available attribute to enclosing static method
64 |     let assetRequestActor = AssetRequestActor()
65 |
66 |     return try await withTaskCancellationHandler {
   +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift
   |64 |
   |65 |
   |66 |                                                  #isolation
   |   |                                                   `- error: 'isolation()' is only available in macOS 10.15 or newer
   +-------------------------------------------------------------------------------------------------------
67 |       KYPhotoLibraryLog("Start Video Request...")
68 |       return try await assetRequestActor.requestVideo(asset, options: options)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:62:21: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    |                     `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
 63 |     exportOptions: KYPhotoLibraryExportOptions
 64 |   ) async throws -> URL? {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:147:21: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
139 | // MARK: - Video Export Session Request Actor
140 |
141 | private actor VideoExportSessionRequestActor {
    |               `- note: add @available attribute to enclosing actor
142 |
143 |   private var requestID: PHImageRequestID?
144 |
145 |   func requestSession(
    |        `- note: add @available attribute to enclosing instance method
146 |     asset: PHAsset,
147 |     requestOptions: PHVideoRequestOptions?,
    |                     `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
148 |     exportOptions: KYPhotoLibraryExportOptions
149 |   ) async throws -> AVAssetExportSession {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:72:51: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 70 |     // Request a video export session.
 71 |     let exportSessionRequestActor = VideoExportSessionRequestActor()
 72 |     let session: AVAssetExportSession = try await withTaskCancellationHandler {
    |                                                   |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
    |                                                   `- note: add 'if #available' version check
 73 |       KYPhotoLibraryLog("Start Export Session Request...")
 74 |       return try await exportSessionRequestActor.requestSession(
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:79:7: error: 'Task' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 77 |         exportOptions: exportOptions)
 78 |     } onCancel: {
 79 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 80 |         KYPhotoLibraryLog("Cancel Export Session Request...")
 81 |         await exportSessionRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:79:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 77 |         exportOptions: exportOptions)
 78 |     } onCancel: {
 79 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 80 |         KYPhotoLibraryLog("Cancel Export Session Request...")
 81 |         await exportSessionRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:88:9: error: 'Task' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 86 |     KYPhotoLibraryDebug.simulateWaiting(.assetExport)
 87 | #endif
 88 |     try Task.checkCancellation()
    |         |- error: 'Task' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 89 |
 90 |     //
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:88:14: error: 'checkCancellation()' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 86 |     KYPhotoLibraryDebug.simulateWaiting(.assetExport)
 87 | #endif
 88 |     try Task.checkCancellation()
    |              |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
 89 |
 90 |     //
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:100:22: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 98 |     }
 99 |
100 |     return try await withTaskCancellationHandler {
    |                      |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
101 |       KYPhotoLibraryLog("Start Export Session...")
102 |       return try await _exportVideo(with: session)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:72:80: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:72:79: note: expanded code originates here
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 70 |     // Request a video export session.
 71 |     let exportSessionRequestActor = VideoExportSessionRequestActor()
 72 |     let session: AVAssetExportSession = try await withTaskCancellationHandler {
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift
    |70 |
    |71 |
    |72 |                                                                               #isolation
    |   |                                                                                `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
 73 |       KYPhotoLibraryLog("Start Export Session Request...")
 74 |       return try await exportSessionRequestActor.requestSession(
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:100:51: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:100:50: note: expanded code originates here
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 98 |     }
 99 |
100 |     return try await withTaskCancellationHandler {
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift
    | 98 |
    | 99 |
    |100 |                                                  #isolation
    |    |                                                   `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
101 |       KYPhotoLibraryLog("Start Export Session...")
102 |       return try await _exportVideo(with: session)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:74:50: warning: non-sendable result type 'AVAssetExportSession' cannot be sent from actor-isolated context in call to instance method 'requestSession(asset:requestOptions:exportOptions:)'; this is an error in the Swift 6 language mode
 72 |     let session: AVAssetExportSession = try await withTaskCancellationHandler {
 73 |       KYPhotoLibraryLog("Start Export Session Request...")
 74 |       return try await exportSessionRequestActor.requestSession(
    |                                                  `- warning: non-sendable result type 'AVAssetExportSession' cannot be sent from actor-isolated context in call to instance method 'requestSession(asset:requestOptions:exportOptions:)'; this is an error in the Swift 6 language mode
 75 |         asset: asset,
 76 |         requestOptions: requestOptions,
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetExportSession.h:156:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
154 | NS_SWIFT_NONSENDABLE
155 | API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
156 | @interface AVAssetExportSession : NSObject
    |            `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
157 | {
158 | @private
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:105:7: warning: capture of 'session' with non-sendable type 'AVAssetExportSession' in a '@Sendable' closure; this is an error in the Swift 6 language mode
103 |     } onCancel: {
104 |       KYPhotoLibraryLog("Cancel Export Session...")
105 |       session.cancelExport()
    |       `- warning: capture of 'session' with non-sendable type 'AVAssetExportSession' in a '@Sendable' closure; this is an error in the Swift 6 language mode
106 |     }
107 |   }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetExportSession.h:156:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
154 | NS_SWIFT_NONSENDABLE
155 | API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
156 | @interface AVAssetExportSession : NSObject
    |            `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
157 | {
158 | @private
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:151:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
139 | // MARK: - Video Export Session Request Actor
140 |
141 | private actor VideoExportSessionRequestActor {
    |               `- note: add @available attribute to enclosing actor
142 |
143 |   private var requestID: PHImageRequestID?
144 |
145 |   func requestSession(
    |        `- note: add @available attribute to enclosing instance method
146 |     asset: PHAsset,
147 |     requestOptions: PHVideoRequestOptions?,
    :
149 |   ) async throws -> AVAssetExportSession {
150 |
151 |     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
152 |       self.requestID = PHImageManager.default().requestExportSession(
153 |         forVideo: asset,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:152:49: error: 'requestExportSession(forVideo:options:exportPreset:resultHandler:)' is only available in macOS 10.15 or newer
139 | // MARK: - Video Export Session Request Actor
140 |
141 | private actor VideoExportSessionRequestActor {
    |               `- note: add @available attribute to enclosing actor
142 |
143 |   private var requestID: PHImageRequestID?
144 |
145 |   func requestSession(
    |        `- note: add @available attribute to enclosing instance method
146 |     asset: PHAsset,
147 |     requestOptions: PHVideoRequestOptions?,
    :
150 |
151 |     return try await withCheckedThrowingContinuation { continuation in
152 |       self.requestID = PHImageManager.default().requestExportSession(
    |                                                 |- error: 'requestExportSession(forVideo:options:exportPreset:resultHandler:)' is only available in macOS 10.15 or newer
    |                                                 `- note: add 'if #available' version check
153 |         forVideo: asset,
154 |         options: requestOptions,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:151:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:151:54: note: expanded code originates here
139 | // MARK: - Video Export Session Request Actor
140 |
141 | private actor VideoExportSessionRequestActor {
    |               `- note: add @available attribute to enclosing actor
142 |
143 |   private var requestID: PHImageRequestID?
144 |
145 |   func requestSession(
    |        `- note: add @available attribute to enclosing instance method
146 |     asset: PHAsset,
147 |     requestOptions: PHVideoRequestOptions?,
    :
149 |   ) async throws -> AVAssetExportSession {
150 |
151 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift
    |149 |
    |150 |
    |151 |                                                      #isolation
    |    |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
152 |       self.requestID = PHImageManager.default().requestExportSession(
153 |         forVideo: asset,
[24/24] Compiling KYPhotoLibrary KYPhotoLibrary+VideoExport.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:52:14: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
48 |   /// - Returns: An AVAsset object that provides access to the video asset as a collection of tracks and metadata.
49 |   ///
50 |   public static func loadVideo(
   |                      `- note: add @available attribute to enclosing static method
51 |     with assetIdentifier: String,
52 |     options: PHVideoRequestOptions? = nil
   |              `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
53 |   ) async throws -> AVAsset {
54 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:63:69: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
61 |   // MARK: - Private - Load Video from Photo Library
62 |
63 |   private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
   |                       |                                             `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
   |                       `- note: add @available attribute to enclosing static method
64 |     let assetRequestActor = AssetRequestActor()
65 |
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:66:22: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
61 |   // MARK: - Private - Load Video from Photo Library
62 |
63 |   private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
   |                       `- note: add @available attribute to enclosing static method
64 |     let assetRequestActor = AssetRequestActor()
65 |
66 |     return try await withTaskCancellationHandler {
   |                      |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
   |                      `- note: add 'if #available' version check
67 |       KYPhotoLibraryLog("Start Video Request...")
68 |       return try await assetRequestActor.requestVideo(asset, options: options)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:70:7: error: 'Task' is only available in macOS 10.15 or newer
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
61 |   // MARK: - Private - Load Video from Photo Library
62 |
63 |   private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
   |                       `- note: add @available attribute to enclosing static method
64 |     let assetRequestActor = AssetRequestActor()
65 |
   :
68 |       return try await assetRequestActor.requestVideo(asset, options: options)
69 |     } onCancel: {
70 |       Task {
   |       |- error: 'Task' is only available in macOS 10.15 or newer
   |       `- note: add 'if #available' version check
71 |         KYPhotoLibraryLog("Cancel Video Request...")
72 |         await assetRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:70:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
61 |   // MARK: - Private - Load Video from Photo Library
62 |
63 |   private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
   |                       `- note: add @available attribute to enclosing static method
64 |     let assetRequestActor = AssetRequestActor()
65 |
   :
68 |       return try await assetRequestActor.requestVideo(asset, options: options)
69 |     } onCancel: {
70 |       Task {
   |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
   |       `- note: add 'if #available' version check
71 |         KYPhotoLibraryLog("Cancel Video Request...")
72 |         await assetRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:66:51: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:66:50: note: expanded code originates here
11 | import AVFoundation
12 |
13 | extension KYPhotoLibrary {
   | `- note: add @available attribute to enclosing extension
14 |
15 |   // MARK: - Public - Save Video to Photo Library
   :
61 |   // MARK: - Private - Load Video from Photo Library
62 |
63 |   private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
   |                       `- note: add @available attribute to enclosing static method
64 |     let assetRequestActor = AssetRequestActor()
65 |
66 |     return try await withTaskCancellationHandler {
   +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift
   |64 |
   |65 |
   |66 |                                                  #isolation
   |   |                                                   `- error: 'isolation()' is only available in macOS 10.15 or newer
   +-------------------------------------------------------------------------------------------------------
67 |       KYPhotoLibraryLog("Start Video Request...")
68 |       return try await assetRequestActor.requestVideo(asset, options: options)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:62:21: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    |                     `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
 63 |     exportOptions: KYPhotoLibraryExportOptions
 64 |   ) async throws -> URL? {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:147:21: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
139 | // MARK: - Video Export Session Request Actor
140 |
141 | private actor VideoExportSessionRequestActor {
    |               `- note: add @available attribute to enclosing actor
142 |
143 |   private var requestID: PHImageRequestID?
144 |
145 |   func requestSession(
    |        `- note: add @available attribute to enclosing instance method
146 |     asset: PHAsset,
147 |     requestOptions: PHVideoRequestOptions?,
    |                     `- error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
148 |     exportOptions: KYPhotoLibraryExportOptions
149 |   ) async throws -> AVAssetExportSession {
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:72:51: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 70 |     // Request a video export session.
 71 |     let exportSessionRequestActor = VideoExportSessionRequestActor()
 72 |     let session: AVAssetExportSession = try await withTaskCancellationHandler {
    |                                                   |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
    |                                                   `- note: add 'if #available' version check
 73 |       KYPhotoLibraryLog("Start Export Session Request...")
 74 |       return try await exportSessionRequestActor.requestSession(
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:79:7: error: 'Task' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 77 |         exportOptions: exportOptions)
 78 |     } onCancel: {
 79 |       Task {
    |       |- error: 'Task' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 80 |         KYPhotoLibraryLog("Cancel Export Session Request...")
 81 |         await exportSessionRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:79:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 77 |         exportOptions: exportOptions)
 78 |     } onCancel: {
 79 |       Task {
    |       |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 80 |         KYPhotoLibraryLog("Cancel Export Session Request...")
 81 |         await exportSessionRequestActor.cancelRequst()
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:88:9: error: 'Task' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 86 |     KYPhotoLibraryDebug.simulateWaiting(.assetExport)
 87 | #endif
 88 |     try Task.checkCancellation()
    |         |- error: 'Task' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 89 |
 90 |     //
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:88:14: error: 'checkCancellation()' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 86 |     KYPhotoLibraryDebug.simulateWaiting(.assetExport)
 87 | #endif
 88 |     try Task.checkCancellation()
    |              |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
 89 |
 90 |     //
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:100:22: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 98 |     }
 99 |
100 |     return try await withTaskCancellationHandler {
    |                      |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
101 |       KYPhotoLibraryLog("Start Export Session...")
102 |       return try await _exportVideo(with: session)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:72:80: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:72:79: note: expanded code originates here
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 70 |     // Request a video export session.
 71 |     let exportSessionRequestActor = VideoExportSessionRequestActor()
 72 |     let session: AVAssetExportSession = try await withTaskCancellationHandler {
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift
    |70 |
    |71 |
    |72 |                                                                               #isolation
    |   |                                                                                `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
 73 |       KYPhotoLibraryLog("Start Export Session Request...")
 74 |       return try await exportSessionRequestActor.requestSession(
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:100:51: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:100:50: note: expanded code originates here
 11 | import AVFoundation
 12 |
 13 | extension KYPhotoLibrary {
    | `- note: add @available attribute to enclosing extension
 14 |
 15 |   // MARK: - Error
    :
 58 |   /// - Returns: The exported video URL; nil if failed.
 59 |   ///
 60 |   public static func exportVideoFromPhotoLibrary(
    |                      `- note: add @available attribute to enclosing static method
 61 |     with assetIdentifier: String,
 62 |     requestOptions: PHVideoRequestOptions? = nil,
    :
 98 |     }
 99 |
100 |     return try await withTaskCancellationHandler {
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift
    | 98 |
    | 99 |
    |100 |                                                  #isolation
    |    |                                                   `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
101 |       KYPhotoLibraryLog("Start Export Session...")
102 |       return try await _exportVideo(with: session)
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:74:50: warning: non-sendable result type 'AVAssetExportSession' cannot be sent from actor-isolated context in call to instance method 'requestSession(asset:requestOptions:exportOptions:)'; this is an error in the Swift 6 language mode
 72 |     let session: AVAssetExportSession = try await withTaskCancellationHandler {
 73 |       KYPhotoLibraryLog("Start Export Session Request...")
 74 |       return try await exportSessionRequestActor.requestSession(
    |                                                  `- warning: non-sendable result type 'AVAssetExportSession' cannot be sent from actor-isolated context in call to instance method 'requestSession(asset:requestOptions:exportOptions:)'; this is an error in the Swift 6 language mode
 75 |         asset: asset,
 76 |         requestOptions: requestOptions,
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetExportSession.h:156:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
154 | NS_SWIFT_NONSENDABLE
155 | API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
156 | @interface AVAssetExportSession : NSObject
    |            `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
157 | {
158 | @private
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:105:7: warning: capture of 'session' with non-sendable type 'AVAssetExportSession' in a '@Sendable' closure; this is an error in the Swift 6 language mode
103 |     } onCancel: {
104 |       KYPhotoLibraryLog("Cancel Export Session...")
105 |       session.cancelExport()
    |       `- warning: capture of 'session' with non-sendable type 'AVAssetExportSession' in a '@Sendable' closure; this is an error in the Swift 6 language mode
106 |     }
107 |   }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetExportSession.h:156:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
154 | NS_SWIFT_NONSENDABLE
155 | API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
156 | @interface AVAssetExportSession : NSObject
    |            `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
157 | {
158 | @private
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:151:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
139 | // MARK: - Video Export Session Request Actor
140 |
141 | private actor VideoExportSessionRequestActor {
    |               `- note: add @available attribute to enclosing actor
142 |
143 |   private var requestID: PHImageRequestID?
144 |
145 |   func requestSession(
    |        `- note: add @available attribute to enclosing instance method
146 |     asset: PHAsset,
147 |     requestOptions: PHVideoRequestOptions?,
    :
149 |   ) async throws -> AVAssetExportSession {
150 |
151 |     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
152 |       self.requestID = PHImageManager.default().requestExportSession(
153 |         forVideo: asset,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:152:49: error: 'requestExportSession(forVideo:options:exportPreset:resultHandler:)' is only available in macOS 10.15 or newer
139 | // MARK: - Video Export Session Request Actor
140 |
141 | private actor VideoExportSessionRequestActor {
    |               `- note: add @available attribute to enclosing actor
142 |
143 |   private var requestID: PHImageRequestID?
144 |
145 |   func requestSession(
    |        `- note: add @available attribute to enclosing instance method
146 |     asset: PHAsset,
147 |     requestOptions: PHVideoRequestOptions?,
    :
150 |
151 |     return try await withCheckedThrowingContinuation { continuation in
152 |       self.requestID = PHImageManager.default().requestExportSession(
    |                                                 |- error: 'requestExportSession(forVideo:options:exportPreset:resultHandler:)' is only available in macOS 10.15 or newer
    |                                                 `- note: add 'if #available' version check
153 |         forVideo: asset,
154 |         options: requestOptions,
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:151:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:151:54: note: expanded code originates here
139 | // MARK: - Video Export Session Request Actor
140 |
141 | private actor VideoExportSessionRequestActor {
    |               `- note: add @available attribute to enclosing actor
142 |
143 |   private var requestID: PHImageRequestID?
144 |
145 |   func requestSession(
    |        `- note: add @available attribute to enclosing instance method
146 |     asset: PHAsset,
147 |     requestOptions: PHVideoRequestOptions?,
    :
149 |   ) async throws -> AVAssetExportSession {
150 |
151 |     return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift
    |149 |
    |150 |
    |151 |                                                      #isolation
    |    |                                                       `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------
152 |       self.requestID = PHImageManager.default().requestExportSession(
153 |         forVideo: asset,
BUILD FAILURE 6.1 macosSpm