apache / apache/cordova-plugin-file
Plugin uses properties/classes removed in iOS 26
- Dominant language
- JavaScript
- Stars
- 744
- Forks
- 754
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 1
Description
# 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
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
Contributor guide
Research direction
The issue names no files or tests; start by locating the iOS native code that references the listed ALAssetsLibrary and ALAsset APIs. Review the corresponding Photos framework replacements described in the compiler errors, then run the plugin build with deployment-target 26 on macOS 15 and Xcode 26.2 to confirm it succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- objective-c
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100