Build Information
Failed to build KYPhotoLibrary, reference 2.0.0 (28e87c
), with Swift 5.9 for macOS (SPM) on 16 Nov 2024 08:14:38 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Build Log
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 {
^
[16/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 {
^
[17/23] Compiling KYPhotoLibrary URL+KYPhotoLibrary.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/URL+KYPhotoLibrary.swift:23:65: error: 'contentTypeKey' is only available in macOS 11.0 or newer
try (self as NSURL).getResourceValue(&contentType, forKey: .contentTypeKey)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/URL+KYPhotoLibrary.swift:23:65: note: add 'if #available' version check
try (self as NSURL).getResourceValue(&contentType, forKey: .contentTypeKey)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/URL+KYPhotoLibrary.swift:17:15: note: add @available attribute to enclosing instance method
public func ky_getExistingFileExtension() throws -> String? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/URL+KYPhotoLibrary.swift:12:1: note: add @available attribute to enclosing extension
extension URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/URL+KYPhotoLibrary.swift:29:35: error: 'UTType' is only available in macOS 11.0 or newer
if let type = contentType as? UTType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/URL+KYPhotoLibrary.swift:29:35: note: add 'if #available' version check
if let type = contentType as? UTType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/URL+KYPhotoLibrary.swift:17:15: note: add @available attribute to enclosing instance method
public func ky_getExistingFileExtension() throws -> String? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/URL+KYPhotoLibrary.swift:12:1: note: add @available attribute to enclosing extension
extension URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:16:56: error: 'UTType' is only available in macOS 11.0 or newer
public static func ky_fromFile(with fileURL: URL) -> UTType? {
^
/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:12:11: error: 'UTType' is only available in macOS 11.0 or newer
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 {
^
[18/23] Compiling KYPhotoLibrary UTType+KYPhotoLibrary.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/URL+KYPhotoLibrary.swift:23:65: error: 'contentTypeKey' is only available in macOS 11.0 or newer
try (self as NSURL).getResourceValue(&contentType, forKey: .contentTypeKey)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/URL+KYPhotoLibrary.swift:23:65: note: add 'if #available' version check
try (self as NSURL).getResourceValue(&contentType, forKey: .contentTypeKey)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/URL+KYPhotoLibrary.swift:17:15: note: add @available attribute to enclosing instance method
public func ky_getExistingFileExtension() throws -> String? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/URL+KYPhotoLibrary.swift:12:1: note: add @available attribute to enclosing extension
extension URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/URL+KYPhotoLibrary.swift:29:35: error: 'UTType' is only available in macOS 11.0 or newer
if let type = contentType as? UTType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/URL+KYPhotoLibrary.swift:29:35: note: add 'if #available' version check
if let type = contentType as? UTType {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/URL+KYPhotoLibrary.swift:17:15: note: add @available attribute to enclosing instance method
public func ky_getExistingFileExtension() throws -> String? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/URL+KYPhotoLibrary.swift:12:1: note: add @available attribute to enclosing extension
extension URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/GenericExtensions/UTType+KYPhotoLibrary.swift:16:56: error: 'UTType' is only available in macOS 11.0 or newer
public static func ky_fromFile(with fileURL: URL) -> UTType? {
^
/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:12:11: error: 'UTType' is only available in macOS 11.0 or newer
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 {
^
[19/23] Compiling KYPhotoLibrary KYPhotoLibrary+AssetResource.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:59: error: 'PHAssetResource' is only available in macOS 10.15 or newer
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:26: error: 'PHAssetResource' is only available in macOS 10.15 or newer
let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:26: note: add 'if #available' version check
let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:45: error: 'PHAssetResource' is only available in macOS 10.15 or newer
let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:45: note: add 'if #available' version check
let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:61: error: 'assetResources(for:)' is only available in macOS 10.15 or newer
let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:61: note: add 'if #available' version check
let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:24:35: error: 'PHAssetResource' is only available in macOS 10.15 or newer
var appropriateAssetResource: PHAssetResource?
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:24:35: note: add 'if #available' version check
var appropriateAssetResource: PHAssetResource?
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:27:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .photo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:27:12: note: add 'if #available' version check
$0.type == .photo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:28:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .alternatePhoto ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:28:12: note: add 'if #available' version check
$0.type == .alternatePhoto ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:29:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .fullSizePhoto ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:29:12: note: add 'if #available' version check
$0.type == .fullSizePhoto ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:30:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .adjustmentBasePhoto
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:30:12: note: add 'if #available' version check
$0.type == .adjustmentBasePhoto
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:34:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .video ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:34:12: note: add 'if #available' version check
$0.type == .video ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:35:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .fullSizeVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:35:12: note: add 'if #available' version check
$0.type == .fullSizeVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:36:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .pairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:36:12: note: add 'if #available' version check
$0.type == .pairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:37:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .fullSizePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:37:12: note: add 'if #available' version check
$0.type == .fullSizePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:37:21: error: 'fullSizePairedVideo' is only available in macOS 10.15 or newer
$0.type == .fullSizePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:37:21: note: add 'if #available' version check
$0.type == .fullSizePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:38:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .adjustmentBasePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:38:12: note: add 'if #available' version check
$0.type == .adjustmentBasePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:38:21: error: 'adjustmentBasePairedVideo' is only available in macOS 10.15 or newer
$0.type == .adjustmentBasePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:38:21: note: add 'if #available' version check
$0.type == .adjustmentBasePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:39:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .adjustmentBaseVideo
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:39:12: note: add 'if #available' version check
$0.type == .adjustmentBaseVideo
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:39:21: error: 'adjustmentBaseVideo' is only available in macOS 10.15 or newer
$0.type == .adjustmentBaseVideo
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:39:21: note: add 'if #available' version check
$0.type == .adjustmentBaseVideo
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:47:39: error: 'originalFilename' is only available in macOS 10.15 or newer
return assetResource(for: asset)?.originalFilename
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:47:39: note: add 'if #available' version check
return assetResource(for: asset)?.originalFilename
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:46:22: note: add @available attribute to enclosing static method
public static func originalFilename(for asset: PHAsset) -> String? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:54:30: error: 'PHAssetResource' is only available in macOS 10.15 or newer
guard let assetResource: PHAssetResource = assetResource(for: asset) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:54:30: note: add 'if #available' version check
guard let assetResource: PHAssetResource = assetResource(for: asset) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:31:22: note: add @available attribute to enclosing static method
public static func assetURL(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:60:33: error: 'originalFilename' is only available in macOS 10.15 or newer
filename = (assetResource.originalFilename.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:60:33: note: add 'if #available' version check
filename = (assetResource.originalFilename.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:31:22: note: add @available attribute to enclosing static method
public static func assetURL(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:61:36: error: 'originalFilename' is only available in macOS 10.15 or newer
?? assetResource.originalFilename)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:61:36: note: add 'if #available' version check
?? assetResource.originalFilename)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:31:22: note: add @available attribute to enclosing static method
public static func assetURL(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:63:41: error: 'UTType' is only available in macOS 11.0 or newer
guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:63:41: note: add 'if #available' version check
guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:31:22: note: add @available attribute to enclosing static method
public static func assetURL(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:63:107: error: 'uniformTypeIdentifier' is only available in macOS 10.15 or newer
guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:63:107: note: add 'if #available' version check
guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:31:22: note: add @available attribute to enclosing static method
public static func assetURL(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:82: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/Asset/KYPhotoLibrary+AssetURL.swift:82:22: note: add 'if #available' version check
return try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:79:23: note: add @available attribute to enclosing static method
private static func _imageURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:84:21: error: 'PHContentEditingInputRequestOptions' is only available in macOS 10.15 or newer
let options = PHContentEditingInputRequestOptions()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:84:21: note: add 'if #available' version check
let options = PHContentEditingInputRequestOptions()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:79:23: note: add @available attribute to enclosing static method
private static func _imageURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:85:15: error: 'canHandleAdjustmentData' is only available in macOS 10.15 or newer
options.canHandleAdjustmentData = { _ in true }
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:85:15: note: add 'if #available' version check
options.canHandleAdjustmentData = { _ in true }
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:79:23: note: add @available attribute to enclosing static method
private static func _imageURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:88:7: error: 'Task' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:88:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:79:23: note: add @available attribute to enclosing static method
private static func _imageURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:88:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:88:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:79:23: note: add @available attribute to enclosing static method
private static func _imageURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:98: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/Asset/KYPhotoLibrary+AssetURL.swift:98:22: note: add 'if #available' version check
return try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:95:23: note: add @available attribute to enclosing static method
private static func _videoURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:102:7: error: 'Task' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:102:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:95:23: note: add @available attribute to enclosing static method
private static func _videoURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:102:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:102:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:95:23: note: add @available attribute to enclosing static method
private static func _videoURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
[20/23] Compiling KYPhotoLibrary KYPhotoLibrary+AssetURL.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:59: error: 'PHAssetResource' is only available in macOS 10.15 or newer
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:26: error: 'PHAssetResource' is only available in macOS 10.15 or newer
let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:26: note: add 'if #available' version check
let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:45: error: 'PHAssetResource' is only available in macOS 10.15 or newer
let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:45: note: add 'if #available' version check
let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:61: error: 'assetResources(for:)' is only available in macOS 10.15 or newer
let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:61: note: add 'if #available' version check
let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:24:35: error: 'PHAssetResource' is only available in macOS 10.15 or newer
var appropriateAssetResource: PHAssetResource?
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:24:35: note: add 'if #available' version check
var appropriateAssetResource: PHAssetResource?
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:27:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .photo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:27:12: note: add 'if #available' version check
$0.type == .photo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:28:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .alternatePhoto ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:28:12: note: add 'if #available' version check
$0.type == .alternatePhoto ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:29:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .fullSizePhoto ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:29:12: note: add 'if #available' version check
$0.type == .fullSizePhoto ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:30:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .adjustmentBasePhoto
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:30:12: note: add 'if #available' version check
$0.type == .adjustmentBasePhoto
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:34:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .video ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:34:12: note: add 'if #available' version check
$0.type == .video ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:35:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .fullSizeVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:35:12: note: add 'if #available' version check
$0.type == .fullSizeVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:36:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .pairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:36:12: note: add 'if #available' version check
$0.type == .pairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:37:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .fullSizePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:37:12: note: add 'if #available' version check
$0.type == .fullSizePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:37:21: error: 'fullSizePairedVideo' is only available in macOS 10.15 or newer
$0.type == .fullSizePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:37:21: note: add 'if #available' version check
$0.type == .fullSizePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:38:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .adjustmentBasePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:38:12: note: add 'if #available' version check
$0.type == .adjustmentBasePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:38:21: error: 'adjustmentBasePairedVideo' is only available in macOS 10.15 or newer
$0.type == .adjustmentBasePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:38:21: note: add 'if #available' version check
$0.type == .adjustmentBasePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:39:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .adjustmentBaseVideo
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:39:12: note: add 'if #available' version check
$0.type == .adjustmentBaseVideo
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:39:21: error: 'adjustmentBaseVideo' is only available in macOS 10.15 or newer
$0.type == .adjustmentBaseVideo
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:39:21: note: add 'if #available' version check
$0.type == .adjustmentBaseVideo
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:47:39: error: 'originalFilename' is only available in macOS 10.15 or newer
return assetResource(for: asset)?.originalFilename
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:47:39: note: add 'if #available' version check
return assetResource(for: asset)?.originalFilename
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:46:22: note: add @available attribute to enclosing static method
public static func originalFilename(for asset: PHAsset) -> String? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:54:30: error: 'PHAssetResource' is only available in macOS 10.15 or newer
guard let assetResource: PHAssetResource = assetResource(for: asset) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:54:30: note: add 'if #available' version check
guard let assetResource: PHAssetResource = assetResource(for: asset) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:31:22: note: add @available attribute to enclosing static method
public static func assetURL(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:60:33: error: 'originalFilename' is only available in macOS 10.15 or newer
filename = (assetResource.originalFilename.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:60:33: note: add 'if #available' version check
filename = (assetResource.originalFilename.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:31:22: note: add @available attribute to enclosing static method
public static func assetURL(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:61:36: error: 'originalFilename' is only available in macOS 10.15 or newer
?? assetResource.originalFilename)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:61:36: note: add 'if #available' version check
?? assetResource.originalFilename)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:31:22: note: add @available attribute to enclosing static method
public static func assetURL(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:63:41: error: 'UTType' is only available in macOS 11.0 or newer
guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:63:41: note: add 'if #available' version check
guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:31:22: note: add @available attribute to enclosing static method
public static func assetURL(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:63:107: error: 'uniformTypeIdentifier' is only available in macOS 10.15 or newer
guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:63:107: note: add 'if #available' version check
guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:31:22: note: add @available attribute to enclosing static method
public static func assetURL(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:82: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/Asset/KYPhotoLibrary+AssetURL.swift:82:22: note: add 'if #available' version check
return try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:79:23: note: add @available attribute to enclosing static method
private static func _imageURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:84:21: error: 'PHContentEditingInputRequestOptions' is only available in macOS 10.15 or newer
let options = PHContentEditingInputRequestOptions()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:84:21: note: add 'if #available' version check
let options = PHContentEditingInputRequestOptions()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:79:23: note: add @available attribute to enclosing static method
private static func _imageURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:85:15: error: 'canHandleAdjustmentData' is only available in macOS 10.15 or newer
options.canHandleAdjustmentData = { _ in true }
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:85:15: note: add 'if #available' version check
options.canHandleAdjustmentData = { _ in true }
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:79:23: note: add @available attribute to enclosing static method
private static func _imageURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:88:7: error: 'Task' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:88:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:79:23: note: add @available attribute to enclosing static method
private static func _imageURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:88:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:88:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:79:23: note: add @available attribute to enclosing static method
private static func _imageURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:98: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/Asset/KYPhotoLibrary+AssetURL.swift:98:22: note: add 'if #available' version check
return try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:95:23: note: add @available attribute to enclosing static method
private static func _videoURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:102:7: error: 'Task' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:102:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:95:23: note: add @available attribute to enclosing static method
private static func _videoURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:102:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:102:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:95:23: note: add @available attribute to enclosing static method
private static func _videoURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
[21/23] Compiling KYPhotoLibrary KYPhotoLibrary+Thumbnail.swift
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:59: error: 'PHAssetResource' is only available in macOS 10.15 or newer
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:26: error: 'PHAssetResource' is only available in macOS 10.15 or newer
let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:26: note: add 'if #available' version check
let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:45: error: 'PHAssetResource' is only available in macOS 10.15 or newer
let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:45: note: add 'if #available' version check
let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:61: error: 'assetResources(for:)' is only available in macOS 10.15 or newer
let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:22:61: note: add 'if #available' version check
let assetResources: [PHAssetResource] = PHAssetResource.assetResources(for: asset)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:24:35: error: 'PHAssetResource' is only available in macOS 10.15 or newer
var appropriateAssetResource: PHAssetResource?
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:24:35: note: add 'if #available' version check
var appropriateAssetResource: PHAssetResource?
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:27:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .photo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:27:12: note: add 'if #available' version check
$0.type == .photo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:28:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .alternatePhoto ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:28:12: note: add 'if #available' version check
$0.type == .alternatePhoto ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:29:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .fullSizePhoto ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:29:12: note: add 'if #available' version check
$0.type == .fullSizePhoto ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:30:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .adjustmentBasePhoto
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:30:12: note: add 'if #available' version check
$0.type == .adjustmentBasePhoto
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:34:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .video ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:34:12: note: add 'if #available' version check
$0.type == .video ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:35:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .fullSizeVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:35:12: note: add 'if #available' version check
$0.type == .fullSizeVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:36:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .pairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:36:12: note: add 'if #available' version check
$0.type == .pairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:37:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .fullSizePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:37:12: note: add 'if #available' version check
$0.type == .fullSizePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:37:21: error: 'fullSizePairedVideo' is only available in macOS 10.15 or newer
$0.type == .fullSizePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:37:21: note: add 'if #available' version check
$0.type == .fullSizePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:38:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .adjustmentBasePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:38:12: note: add 'if #available' version check
$0.type == .adjustmentBasePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:38:21: error: 'adjustmentBasePairedVideo' is only available in macOS 10.15 or newer
$0.type == .adjustmentBasePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:38:21: note: add 'if #available' version check
$0.type == .adjustmentBasePairedVideo ||
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:39:12: error: 'type' is only available in macOS 10.15 or newer
$0.type == .adjustmentBaseVideo
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:39:12: note: add 'if #available' version check
$0.type == .adjustmentBaseVideo
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:39:21: error: 'adjustmentBaseVideo' is only available in macOS 10.15 or newer
$0.type == .adjustmentBaseVideo
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:39:21: note: add 'if #available' version check
$0.type == .adjustmentBaseVideo
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:21:22: note: add @available attribute to enclosing static method
public static func assetResource(for asset: PHAsset) -> PHAssetResource? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:47:39: error: 'originalFilename' is only available in macOS 10.15 or newer
return assetResource(for: asset)?.originalFilename
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:47:39: note: add 'if #available' version check
return assetResource(for: asset)?.originalFilename
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:46:22: note: add @available attribute to enclosing static method
public static func originalFilename(for asset: PHAsset) -> String? {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetResource.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:54:30: error: 'PHAssetResource' is only available in macOS 10.15 or newer
guard let assetResource: PHAssetResource = assetResource(for: asset) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:54:30: note: add 'if #available' version check
guard let assetResource: PHAssetResource = assetResource(for: asset) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:31:22: note: add @available attribute to enclosing static method
public static func assetURL(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:60:33: error: 'originalFilename' is only available in macOS 10.15 or newer
filename = (assetResource.originalFilename.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:60:33: note: add 'if #available' version check
filename = (assetResource.originalFilename.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:31:22: note: add @available attribute to enclosing static method
public static func assetURL(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:61:36: error: 'originalFilename' is only available in macOS 10.15 or newer
?? assetResource.originalFilename)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:61:36: note: add 'if #available' version check
?? assetResource.originalFilename)
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:31:22: note: add @available attribute to enclosing static method
public static func assetURL(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:63:41: error: 'UTType' is only available in macOS 11.0 or newer
guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:63:41: note: add 'if #available' version check
guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:31:22: note: add @available attribute to enclosing static method
public static func assetURL(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:63:107: error: 'uniformTypeIdentifier' is only available in macOS 10.15 or newer
guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:63:107: note: add 'if #available' version check
guard let fileExtension: String = UTType.ky_getFileExtensionFromUniformTypeIdentifier(assetResource.uniformTypeIdentifier) else {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:31:22: note: add @available attribute to enclosing static method
public static func assetURL(
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:82: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/Asset/KYPhotoLibrary+AssetURL.swift:82:22: note: add 'if #available' version check
return try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:79:23: note: add @available attribute to enclosing static method
private static func _imageURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:84:21: error: 'PHContentEditingInputRequestOptions' is only available in macOS 10.15 or newer
let options = PHContentEditingInputRequestOptions()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:84:21: note: add 'if #available' version check
let options = PHContentEditingInputRequestOptions()
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:79:23: note: add @available attribute to enclosing static method
private static func _imageURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:85:15: error: 'canHandleAdjustmentData' is only available in macOS 10.15 or newer
options.canHandleAdjustmentData = { _ in true }
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:85:15: note: add 'if #available' version check
options.canHandleAdjustmentData = { _ in true }
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:79:23: note: add @available attribute to enclosing static method
private static func _imageURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:88:7: error: 'Task' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:88:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:79:23: note: add @available attribute to enclosing static method
private static func _imageURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:88:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:88:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:79:23: note: add @available attribute to enclosing static method
private static func _imageURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:98: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/Asset/KYPhotoLibrary+AssetURL.swift:98:22: note: add 'if #available' version check
return try await withTaskCancellationHandler {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:95:23: note: add @available attribute to enclosing static method
private static func _videoURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:102:7: error: 'Task' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:102:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:95:23: note: add @available attribute to enclosing static method
private static func _videoURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:102:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:102:7: note: add 'if #available' version check
Task {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:95:23: note: add @available attribute to enclosing static method
private static func _videoURL(of asset: PHAsset) async throws -> URL {
^
/Users/admin/builder/spi-builder-workspace/KYPhotoLibrary/Sources/Asset/KYPhotoLibrary+AssetURL.swift:12:1: note: add @available attribute to enclosing extension
extension KYPhotoLibrary {
^
[22/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 {
^
[23/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 {
^
error: fatalError
BUILD FAILURE 5.9 macosSpm