When I try to share image on macOS Catalyst with UIActivityViewController and selecting Add to photos:
1) Photo is actually added to photos
2) Immediately after I get Exception (and after that nothing from share menu works):
[xpc.exceptions] <NSXPCConnection: 0x6000030222e0> connection to service on pid 26282 named com.apple.share.System.add-to-iphoto.apple-extension-service: Exception caught during decoding of received selector _completeRequestReturningItems:forExtensionContextWithUUID:completion:, dropping incoming message.
Exception: Exception while decoding argument 0 (#2 of invocation):
Exception: value for key 'NS.objects' was of unexpected class 'NSURL'. Allowed classes are '{(
NSDate,
NSNumber,
NSData,
NSDictionary,
NSArray,
NSString
)}'
I have no idea how to fix this?