I have problem when I handle image in Action Extension:
It crashed when I set image to UIPasteboard or handle Image
UIPasteboard.general.image = image
or
let dataCompress = image.jpegData(compressionQuality: value)!
The message is:
Thread 2: EXCRESOURCE RESOURCETYPE_MEMORY (limit=16 MB, unused=0x0) This proplem occur since iOS 14.0 . It do not occur in iOS < 13
As far as I find out: From iOS 13 and earlier, only the Widget Extension is limited to 16mb of memory, another like Action Extension is limited of 120mb.
So, Is this proplem is a bug of iOS 14.0?
My Environment:
xCode 12.0/11.7, iphone 11 pro max iOS 14.0 Anyone have any solution? Many thank.