Skip to content

[Bug report] Imcompatible with iOS 26.0 under flutter_image_compress_common #342

@kidozh

Description

@kidozh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions