Skip to content

image_picker_ios unit test testSaveImageWithPickerInfo_ShouldSaveWithTheCorrectExtentionAndMetaData fails on iOS 16.2 #125257

@jmagman

Description

@jmagman

On iOS 16.2 the meta kCGImagePropertyExifDictionary value is:

    "{Exif}" =     {
        ColorSpace = 1;
        PixelXDimension = 12;
        PixelYDimension = 7;
    };

https://github.com/flutter/packages/blob/7e3f5da42e81f6d73789e112fa881acb7652f863/packages/image_picker/image_picker_ios/example/ios/RunnerTests/PhotoAssetUtilTests.m#L87

However on iOS 16 it is:

    "{Exif}" =     {
        ColorSpace = 1;
        MakerNote = aNote;
        PixelXDimension = 12;
        PixelYDimension = 7;
    };

The test is checking for MakerNote = aNote; and failing.

/Volumes/Work/s/w/ir/x/w/packages/packages/image_picker/image_picker_ios/example/ios/RunnerTests/PhotoAssetUtilTests.m:90: error: -[PhotoAssetUtilTests testSaveImageWithPickerInfo_ShouldSaveWithTheCorrectExtentionAndMetaData] : ((meta[(__bridge NSString *)kCGImagePropertyExifDictionary] [(__bridge NSString *)kCGImagePropertyExifMakerNote]) equal to (@"aNote")) failed: ("(null)") is not equal to ("aNote")

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8783266524818084769/+/u/Run_package_tests/native_test/stdout

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listp: image_pickerThe Image Picker plugin.packageflutter/packages repository. See also p: labels.platform-iosiOS applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions