Skip to content

Conversation

alpinnz
Copy link

@alpinnz alpinnz commented Sep 21, 2025

This PR fixes compatibility issues with iOS 26.0 in the flutter_image_compress_common package.
Previously, certain APIs that were deprecated or removed in iOS 26.0 were still being used, causing build errors.

Changes include:

  • Replacing deprecated ALAsset and ALAssetRepresentation with PHAsset from the Photos framework.
  • Updating code to ensure proper functionality on iOS 26.0 and later.
  • Minor code cleanup and improvements to maintain backward compatibility.

This update ensures that the package can now build successfully on iOS 26.0 without introducing breaking changes for older iOS versions.

@CaiJingLong
Copy link
Member

Hi, what is the minimum supported iOS SDK version for this new writing method? What is the minimum supported iOS device version?

@alpinnz
Copy link
Author

alpinnz commented Sep 30, 2025

Hi. The new method is based on PHAsset, which has been available since iOS 8.0.
So technically it works from iOS 8 and above.

That said, Flutter itself now requires iOS 11.0 as the minimum deployment target, so in practice the minimum supported iOS SDK and device version is 11.0.

This update has also been tested to build and run fine on iOS 16+ (iOS 26.0 reference).

Hi, what is the minimum supported iOS SDK version for this new writing method? What is the minimum supported iOS device version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants