UIDocumentInteractionController is not available on Mac Catalyst 13.0+ (documentation issue?)

Number:rdar://FB7714914 Date Originated:2020-05-26
Status:Open Resolved:
Product:UIKit Product Version:
Classification:Incorrect/Unexpected Behavior Reproducible:Always
Basic Information
Please provide a descriptive title for your feedback:
UIDocumentInteractionController is not available on Mac Catalyst 13.0+ (documentation issue?)

Which area are you seeing an issue with?

What type of feedback are you reporting?
Incorrect/Unexpected Behavior

Please describe the issue and what steps we can take to reproduce it:
Despite being described in the documentation as available on Mac Catalyst 13.0+

[UIDocumentInteractionController interactionControllerWithURL:url];
in the Mac Catalyst build will lead to exception/app crash .

Stack trace:
2020-05-26 10:19:38.910306+0300  [General] UIDocumentInteractionController not available
2020-05-26 10:19:38.916934+0300  [General] (
	0   CoreFoundation                      0x00007fff38ff9d07 __exceptionPreprocess + 250
	1   libobjc.A.dylib                     0x00007fff71d1d5bf objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff38ff9b65 +[NSException raise:format:] + 189
	3   ShareSheet                          0x00007fff66b7b5d7 +[UIDocumentInteractionController interactionControllerWithURL:] + 92

Xcode Version 11.5 (11E608c), 
Mac OS 10.15.4 

If UIDocumentInteractionController is not available in Mac Catalyst 13.0+ SDK, documentation page should be modified accordingly.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!