You were so close! Just have to call the identifier method on UTTypeJPEG.
CGImageDestinationRef destinationRef = CGImageDestinationCreateWithURL((__bridge CFURLRef)theURL, (__bridge CFStringRef)UTTypeJPEG.identifier , 1, NULL);
Post
Replies
Boosts
Views
Activity
Thanks! The Xcode 15.1 beta 1 fixed the issue. Thanks, again!