How to get description from PNG file in iOS11?

I'm trying to get the information in the description of a PNG file.

In iOS 10.3.3 I used the following Objective-C code:

NSString pngFile = @"Demo.PNG"

CGImageSourceRef imgSrc = CGImageSourceCreateWithURL( (__bridge CFURLRef)[NSURL fileURLWithPath:pngFile], NULL);

NSDictionary *metaDataDict = CFBridgingRelease(CGImageSourceCopyPropertiesAtIndex(imgSrc, 0, nil));

if (imgSrc!=nil) {

NSDictionary *metaDataDict = (__bridge NSDictionary *)(CGImageSourceCopyPropertiesAtIndex(imgSrc, 0, nil));

CFRelease(imgSrc);

}

and the results were as expected but after iOS 11 update, I'm unable to get the metadata information (description field) of a PNG file using the CGImageSourceCopyPropertiesAtIndex function. The description field of the metadata (PNG file) is empty. Any Idea?

Replies

The problem still exists in iOS 11.2 beta 5. I recommended to all the users of my app "not to update to iOS 11" because of to this BUG.

In some cases I could recommend to my users to "downgrade to iOS 10.3.3" but all new users buying a device with iOS 11 cannot use my app.

Someone can HELP?