Skip to content

Plugin uses properties/classes removed in iOS 26 #652

@gillycheesesteak

Description

@gillycheesesteak

Bug Report

Problem

Plugin uses properties/classes that are removed in iOS 26

What is expected to happen?

Build succeeds with deployment-target of 26

What does actually happen?

Build fails with errors

error: 'ALAssetsLibraryAssetForURLResultBlock' is unavailable: obsoleted in iOS 26.0 - Use fetchAssetsWithLocalIdentifiers:options: on PHAsset to fetch assets by local identifier (or to lookup PHAssets by a previously known ALAssetPropertyAssetURL use fetchAssetsWithALAssetURLs:options:) from the Photos framework instead
error: 'defaultRepresentation' is unavailable: obsoleted in iOS 26.0 - Use PHImageRequestOptions with the PHImageManager from the Photos framework instead
error: 'size' is unavailable: obsoleted in iOS 26.0 - Use requestImageDataForAsset:options:resultHandler: on PHImageManager to request image data for a PHAsset from the Photos framework instead
error: 'getBytes:fromOffset:length:error:' is unavailable: obsoleted in iOS 26.0 - Use requestImageDataForAsset:options:resultHandler: on PHImageManager to request image data for a PHAsset from the Photos framework instead
error: 'UTI' is unavailable: obsoleted in iOS 26.0 - Use requestImageDataForAsset:options:resultHandler: on PHImageManager for a PHAsset to request image data from the Photos framework and check the dataUTI passed to your result handler instead
error: 'ALAsset' is unavailable: obsoleted in iOS 26.0 - Use PHAsset from the Photos framework instead
error: 'ALAssetRepresentation' is unavailable: obsoleted in iOS 26.0 - Use PHImageRequestOptions with the PHImageManager from the Photos framework instead
error: 'ALAssetsLibraryAccessFailureBlock' is unavailable: obsoleted in iOS 26.0 - Use the Photos framework instead
error: 'ALAssetsLibrary' is unavailable: obsoleted in iOS 26.0 - Use PHPhotoLibrary from the Photos framework instead
error: 'ALAssetsLibrary' is unavailable: obsoleted in iOS 26.0 - Use PHPhotoLibrary from the Photos framework instead
error: 'assetForURL:resultBlock:failureBlock:' is unavailable: obsoleted in iOS 26.0 - Use fetchAssetsWithLocalIdentifiers:options: on PHAsset to fetch assets by local identifier (or to lookup PHAssets by a previously known ALAssetPropertyAssetURL use fetchAssetsWithALAssetURLs:options:) from the Photos framework instead
error: 'ALAssetsLibraryAssetForURLResultBlock' is unavailable: obsoleted in iOS 26.0 - Use fetchAssetsWithLocalIdentifiers:options: on PHAsset to fetch assets by local identifier (or to lookup PHAssets by a previously known ALAssetPropertyAssetURL use fetchAssetsWithALAssetURLs:options:) from the Photos framework instead
error: 'defaultRepresentation' is unavailable: obsoleted in iOS 26.0 - Use PHImageRequestOptions with the PHImageManager from the Photos framework instead
error: 'filename' is unavailable: obsoleted in iOS 26.0 - Use the Photos framework instead
error: 'ALAssetPropertyDate' is unavailable: obsoleted in iOS 26.0 - Use the creationDate property on a PHAsset from the Photos framework instead
error: 'valueForProperty:' is unavailable: obsoleted in iOS 26.0 - Use PHAsset class properties from the Photos framework instead
error: 'ALAsset' is unavailable: obsoleted in iOS 26.0 - Use PHAsset from the Photos framework instead
error: 'ALAssetRepresentation' is unavailable: obsoleted in iOS 26.0 - Use PHImageRequestOptions with the PHImageManager from the Photos framework instead
error: 'size' is unavailable: obsoleted in iOS 26.0 - Use requestImageDataForAsset:options:resultHandler: on PHImageManager to request image data for a PHAsset from the Photos framework instead

Information

Command or Code

Environment, Platform, Device

Github actions macos 15 runner

Version information

macos 15
Xcode 26.2
deployment-target: 26

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions