The main File menu for my app has a Share menu, with standard sharing services requested normally through [NSSharingServices sharingServicesForItems:@[self.fileURL]]
. It is never called when fileURL
is null.
However, this requests outputs the following error:
Could not instantiate class NSURL. Error: Error Domain=NSCocoaErrorDomain Code=4864
"value for key 'root' was of unexpected class 'NSNull'. Allowed classes are '{( NSURL )}'."
The only value contained in the array is self.fileURL
, which is of class NSURL
. The sharing menu itself works with no problem, and the only problem is this strange error in the console. What am I doing wrong and where might this null value come from?