flutter_image_compress icon indicating copy to clipboard operation
flutter_image_compress copied to clipboard

[Bug report] Imcompatible with iOS 26.0 under flutter_image_compress_common

Open kidozh opened this issue 3 months ago • 2 comments

Version

1.0.6

Platforms

iOS

Device Model

iPhone 17 Pro (iOS. 26.0)

flutter info

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.35.3, on macOS 26.0 25A354 darwin-arm64, locale
    zh-Hans-GB)
[!] Android toolchain - develop for Android devices (Android SDK version
    36.0.0-rc5)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor
      --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 26.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2025.1)
[✓] VS Code (version 1.104.0)
[✓] Connected device (4 available)
[✓] Network resources

! Doctor found issues in 1 category.

How to reproduce?

Just run it on the iOS 26.0 platform

Logs

Semantic Issue (Xcode): 'ALAsset' is unavailable: obsoleted in iOS 26.0 - Use PHAsset from the Photos framework instead
/Users/zhangjiduo/.pub-cache/hosted/pub.flutter-io.cn/flutter_image_compress_common-1.0.6/ios/Classes/SYPictureMetadata/SYMetadata.m:48:35

Semantic Issue (Xcode): 'ALAssetRepresentation' is unavailable: obsoleted in iOS 26.0 - Use PHImageRequestOptions with the PHImageManager from the Photos framework instead
/Users/zhangjiduo/.pub-cache/hosted/pub.flutter-io.cn/flutter_image_compress_common-1.0.6/ios/Classes/SYPictureMetadata/SYMetadata.m:51:4

Semantic Issue (Xcode): 'defaultRepresentation' is unavailable: obsoleted in iOS 26.0 - Use PHImageRequestOptions with the PHImageManager from the Photos framework instead
/Users/zhangjiduo/.pub-cache/hosted/pub.flutter-io.cn/flutter_image_compress_common-1.0.6/ios/Classes/SYPictureMetadata/SYMetadata.m:51:51

Semantic Issue (Xcode): 'metadata' is unavailable: obsoleted in iOS 26.0 - Use CGImageSourceCopyPropertiesAtIndex() to retrieve metadata from an image returned by the PHImageManager from the Photos framework instead
/Users/zhangjiduo/.pub-cache/hosted/pub.flutter-io.cn/flutter_image_compress_common-1.0.6/ios/Classes/SYPictureMetadata/SYMetadata.m:52:56

Semantic Issue (Xcode): 'ALAsset' is unavailable: obsoleted in iOS 26.0 - Use PHAsset from the Photos framework instead
/Users/zhangjiduo/.pub-cache/hosted/pub.flutter-io.cn/flutter_image_compress_common-1.0.6/ios/Classes/SYPictureMetadata/SYMetadata.m:151:12

Semantic Issue (Xcode): 'ALAssetsLibrary' is unavailable: obsoleted in iOS 26.0 - Use PHPhotoLibrary from the Photos framework instead
/Users/zhangjiduo/.pub-cache/hosted/pub.flutter-io.cn/flutter_image_compress_common-1.0.6/ios/Classes/SYPictureMetadata/SYMetadata.m:152:4

Semantic Issue (Xcode): 'ALAssetsLibrary' is unavailable: obsoleted in iOS 26.0 - Use PHPhotoLibrary from the Photos framework instead
/Users/zhangjiduo/.pub-cache/hosted/pub.flutter-io.cn/flutter_image_compress_common-1.0.6/ios/Classes/SYPictureMetadata/SYMetadata.m:152:49

Semantic Issue (Xcode): 'ALAsset' is unavailable: obsoleted in iOS 26.0 - Use PHAsset from the Photos framework instead
/Users/zhangjiduo/.pub-cache/hosted/pub.flutter-io.cn/flutter_image_compress_common-1.0.6/ios/Classes/SYPictureMetadata/SYMetadata.m:155:48

Semantic Issue (Xcode): '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
/Users/zhangjiduo/.pub-cache/hosted/pub.flutter-io.cn/flutter_image_compress_common-1.0.6/ios/Classes/SYPictureMetadata/SYMetadata.m:155:13

Semantic Issue (Xcode): 'ALAssetRepresentation' is unavailable: obsoleted in iOS 26.0 - Use PHImageRequestOptions with the PHImageManager from the Photos framework instead
/Users/zhangjiduo/.pub-cache/hosted/pub.flutter-io.cn/flutter_image_compress_common-1.0.6/ios/Classes/SYPictureMetadata/SYMetadata.m:166:4

Semantic Issue (Xcode): 'defaultRepresentation' is unavailable: obsoleted in iOS 26.0 - Use PHImageRequestOptions with the PHImageManager from the Photos framework instead
/Users/zhangjiduo/.pub-cache/hosted/pub.flutter-io.cn/flutter_image_compress_common-1.0.6/ios/Classes/SYPictureMetadata/SYMetadata.m:166:56

Semantic Issue (Xcode): 'metadata' is unavailable: obsoleted in iOS 26.0 - Use CGImageSourceCopyPropertiesAtIndex() to retrieve metadata from an image returned by the PHImageManager from the Photos framework instead
/Users/zhangjiduo/.pub-cache/hosted/pub.flutter-io.cn/flutter_image_compress_common-1.0.6/ios/Classes/SYPictureMetadata/SYMetadata.m:167:27

Could not build the application for the simulator.
Error launching application on iPhone 17 Pro.

Example code (optional)


Contact

No response

kidozh avatar Sep 17 '25 09:09 kidozh

Hi, I’m experiencing the same issue on iOS 26.0 with flutter_image_compress_common. I tried using the PR #343 branch and it seems promising. Maybe others can try this as well:

  flutter_image_compress_common:
    git:
      url: https://github.com/fluttercandies/flutter_image_compress.git
      ref: b69a5cb932e9c577bf3d8cf912e38cbec8eeaced
      path: packages/flutter_image_compress_common

This might help to temporarily fix the incompatibility with iOS 26.

alpinnz avatar Sep 21 '25 13:09 alpinnz

any update?

ravikovind avatar Nov 22 '25 12:11 ravikovind