Build Information
Failed to build KYPhotoLibrary, reference 2.0.0 (28e87c
), with Swift 5.8 for macOS (SPM) on 16 Nov 2024 08:13:38 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Build Log
extension UTType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:12:1: note: add @available attribute to enclosing extension
extension UTType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:18:14: error: 'UTType' is only available in macOS 11.0 or newer
return UTType(filenameExtension: fileExtension)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:18:14: note: add 'if #available' version check
return UTType(filenameExtension: fileExtension)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:16:22: note: add @available attribute to enclosing static method
public static func ky_fromFile(with fileURL: URL) -> UTType? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:12:1: note: add @available attribute to enclosing extension
extension UTType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:18:14: error: 'init(filenameExtension:conformingTo:)' is only available in macOS 11.0 or newer
return UTType(filenameExtension: fileExtension)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:18:14: note: add 'if #available' version check
return UTType(filenameExtension: fileExtension)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:16:22: note: add @available attribute to enclosing static method
public static func ky_fromFile(with fileURL: URL) -> UTType? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:12:1: note: add @available attribute to enclosing extension
extension UTType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:36:22: error: 'UTType' is only available in macOS 11.0 or newer
guard let type = UTType(identifier) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:36:22: note: add 'if #available' version check
guard let type = UTType(identifier) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:35:22: note: add @available attribute to enclosing static method
public static func ky_getFileExtensionFromUniformTypeIdentifier(_ identifier: String) -> String? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:12:1: note: add @available attribute to enclosing extension
extension UTType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:36:22: error: 'init(_:)' is only available in macOS 11.0 or newer
guard let type = UTType(identifier) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:36:22: note: add 'if #available' version check
guard let type = UTType(identifier) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:35:22: note: add @available attribute to enclosing static method
public static func ky_getFileExtensionFromUniformTypeIdentifier(_ identifier: String) -> String? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:12:1: note: add @available attribute to enclosing extension
extension UTType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:43:17: error: 'preferredFilenameExtension' is only available in macOS 11.0 or newer
return self.preferredFilenameExtension ?? self.tags[UTTagClass.filenameExtension]?.first
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:43:17: note: add 'if #available' version check
return self.preferredFilenameExtension ?? self.tags[UTTagClass.filenameExtension]?.first
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:42:15: note: add @available attribute to enclosing instance method
public func ky_getFileExtension() -> String? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:12:1: note: add @available attribute to enclosing extension
extension UTType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:43:47: warning: conformance of 'UTTagClass' to 'Hashable' is only available in macOS 11.0 or newer
return self.preferredFilenameExtension ?? self.tags[UTTagClass.filenameExtension]?.first
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:43:47: note: add 'if #available' version check
return self.preferredFilenameExtension ?? self.tags[UTTagClass.filenameExtension]?.first
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:42:15: note: add @available attribute to enclosing instance method
public func ky_getFileExtension() -> String? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:12:1: note: add @available attribute to enclosing extension
extension UTType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:43:52: error: 'tags' is only available in macOS 11.0 or newer
return self.preferredFilenameExtension ?? self.tags[UTTagClass.filenameExtension]?.first
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:43:52: note: add 'if #available' version check
return self.preferredFilenameExtension ?? self.tags[UTTagClass.filenameExtension]?.first
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:42:15: note: add @available attribute to enclosing instance method
public func ky_getFileExtension() -> String? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:12:1: note: add @available attribute to enclosing extension
extension UTType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:43:57: error: 'UTTagClass' is only available in macOS 11.0 or newer
return self.preferredFilenameExtension ?? self.tags[UTTagClass.filenameExtension]?.first
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:43:57: note: add 'if #available' version check
return self.preferredFilenameExtension ?? self.tags[UTTagClass.filenameExtension]?.first
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:42:15: note: add @available attribute to enclosing instance method
public func ky_getFileExtension() -> String? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:12:1: note: add @available attribute to enclosing extension
extension UTType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:43:68: error: 'filenameExtension' is only available in macOS 11.0 or newer
return self.preferredFilenameExtension ?? self.tags[UTTagClass.filenameExtension]?.first
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:43:68: note: add 'if #available' version check
return self.preferredFilenameExtension ?? self.tags[UTTagClass.filenameExtension]?.first
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:42:15: note: add @available attribute to enclosing instance method
public func ky_getFileExtension() -> String? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:12:1: note: add @available attribute to enclosing extension
extension UTType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:49:12: error: 'conforms(to:)' is only available in macOS 11.0 or newer
return conforms(to: .image)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:49:12: note: add 'if #available' version check
return conforms(to: .image)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:48:15: note: add @available attribute to enclosing instance method
public func ky_isPhotoFileType() -> Bool {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:12:1: note: add @available attribute to enclosing extension
extension UTType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:49:26: error: 'image' is only available in macOS 11.0 or newer
return conforms(to: .image)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:49:26: note: add 'if #available' version check
return conforms(to: .image)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:48:15: note: add @available attribute to enclosing instance method
public func ky_isPhotoFileType() -> Bool {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:12:1: note: add @available attribute to enclosing extension
extension UTType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:53:12: error: 'conforms(to:)' is only available in macOS 11.0 or newer
return conforms(to: .movie)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:53:12: note: add 'if #available' version check
return conforms(to: .movie)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:52:15: note: add @available attribute to enclosing instance method
public func ky_isVideoFileType() -> Bool {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:12:1: note: add @available attribute to enclosing extension
extension UTType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:53:26: error: 'movie' is only available in macOS 11.0 or newer
return conforms(to: .movie)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:53:26: note: add 'if #available' version check
return conforms(to: .movie)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:52:15: note: add @available attribute to enclosing instance method
public func ky_isVideoFileType() -> Bool {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:12:1: note: add @available attribute to enclosing extension
extension UTType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:57:12: error: 'conforms(to:)' is only available in macOS 11.0 or newer
return conforms(to: .audio)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:57:12: note: add 'if #available' version check
return conforms(to: .audio)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:56:15: note: add @available attribute to enclosing instance method
public func ky_isAudioFileType() -> Bool {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:12:1: note: add @available attribute to enclosing extension
extension UTType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:57:26: error: 'audio' is only available in macOS 11.0 or newer
return conforms(to: .audio)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:57:26: note: add 'if #available' version check
return conforms(to: .audio)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:56:15: note: add @available attribute to enclosing instance method
public func ky_isAudioFileType() -> Bool {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:12:1: note: add @available attribute to enclosing extension
extension UTType {
^
[9/23] Compiling KYPhotoLibrary KYPhotoLibraryLogger.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:20:28: error: 'UTType' is only available in macOS 11.0 or newer
} else if let utType = UTType(filenameExtension: fileExtension) {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:20:28: note: add 'if #available' version check
} else if let utType = UTType(filenameExtension: fileExtension) {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:17:15: note: add @available attribute to enclosing static method
static func ky_fromFileExtension(_ fileExtension: String) -> AVFileType? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:13:1: note: add @available attribute to enclosing extension
extension AVFileType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:20:28: error: 'init(filenameExtension:conformingTo:)' is only available in macOS 11.0 or newer
} else if let utType = UTType(filenameExtension: fileExtension) {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:20:28: note: add 'if #available' version check
} else if let utType = UTType(filenameExtension: fileExtension) {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:17:15: note: add @available attribute to enclosing static method
static func ky_fromFileExtension(_ fileExtension: String) -> AVFileType? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:13:1: note: add @available attribute to enclosing extension
extension AVFileType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:21:32: error: 'identifier' is only available in macOS 11.0 or newer
return AVFileType(utType.identifier)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:21:32: note: add 'if #available' version check
return AVFileType(utType.identifier)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:17:15: note: add @available attribute to enclosing static method
static func ky_fromFileExtension(_ fileExtension: String) -> AVFileType? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:13:1: note: add @available attribute to enclosing extension
extension AVFileType {
^
[10/23] Compiling KYPhotoLibrary AVFileType+KYPhotoLibrary.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:20:28: error: 'UTType' is only available in macOS 11.0 or newer
} else if let utType = UTType(filenameExtension: fileExtension) {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:20:28: note: add 'if #available' version check
} else if let utType = UTType(filenameExtension: fileExtension) {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:17:15: note: add @available attribute to enclosing static method
static func ky_fromFileExtension(_ fileExtension: String) -> AVFileType? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:13:1: note: add @available attribute to enclosing extension
extension AVFileType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:20:28: error: 'init(filenameExtension:conformingTo:)' is only available in macOS 11.0 or newer
} else if let utType = UTType(filenameExtension: fileExtension) {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:20:28: note: add 'if #available' version check
} else if let utType = UTType(filenameExtension: fileExtension) {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:17:15: note: add @available attribute to enclosing static method
static func ky_fromFileExtension(_ fileExtension: String) -> AVFileType? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:13:1: note: add @available attribute to enclosing extension
extension AVFileType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:21:32: error: 'identifier' is only available in macOS 11.0 or newer
return AVFileType(utType.identifier)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:21:32: note: add 'if #available' version check
return AVFileType(utType.identifier)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:17:15: note: add @available attribute to enclosing static method
static func ky_fromFileExtension(_ fileExtension: String) -> AVFileType? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/AVFileType+KYPhotoLibrary.swift:13:1: note: add @available attribute to enclosing extension
extension AVFileType {
^
[11/23] 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
options: PHVideoRequestOptions? = nil
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:50:22: note: add @available attribute to enclosing static method
public static func loadVideo(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:63:23: note: add @available attribute to enclosing static method
private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:66:22: error: 'withTaskCancellationHandler(operation:onCancel:)' is only available in macOS 10.15 or newer
return try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:66:22: note: add 'if #available' version check
return try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:63:23: note: add @available attribute to enclosing static method
private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:70:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:63:23: note: add @available attribute to enclosing static method
private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:70:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:63:23: note: add @available attribute to enclosing static method
private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
requestOptions: PHVideoRequestOptions? = nil,
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:60:22: note: add @available attribute to enclosing static method
public static func exportVideoFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
requestOptions: PHVideoRequestOptions?,
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:145:8: note: add @available attribute to enclosing instance method
func requestSession(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:141:15: note: add @available attribute to enclosing actor
private actor VideoExportSessionRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:72:51: error: 'withTaskCancellationHandler(operation:onCancel:)' is only available in macOS 10.15 or newer
let session: AVAssetExportSession = try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:72:51: note: add 'if #available' version check
let session: AVAssetExportSession = try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:60:22: note: add @available attribute to enclosing static method
public static func exportVideoFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:79:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:60:22: note: add @available attribute to enclosing static method
public static func exportVideoFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:79:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:60:22: note: add @available attribute to enclosing static method
public static func exportVideoFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:88:9: note: add 'if #available' version check
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:60:22: note: add @available attribute to enclosing static method
public static func exportVideoFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:88:14: note: add 'if #available' version check
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:60:22: note: add @available attribute to enclosing static method
public static func exportVideoFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:100:22: error: 'withTaskCancellationHandler(operation:onCancel:)' is only available in macOS 10.15 or newer
return try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:100:22: note: add 'if #available' version check
return try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:60:22: note: add @available attribute to enclosing static method
public static func exportVideoFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:151:22: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:151:22: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:145:8: note: add @available attribute to enclosing instance method
func requestSession(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:141:15: note: add @available attribute to enclosing actor
private actor VideoExportSessionRequestActor {
^
/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
self.requestID = PHImageManager.default().requestExportSession(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:152:49: note: add 'if #available' version check
self.requestID = PHImageManager.default().requestExportSession(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:145:8: note: add @available attribute to enclosing instance method
func requestSession(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:141:15: note: add @available attribute to enclosing actor
private actor VideoExportSessionRequestActor {
^
[12/23] 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
options: PHVideoRequestOptions? = nil
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:50:22: note: add @available attribute to enclosing static method
public static func loadVideo(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:63:23: note: add @available attribute to enclosing static method
private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:66:22: error: 'withTaskCancellationHandler(operation:onCancel:)' is only available in macOS 10.15 or newer
return try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:66:22: note: add 'if #available' version check
return try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:63:23: note: add @available attribute to enclosing static method
private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:70:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:63:23: note: add @available attribute to enclosing static method
private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:70:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:63:23: note: add @available attribute to enclosing static method
private static func _loadVideoForAsset(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+Video.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
requestOptions: PHVideoRequestOptions? = nil,
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:60:22: note: add @available attribute to enclosing static method
public static func exportVideoFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
requestOptions: PHVideoRequestOptions?,
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:145:8: note: add @available attribute to enclosing instance method
func requestSession(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:141:15: note: add @available attribute to enclosing actor
private actor VideoExportSessionRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:72:51: error: 'withTaskCancellationHandler(operation:onCancel:)' is only available in macOS 10.15 or newer
let session: AVAssetExportSession = try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:72:51: note: add 'if #available' version check
let session: AVAssetExportSession = try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:60:22: note: add @available attribute to enclosing static method
public static func exportVideoFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:79:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:60:22: note: add @available attribute to enclosing static method
public static func exportVideoFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:79:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:60:22: note: add @available attribute to enclosing static method
public static func exportVideoFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:88:9: note: add 'if #available' version check
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:60:22: note: add @available attribute to enclosing static method
public static func exportVideoFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:88:14: note: add 'if #available' version check
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:60:22: note: add @available attribute to enclosing static method
public static func exportVideoFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:100:22: error: 'withTaskCancellationHandler(operation:onCancel:)' is only available in macOS 10.15 or newer
return try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:100:22: note: add 'if #available' version check
return try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:60:22: note: add @available attribute to enclosing static method
public static func exportVideoFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:13:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:151:22: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:151:22: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:145:8: note: add @available attribute to enclosing instance method
func requestSession(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:141:15: note: add @available attribute to enclosing actor
private actor VideoExportSessionRequestActor {
^
/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
self.requestID = PHImageManager.default().requestExportSession(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:152:49: note: add 'if #available' version check
self.requestID = PHImageManager.default().requestExportSession(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:145:8: note: add @available attribute to enclosing instance method
func requestSession(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Video/KYPhotoLibrary+VideoExport.swift:141:15: note: add @available attribute to enclosing actor
private actor VideoExportSessionRequestActor {
^
[13/23] Compiling KYPhotoLibrary KYPhotoLibrary+Album.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:25:70: error: 'fetchAssetCollections(with:subtype:options:)' is only available in macOS 10.15 or newer
let albums: PHFetchResult<PHAssetCollection> = PHAssetCollection.fetchAssetCollections(with: .album, subtype: .any, options: nil)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:25:70: note: add 'if #available' version check
let albums: PHFetchResult<PHAssetCollection> = PHAssetCollection.fetchAssetCollections(with: .album, subtype: .any, options: nil)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:24:22: note: add @available attribute to enclosing static method
public static func getAlbum(with albumName: String, createIfNotFound: Bool = true) async throws -> PHAssetCollection? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:53:11: error: 'PHAssetCollectionChangeRequest' is only available in macOS 10.15 or newer
_ = PHAssetCollectionChangeRequest.creationRequestForAssetCollection(withTitle: albumName)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:53:11: note: add 'if #available' version check
_ = PHAssetCollectionChangeRequest.creationRequestForAssetCollection(withTitle: albumName)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:51:22: note: add @available attribute to enclosing static method
public static func createAlbum(with albumName: String) async throws -> PHAssetCollection {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:53:42: error: 'creationRequestForAssetCollection(withTitle:)' is only available in macOS 10.15 or newer
_ = PHAssetCollectionChangeRequest.creationRequestForAssetCollection(withTitle: albumName)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:53:42: note: add 'if #available' version check
_ = PHAssetCollectionChangeRequest.creationRequestForAssetCollection(withTitle: albumName)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:51:22: note: add @available attribute to enclosing static method
public static func createAlbum(with albumName: String) async throws -> PHAssetCollection {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
[14/23] Compiling KYPhotoLibrary KYPhotoLibrary.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:25:70: error: 'fetchAssetCollections(with:subtype:options:)' is only available in macOS 10.15 or newer
let albums: PHFetchResult<PHAssetCollection> = PHAssetCollection.fetchAssetCollections(with: .album, subtype: .any, options: nil)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:25:70: note: add 'if #available' version check
let albums: PHFetchResult<PHAssetCollection> = PHAssetCollection.fetchAssetCollections(with: .album, subtype: .any, options: nil)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:24:22: note: add @available attribute to enclosing static method
public static func getAlbum(with albumName: String, createIfNotFound: Bool = true) async throws -> PHAssetCollection? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:53:11: error: 'PHAssetCollectionChangeRequest' is only available in macOS 10.15 or newer
_ = PHAssetCollectionChangeRequest.creationRequestForAssetCollection(withTitle: albumName)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:53:11: note: add 'if #available' version check
_ = PHAssetCollectionChangeRequest.creationRequestForAssetCollection(withTitle: albumName)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:51:22: note: add @available attribute to enclosing static method
public static func createAlbum(with albumName: String) async throws -> PHAssetCollection {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:53:42: error: 'creationRequestForAssetCollection(withTitle:)' is only available in macOS 10.15 or newer
_ = PHAssetCollectionChangeRequest.creationRequestForAssetCollection(withTitle: albumName)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:53:42: note: add 'if #available' version check
_ = PHAssetCollectionChangeRequest.creationRequestForAssetCollection(withTitle: albumName)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:51:22: note: add @available attribute to enclosing static method
public static func createAlbum(with albumName: String) async throws -> PHAssetCollection {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibrary+Album.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
[15/23] Compiling KYPhotoLibrary KYPhotoLibraryConfiguration.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:30:5: error: 'Task' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:30:5: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:26:15: note: add @available attribute to enclosing static method
static func simulateWaiting(_ option: DuringOptions, seconds: Double = 3) {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:12:6: note: add @available attribute to enclosing enum
enum KYPhotoLibraryDebug {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:30:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:30:5: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:26:15: note: add @available attribute to enclosing static method
static func simulateWaiting(_ option: DuringOptions, seconds: Double = 3) {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:12:6: note: add @available attribute to enclosing enum
enum KYPhotoLibraryDebug {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:31:17: error: 'Task' is only available in macOS 10.15 or newer
try await Task.sleep(nanoseconds: UInt64(seconds * 1_000_000_000))
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:31:17: note: add 'if #available' version check
try await Task.sleep(nanoseconds: UInt64(seconds * 1_000_000_000))
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:26:15: note: add @available attribute to enclosing static method
static func simulateWaiting(_ option: DuringOptions, seconds: Double = 3) {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:12:6: note: add @available attribute to enclosing enum
enum KYPhotoLibraryDebug {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:31:22: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
try await Task.sleep(nanoseconds: UInt64(seconds * 1_000_000_000))
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:31:22: note: add 'if #available' version check
try await Task.sleep(nanoseconds: UInt64(seconds * 1_000_000_000))
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:26:15: note: add @available attribute to enclosing static method
static func simulateWaiting(_ option: DuringOptions, seconds: Double = 3) {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:12:6: note: add @available attribute to enclosing enum
enum KYPhotoLibraryDebug {
^
[16/23] Compiling KYPhotoLibrary KYPhotoLibraryDebug.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:30:5: error: 'Task' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:30:5: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:26:15: note: add @available attribute to enclosing static method
static func simulateWaiting(_ option: DuringOptions, seconds: Double = 3) {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:12:6: note: add @available attribute to enclosing enum
enum KYPhotoLibraryDebug {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:30:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:30:5: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:26:15: note: add @available attribute to enclosing static method
static func simulateWaiting(_ option: DuringOptions, seconds: Double = 3) {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:12:6: note: add @available attribute to enclosing enum
enum KYPhotoLibraryDebug {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:31:17: error: 'Task' is only available in macOS 10.15 or newer
try await Task.sleep(nanoseconds: UInt64(seconds * 1_000_000_000))
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:31:17: note: add 'if #available' version check
try await Task.sleep(nanoseconds: UInt64(seconds * 1_000_000_000))
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:26:15: note: add @available attribute to enclosing static method
static func simulateWaiting(_ option: DuringOptions, seconds: Double = 3) {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:12:6: note: add @available attribute to enclosing enum
enum KYPhotoLibraryDebug {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:31:22: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
try await Task.sleep(nanoseconds: UInt64(seconds * 1_000_000_000))
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:31:22: note: add 'if #available' version check
try await Task.sleep(nanoseconds: UInt64(seconds * 1_000_000_000))
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:26:15: note: add @available attribute to enclosing static method
static func simulateWaiting(_ option: DuringOptions, seconds: Double = 3) {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/KYPhotoLibraryDebug.swift:12:6: note: add @available attribute to enclosing enum
enum KYPhotoLibraryDebug {
^
[17/23] Compiling KYPhotoLibrary TimeInterval+KYPhotoLibrary.swift
[18/23] Compiling KYPhotoLibrary UIDevice+KYPhotoLibrary.swift
[19/23] Compiling KYPhotoLibrary KYPhotoLibrary+Image.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:137:9: error: 'Task' is only available in macOS 10.15 or newer
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:137:9: note: add 'if #available' version check
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:123:22: note: add @available attribute to enclosing static method
public static func loadImages(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:21:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:137:14: error: 'checkCancellation()' is only available in macOS 10.15 or newer
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:137:14: note: add 'if #available' version check
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:123:22: note: add @available attribute to enclosing static method
public static func loadImages(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:21:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:143:22: error: 'withThrowingTaskGroup(of:returning:body:)' is only available in macOS 10.15 or newer
return try await withThrowingTaskGroup(of: KYPhotoLibraryImage.self, returning: [KYPhotoLibraryImage].self) { taskGroup in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:143:22: note: add 'if #available' version check
return try await withThrowingTaskGroup(of: KYPhotoLibraryImage.self, returning: [KYPhotoLibraryImage].self) { taskGroup in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:123:22: note: add @available attribute to enclosing static method
public static func loadImages(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:21:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:165:36: error: 'reduce(into:_:)' is only available in macOS 10.15 or newer
return try await taskGroup.reduce(into: [KYPhotoLibraryImage]()) { partialResult, image in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:165:36: note: add 'if #available' version check
return try await taskGroup.reduce(into: [KYPhotoLibraryImage]()) { partialResult, image in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:123:22: note: add @available attribute to enclosing static method
public static func loadImages(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:21:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:192:22: error: 'withTaskCancellationHandler(operation:onCancel:)' is only available in macOS 10.15 or newer
return try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:192:22: note: add 'if #available' version check
return try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:184:23: note: add @available attribute to enclosing static method
private static func _loadImageForAsset(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:21:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:196:7: error: 'Task' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:196:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:184:23: note: add @available attribute to enclosing static method
private static func _loadImageForAsset(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:21:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:196:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:196:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:184:23: note: add @available attribute to enclosing static method
private static func _loadImageForAsset(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:21:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:79:37: error: 'withTaskCancellationHandler(operation:onCancel:)' is only available in macOS 10.15 or newer
let imageData: Data = try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:79:37: note: add 'if #available' version check
let imageData: Data = try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:67:22: note: add @available attribute to enclosing static method
public static func exportImageFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:17:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:83:7: error: 'Task' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:83:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:67:22: note: add @available attribute to enclosing static method
public static func exportImageFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:17:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:83:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:83:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:67:22: note: add @available attribute to enclosing static method
public static func exportImageFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:17:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:89:9: error: 'Task' is only available in macOS 10.15 or newer
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:89:9: note: add 'if #available' version check
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:67:22: note: add @available attribute to enclosing static method
public static func exportImageFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:17:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:89:14: error: 'checkCancellation()' is only available in macOS 10.15 or newer
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:89:14: note: add 'if #available' version check
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:67:22: note: add @available attribute to enclosing static method
public static func exportImageFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:17:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:113:37: error: 'withTaskCancellationHandler(operation:onCancel:)' is only available in macOS 10.15 or newer
let imageData: Data = try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:113:37: note: add 'if #available' version check
let imageData: Data = try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:106:22: note: add @available attribute to enclosing static method
public static func exportImage(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:17:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:120:7: error: 'Task' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:120:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:106:22: note: add @available attribute to enclosing static method
public static func exportImage(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:17:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:120:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:120:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:106:22: note: add @available attribute to enclosing static method
public static func exportImage(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:17:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:126:9: error: 'Task' is only available in macOS 10.15 or newer
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:126:9: note: add 'if #available' version check
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:106:22: note: add @available attribute to enclosing static method
public static func exportImage(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:17:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:126:14: error: 'checkCancellation()' is only available in macOS 10.15 or newer
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:126:14: note: add 'if #available' version check
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:106:22: note: add @available attribute to enclosing static method
public static func exportImage(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:17:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:144:22: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:144:22: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:143:8: note: add @available attribute to enclosing instance method
func requestOriginalImageData(asset: PHAsset, requestOptions: PHImageRequestOptions?) async throws -> Data {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:138:15: note: add @available attribute to enclosing actor
private actor ImageDataRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:145:49: error: 'requestImageDataAndOrientation(for:options:resultHandler:)' is only available in macOS 10.15 or newer
self.requestID = PHImageManager.default().requestImageDataAndOrientation(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:145:49: note: add 'if #available' version check
self.requestID = PHImageManager.default().requestImageDataAndOrientation(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:143:8: note: add @available attribute to enclosing instance method
func requestOriginalImageData(asset: PHAsset, requestOptions: PHImageRequestOptions?) async throws -> Data {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:138:15: note: add @available attribute to enclosing actor
private actor ImageDataRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:162:22: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:162:22: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:161:8: note: add @available attribute to enclosing instance method
func requestImageData(forTpye typeIdentifier: String, image: KYPhotoLibraryImage) async throws -> Data {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:138:15: note: add @available attribute to enclosing actor
private actor ImageDataRequestActor {
^
[20/23] Compiling KYPhotoLibrary KYPhotoLibrary+ImageExport.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:137:9: error: 'Task' is only available in macOS 10.15 or newer
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:137:9: note: add 'if #available' version check
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:123:22: note: add @available attribute to enclosing static method
public static func loadImages(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:21:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:137:14: error: 'checkCancellation()' is only available in macOS 10.15 or newer
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:137:14: note: add 'if #available' version check
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:123:22: note: add @available attribute to enclosing static method
public static func loadImages(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:21:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:143:22: error: 'withThrowingTaskGroup(of:returning:body:)' is only available in macOS 10.15 or newer
return try await withThrowingTaskGroup(of: KYPhotoLibraryImage.self, returning: [KYPhotoLibraryImage].self) { taskGroup in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:143:22: note: add 'if #available' version check
return try await withThrowingTaskGroup(of: KYPhotoLibraryImage.self, returning: [KYPhotoLibraryImage].self) { taskGroup in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:123:22: note: add @available attribute to enclosing static method
public static func loadImages(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:21:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:165:36: error: 'reduce(into:_:)' is only available in macOS 10.15 or newer
return try await taskGroup.reduce(into: [KYPhotoLibraryImage]()) { partialResult, image in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:165:36: note: add 'if #available' version check
return try await taskGroup.reduce(into: [KYPhotoLibraryImage]()) { partialResult, image in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:123:22: note: add @available attribute to enclosing static method
public static func loadImages(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:21:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:192:22: error: 'withTaskCancellationHandler(operation:onCancel:)' is only available in macOS 10.15 or newer
return try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:192:22: note: add 'if #available' version check
return try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:184:23: note: add @available attribute to enclosing static method
private static func _loadImageForAsset(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:21:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:196:7: error: 'Task' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:196:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:184:23: note: add @available attribute to enclosing static method
private static func _loadImageForAsset(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:21:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:196:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:196:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:184:23: note: add @available attribute to enclosing static method
private static func _loadImageForAsset(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+Image.swift:21:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:79:37: error: 'withTaskCancellationHandler(operation:onCancel:)' is only available in macOS 10.15 or newer
let imageData: Data = try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:79:37: note: add 'if #available' version check
let imageData: Data = try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:67:22: note: add @available attribute to enclosing static method
public static func exportImageFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:17:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:83:7: error: 'Task' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:83:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:67:22: note: add @available attribute to enclosing static method
public static func exportImageFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:17:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:83:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:83:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:67:22: note: add @available attribute to enclosing static method
public static func exportImageFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:17:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:89:9: error: 'Task' is only available in macOS 10.15 or newer
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:89:9: note: add 'if #available' version check
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:67:22: note: add @available attribute to enclosing static method
public static func exportImageFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:17:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:89:14: error: 'checkCancellation()' is only available in macOS 10.15 or newer
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:89:14: note: add 'if #available' version check
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:67:22: note: add @available attribute to enclosing static method
public static func exportImageFromPhotoLibrary(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:17:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:113:37: error: 'withTaskCancellationHandler(operation:onCancel:)' is only available in macOS 10.15 or newer
let imageData: Data = try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:113:37: note: add 'if #available' version check
let imageData: Data = try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:106:22: note: add @available attribute to enclosing static method
public static func exportImage(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:17:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:120:7: error: 'Task' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:120:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:106:22: note: add @available attribute to enclosing static method
public static func exportImage(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:17:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:120:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:120:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:106:22: note: add @available attribute to enclosing static method
public static func exportImage(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:17:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:126:9: error: 'Task' is only available in macOS 10.15 or newer
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:126:9: note: add 'if #available' version check
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:106:22: note: add @available attribute to enclosing static method
public static func exportImage(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:17:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:126:14: error: 'checkCancellation()' is only available in macOS 10.15 or newer
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:126:14: note: add 'if #available' version check
try Task.checkCancellation()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:106:22: note: add @available attribute to enclosing static method
public static func exportImage(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:17:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:144:22: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:144:22: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:143:8: note: add @available attribute to enclosing instance method
func requestOriginalImageData(asset: PHAsset, requestOptions: PHImageRequestOptions?) async throws -> Data {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:138:15: note: add @available attribute to enclosing actor
private actor ImageDataRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:145:49: error: 'requestImageDataAndOrientation(for:options:resultHandler:)' is only available in macOS 10.15 or newer
self.requestID = PHImageManager.default().requestImageDataAndOrientation(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:145:49: note: add 'if #available' version check
self.requestID = PHImageManager.default().requestImageDataAndOrientation(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:143:8: note: add @available attribute to enclosing instance method
func requestOriginalImageData(asset: PHAsset, requestOptions: PHImageRequestOptions?) async throws -> Data {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:138:15: note: add @available attribute to enclosing actor
private actor ImageDataRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:162:22: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:162:22: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:161:8: note: add @available attribute to enclosing instance method
func requestImageData(forTpye typeIdentifier: String, image: KYPhotoLibraryImage) async throws -> Data {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Image/KYPhotoLibrary+ImageExport.swift:138:15: note: add @available attribute to enclosing actor
private actor ImageDataRequestActor {
^
[21/23] 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
var contentEditingInputRequestID: PHContentEditingInputRequestID?
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:52:51: error: 'PHContentEditingInputRequestOptions' is only available in macOS 10.15 or newer
func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:52:8: note: add @available attribute to enclosing instance method
func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:71:48: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:71:8: note: add @available attribute to enclosing instance method
func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:89:51: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:89:8: note: add @available attribute to enclosing instance method
func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:30:22: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:30:22: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:25:8: note: add @available attribute to enclosing instance method
func requestImage(_ asset: PHAsset, expectedSize: CGSize, options: PHImageRequestOptions?) async throws -> KYPhotoLibraryImage {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:31:24: error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
self.requestID = PHCachingImageManager.default().requestImage(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:31:24: note: add 'if #available' version check
self.requestID = PHCachingImageManager.default().requestImage(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:25:8: note: add @available attribute to enclosing instance method
func requestImage(_ asset: PHAsset, expectedSize: CGSize, options: PHImageRequestOptions?) async throws -> KYPhotoLibraryImage {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:53:22: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:53:22: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:52:8: note: add @available attribute to enclosing instance method
func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:54:49: error: 'requestContentEditingInput(with:completionHandler:)' is only available in macOS 10.15 or newer
self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:54:49: note: add 'if #available' version check
self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:52:8: note: add @available attribute to enclosing instance method
func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:72:22: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:72:22: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:71:8: note: add @available attribute to enclosing instance method
func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:73:24: error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:73:24: note: add 'if #available' version check
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:71:8: note: add @available attribute to enclosing instance method
func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:73:56: error: 'requestAVAsset(forVideo:options:resultHandler:)' is only available in macOS 10.15 or newer
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:73:56: note: add 'if #available' version check
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:71:8: note: add @available attribute to enclosing instance method
func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:90:22: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:90:22: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:89:8: note: add @available attribute to enclosing instance method
func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:91:24: error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:91:24: note: add 'if #available' version check
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:89:8: note: add @available attribute to enclosing instance method
func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:91:56: error: 'requestAVAsset(forVideo:options:resultHandler:)' is only available in macOS 10.15 or newer
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:91:56: note: add 'if #available' version check
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:89:8: note: add @available attribute to enclosing instance method
func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:119:13: error: 'cancelContentEditingInputRequest' is only available in macOS 10.15 or newer
asset.cancelContentEditingInputRequest(requestID)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:119:13: note: add 'if #available' version check
asset.cancelContentEditingInputRequest(requestID)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:109:8: note: add @available attribute to enclosing instance method
func cancelRequst(_ asset: PHAsset? = nil) async {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/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
var createAssetRequest: PHAssetChangeRequest?
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:66:33: note: add 'if #available' version check
var createAssetRequest: PHAssetChangeRequest?
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:77:43: note: add 'if #available' version check
let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:63:50: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
let savedAssetIdentifier: String = try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:63:50: note: add 'if #available' version check
let savedAssetIdentifier: String = try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
var createAssetRequest: PHAssetChangeRequest?
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:66:33: note: add 'if #available' version check
var createAssetRequest: PHAssetChangeRequest?
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:68:32: note: add 'if #available' version check
createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:68:53: note: add 'if #available' version check
createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:70:32: note: add 'if #available' version check
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:70:53: note: add 'if #available' version check
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:72:32: note: add 'if #available' version check
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:72:53: note: add 'if #available' version check
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:77:43: note: add 'if #available' version check
let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:77:84: note: add 'if #available' version check
let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
let collectionChangeRequest = PHAssetCollectionChangeRequest(for: albumAssetCollection)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:87:41: note: add 'if #available' version check
let collectionChangeRequest = PHAssetCollectionChangeRequest(for: albumAssetCollection)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
let collectionChangeRequest = PHAssetCollectionChangeRequest(for: albumAssetCollection)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:87:41: note: add 'if #available' version check
let collectionChangeRequest = PHAssetCollectionChangeRequest(for: albumAssetCollection)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
collectionChangeRequest.addAssets([placeholderForCreatedAsset] as NSFastEnumeration)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:92:33: note: add 'if #available' version check
collectionChangeRequest.addAssets([placeholderForCreatedAsset] as NSFastEnumeration)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
PHAssetChangeRequest.deleteAssets([asset] as NSFastEnumeration)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:112:7: note: add 'if #available' version check
PHAssetChangeRequest.deleteAssets([asset] as NSFastEnumeration)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:106:15: note: add @available attribute to enclosing static method
static func asset_delete(for mediaType: PHAssetMediaType, with assetIdentifier: String) async throws {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
PHAssetChangeRequest.deleteAssets([asset] as NSFastEnumeration)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:112:28: note: add 'if #available' version check
PHAssetChangeRequest.deleteAssets([asset] as NSFastEnumeration)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:106:15: note: add @available attribute to enclosing static method
static func asset_delete(for mediaType: PHAssetMediaType, with assetIdentifier: String) async throws {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
return PHAsset.fetchAssets(with: fetchOptions)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetQuery.swift:45:22: note: add 'if #available' version check
return PHAsset.fetchAssets(with: fetchOptions)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetQuery.swift:25:22: note: add @available attribute to enclosing static method
public static func loadAssets(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetQuery.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
[22/23] 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
var contentEditingInputRequestID: PHContentEditingInputRequestID?
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:52:51: error: 'PHContentEditingInputRequestOptions' is only available in macOS 10.15 or newer
func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:52:8: note: add @available attribute to enclosing instance method
func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:71:48: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:71:8: note: add @available attribute to enclosing instance method
func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:89:51: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:89:8: note: add @available attribute to enclosing instance method
func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:30:22: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:30:22: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:25:8: note: add @available attribute to enclosing instance method
func requestImage(_ asset: PHAsset, expectedSize: CGSize, options: PHImageRequestOptions?) async throws -> KYPhotoLibraryImage {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:31:24: error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
self.requestID = PHCachingImageManager.default().requestImage(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:31:24: note: add 'if #available' version check
self.requestID = PHCachingImageManager.default().requestImage(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:25:8: note: add @available attribute to enclosing instance method
func requestImage(_ asset: PHAsset, expectedSize: CGSize, options: PHImageRequestOptions?) async throws -> KYPhotoLibraryImage {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:53:22: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:53:22: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:52:8: note: add @available attribute to enclosing instance method
func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:54:49: error: 'requestContentEditingInput(with:completionHandler:)' is only available in macOS 10.15 or newer
self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:54:49: note: add 'if #available' version check
self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:52:8: note: add @available attribute to enclosing instance method
func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:72:22: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:72:22: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:71:8: note: add @available attribute to enclosing instance method
func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:73:24: error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:73:24: note: add 'if #available' version check
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:71:8: note: add @available attribute to enclosing instance method
func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:73:56: error: 'requestAVAsset(forVideo:options:resultHandler:)' is only available in macOS 10.15 or newer
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:73:56: note: add 'if #available' version check
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:71:8: note: add @available attribute to enclosing instance method
func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:90:22: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:90:22: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:89:8: note: add @available attribute to enclosing instance method
func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:91:24: error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:91:24: note: add 'if #available' version check
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:89:8: note: add @available attribute to enclosing instance method
func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:91:56: error: 'requestAVAsset(forVideo:options:resultHandler:)' is only available in macOS 10.15 or newer
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:91:56: note: add 'if #available' version check
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:89:8: note: add @available attribute to enclosing instance method
func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:119:13: error: 'cancelContentEditingInputRequest' is only available in macOS 10.15 or newer
asset.cancelContentEditingInputRequest(requestID)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:119:13: note: add 'if #available' version check
asset.cancelContentEditingInputRequest(requestID)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:109:8: note: add @available attribute to enclosing instance method
func cancelRequst(_ asset: PHAsset? = nil) async {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/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
var createAssetRequest: PHAssetChangeRequest?
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:66:33: note: add 'if #available' version check
var createAssetRequest: PHAssetChangeRequest?
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:77:43: note: add 'if #available' version check
let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:63:50: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
let savedAssetIdentifier: String = try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:63:50: note: add 'if #available' version check
let savedAssetIdentifier: String = try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
var createAssetRequest: PHAssetChangeRequest?
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:66:33: note: add 'if #available' version check
var createAssetRequest: PHAssetChangeRequest?
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:68:32: note: add 'if #available' version check
createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:68:53: note: add 'if #available' version check
createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:70:32: note: add 'if #available' version check
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:70:53: note: add 'if #available' version check
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:72:32: note: add 'if #available' version check
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:72:53: note: add 'if #available' version check
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:77:43: note: add 'if #available' version check
let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:77:84: note: add 'if #available' version check
let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
let collectionChangeRequest = PHAssetCollectionChangeRequest(for: albumAssetCollection)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:87:41: note: add 'if #available' version check
let collectionChangeRequest = PHAssetCollectionChangeRequest(for: albumAssetCollection)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
let collectionChangeRequest = PHAssetCollectionChangeRequest(for: albumAssetCollection)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:87:41: note: add 'if #available' version check
let collectionChangeRequest = PHAssetCollectionChangeRequest(for: albumAssetCollection)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
collectionChangeRequest.addAssets([placeholderForCreatedAsset] as NSFastEnumeration)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:92:33: note: add 'if #available' version check
collectionChangeRequest.addAssets([placeholderForCreatedAsset] as NSFastEnumeration)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
PHAssetChangeRequest.deleteAssets([asset] as NSFastEnumeration)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:112:7: note: add 'if #available' version check
PHAssetChangeRequest.deleteAssets([asset] as NSFastEnumeration)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:106:15: note: add @available attribute to enclosing static method
static func asset_delete(for mediaType: PHAssetMediaType, with assetIdentifier: String) async throws {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
PHAssetChangeRequest.deleteAssets([asset] as NSFastEnumeration)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:112:28: note: add 'if #available' version check
PHAssetChangeRequest.deleteAssets([asset] as NSFastEnumeration)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:106:15: note: add @available attribute to enclosing static method
static func asset_delete(for mediaType: PHAssetMediaType, with assetIdentifier: String) async throws {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
return PHAsset.fetchAssets(with: fetchOptions)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetQuery.swift:45:22: note: add 'if #available' version check
return PHAsset.fetchAssets(with: fetchOptions)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetQuery.swift:25:22: note: add @available attribute to enclosing static method
public static func loadAssets(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetQuery.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
[23/23] 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
var contentEditingInputRequestID: PHContentEditingInputRequestID?
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:52:51: error: 'PHContentEditingInputRequestOptions' is only available in macOS 10.15 or newer
func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:52:8: note: add @available attribute to enclosing instance method
func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:71:48: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:71:8: note: add @available attribute to enclosing instance method
func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:89:51: error: 'PHVideoRequestOptions' is only available in macOS 10.15 or newer
func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:89:8: note: add @available attribute to enclosing instance method
func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:30:22: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:30:22: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:25:8: note: add @available attribute to enclosing instance method
func requestImage(_ asset: PHAsset, expectedSize: CGSize, options: PHImageRequestOptions?) async throws -> KYPhotoLibraryImage {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:31:24: error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
self.requestID = PHCachingImageManager.default().requestImage(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:31:24: note: add 'if #available' version check
self.requestID = PHCachingImageManager.default().requestImage(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:25:8: note: add @available attribute to enclosing instance method
func requestImage(_ asset: PHAsset, expectedSize: CGSize, options: PHImageRequestOptions?) async throws -> KYPhotoLibraryImage {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:53:22: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:53:22: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:52:8: note: add @available attribute to enclosing instance method
func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:54:49: error: 'requestContentEditingInput(with:completionHandler:)' is only available in macOS 10.15 or newer
self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:54:49: note: add 'if #available' version check
self.contentEditingInputRequestID = asset.requestContentEditingInput(with: options) { contentEditingInput, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:52:8: note: add @available attribute to enclosing instance method
func requestImageURL(_ asset: PHAsset, options: PHContentEditingInputRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:72:22: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:72:22: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:71:8: note: add @available attribute to enclosing instance method
func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:73:24: error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:73:24: note: add 'if #available' version check
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:71:8: note: add @available attribute to enclosing instance method
func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:73:56: error: 'requestAVAsset(forVideo:options:resultHandler:)' is only available in macOS 10.15 or newer
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:73:56: note: add 'if #available' version check
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:71:8: note: add @available attribute to enclosing instance method
func requestVideo(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> AVAsset {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:90:22: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:90:22: note: add 'if #available' version check
return try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:89:8: note: add @available attribute to enclosing instance method
func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:91:24: error: 'PHCachingImageManager' is only available in macOS 10.15 or newer
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:91:24: note: add 'if #available' version check
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:89:8: note: add @available attribute to enclosing instance method
func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:91:56: error: 'requestAVAsset(forVideo:options:resultHandler:)' is only available in macOS 10.15 or newer
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:91:56: note: add 'if #available' version check
self.requestID = PHCachingImageManager.default().requestAVAsset(forVideo: asset, options: options) { asset, _, _ in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:89:8: note: add @available attribute to enclosing instance method
func requestVideoURL(_ asset: PHAsset, options: PHVideoRequestOptions?) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:119:13: error: 'cancelContentEditingInputRequest' is only available in macOS 10.15 or newer
asset.cancelContentEditingInputRequest(requestID)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:119:13: note: add 'if #available' version check
asset.cancelContentEditingInputRequest(requestID)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:109:8: note: add @available attribute to enclosing instance method
func cancelRequst(_ asset: PHAsset? = nil) async {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/AssetRequestActor.swift:17:7: note: add @available attribute to enclosing actor
actor AssetRequestActor {
^
/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
var createAssetRequest: PHAssetChangeRequest?
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:66:33: note: add 'if #available' version check
var createAssetRequest: PHAssetChangeRequest?
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:77:43: note: add 'if #available' version check
let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:63:50: error: 'withCheckedThrowingContinuation(function:_:)' is only available in macOS 10.15 or newer
let savedAssetIdentifier: String = try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:63:50: note: add 'if #available' version check
let savedAssetIdentifier: String = try await withCheckedThrowingContinuation { continuation in
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
var createAssetRequest: PHAssetChangeRequest?
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:66:33: note: add 'if #available' version check
var createAssetRequest: PHAssetChangeRequest?
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:68:32: note: add 'if #available' version check
createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:68:53: note: add 'if #available' version check
createAssetRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:70:32: note: add 'if #available' version check
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:70:53: note: add 'if #available' version check
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: imageURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:72:32: note: add 'if #available' version check
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:72:53: note: add 'if #available' version check
createAssetRequest = PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoURL)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:77:43: note: add 'if #available' version check
let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:77:84: note: add 'if #available' version check
let placeholderForCreatedAsset: PHObjectPlaceholder = createAssetRequest.placeholderForCreatedAsset
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
let collectionChangeRequest = PHAssetCollectionChangeRequest(for: albumAssetCollection)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:87:41: note: add 'if #available' version check
let collectionChangeRequest = PHAssetCollectionChangeRequest(for: albumAssetCollection)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
let collectionChangeRequest = PHAssetCollectionChangeRequest(for: albumAssetCollection)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:87:41: note: add 'if #available' version check
let collectionChangeRequest = PHAssetCollectionChangeRequest(for: albumAssetCollection)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
collectionChangeRequest.addAssets([placeholderForCreatedAsset] as NSFastEnumeration)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:92:33: note: add 'if #available' version check
collectionChangeRequest.addAssets([placeholderForCreatedAsset] as NSFastEnumeration)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:50:15: note: add @available attribute to enclosing static method
static func asset_save(image: KYPhotoLibraryImage?, imageURL: URL?, videoURL: URL?, toAlbum albumName: String?) async throws -> String {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
PHAssetChangeRequest.deleteAssets([asset] as NSFastEnumeration)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:112:7: note: add 'if #available' version check
PHAssetChangeRequest.deleteAssets([asset] as NSFastEnumeration)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:106:15: note: add @available attribute to enclosing static method
static func asset_delete(for mediaType: PHAssetMediaType, with assetIdentifier: String) async throws {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
PHAssetChangeRequest.deleteAssets([asset] as NSFastEnumeration)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:112:28: note: add 'if #available' version check
PHAssetChangeRequest.deleteAssets([asset] as NSFastEnumeration)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:106:15: note: add @available attribute to enclosing static method
static func asset_delete(for mediaType: PHAssetMediaType, with assetIdentifier: String) async throws {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetChange.swift:16:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/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
return PHAsset.fetchAssets(with: fetchOptions)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetQuery.swift:45:22: note: add 'if #available' version check
return PHAsset.fetchAssets(with: fetchOptions)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetQuery.swift:25:22: note: add @available attribute to enclosing static method
public static func loadAssets(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetQuery.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
BUILD FAILURE 5.8 macosSpm