i'm trying to get xmp metadata information from a 360° jpeg file. So, i wrote this code but i didn't get the xmp information:
UIImage *img = [UIImage imageNamed:@"park_2048.jpg"];
NSData *imagedata = UIImageJPEGRepresentation(img, 1);
CGImageSourceRef source = CGImageSourceCreateWithData( (CFDataRef) imagedata, NULL);
CFDictionaryRef dictRef = CGImageSourceCopyMetadataAtIndex(source, 0, NULL);
NSDictionary* metadata = (__bridge NSDictionary *)dictRef;
NSLog(@"metadata = %@", metadata);
i had also a warning : Incompatible pointer types initializing 'CFDictionaryRef' (aka 'const struct __CFDictionary *') with an expression of type 'CGImageMetadataRef _Nullable' (aka 'const struct CGImageMetadata *')
Any help please