Skip to content

FLTImagePickerImageUtil: error: 'kUTTypeGIF' is deprecated, Use UTTypeGIF instead #181291

Closed
flutter/packages
#10848

Description

@jmagman
/image_picker_ios/FLTImagePickerImageUtil.m:120:71: error: 'kUTTypeGIF' is deprecated: first deprecated in iOS 15.0 - Use UTTypeGIF or UTType.gif (swift) instead. [-Werror,-Wdeprecated-declarations]
  120 |   options[(NSString *)kCGImageSourceTypeIdentifierHint] = (NSString *)kUTTypeGIF;
      |                                                                       ^
In module 'MobileCoreServices' imported from /Volumes/Work/s/w/ir/x/w/packages/packages/image_picker/image_picker_ios/ios/image_picker_ios/Sources/image_picker_ios/FLTImagePickerImageUtil.m:6:
In module 'CoreServices' imported from MobileCoreServices.framework/Headers/MobileCoreServices.h:9:
CoreServices.framework/Headers/UTCoreTypes.h:729:26: note: 'kUTTypeGIF' has been explicitly marked deprecated here
  729 | extern const CFStringRef kUTTypeGIF                                  API_DEPRECATED("Use UTTypeGIF or UTType.gif (swift) instead.", ios(3.0, 15.0), macos(10.4, 12.0), tvos(9.0, 15.0), watchos(1.0, 8.0));
      |                          ^
1 error generated.

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8703595771806280785/+/u/Run_package_tests/xcode_analyze_deprecation/stdout

https://github.com/flutter/packages/blob/f709ea1ceff008eefdb92238224d87013781ec7f/packages/image_picker/image_picker_ios/ios/image_picker_ios/Sources/image_picker_ios/FLTImagePickerImageUtil.m#L120
https://github.com/flutter/packages/blob/f709ea1ceff008eefdb92238224d87013781ec7f/packages/image_picker/image_picker_ios/ios/image_picker_ios/Sources/image_picker_ios/FLTImagePickerPhotoAssetUtil.m#L102

Discovered in flutter/packages#9431

Activity

  1. added
    platform-iosiOS applications specifically
    packageflutter/packages repository. See also p: labels.
    team-iosOwned by iOS platform team
    on Jan 21, 2026
  2. added
    P2Important issues not at the top of the work list
    triaged-iosTriaged by iOS platform team
    on Jan 22, 2026
  3. berlisB commented on Jan 23, 2026

    @berlisB

    Hi, I’d like to take this issue and propose a fix.

  4. added a commit that references this issue on Jan 30, 2026
    44a58ab
  5. github-actions commented on Feb 13, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  6. locked as resolved and limited conversation to collaborators on Feb 13, 2026
  7. added a commit that references this issue on Jun 10, 2026
    cb2e3ad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listp: image_pickerThe Image Picker plugin.packageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions