I am attempting to AirDrop files from an iPad app (14.5.1) to a Mac (11.4) and finding that it fails with certain Japanese file names. This also fails from the Files app so I think there might be an issue ourside our app.
Specifically, files with the name ア will transfer but those named アザ will not (both cases with our app's extension appended).
The files are in the same directory on the iPad and both can be opened prior to the attempt to AirDrop (via UIDocumentInteractionController). In fact, looking at Console it seems that all bytes of the file are transferred before the failure occurs.
In the case which fails I get the following on iOS:
MetricEvent 'com.apple.sharing.AirDrop.TransferResult' : { "sender" : 1, "legacy" : false, "errorCode" : 32, "success" : false, "modelCode" : "MacBook Pro", "errorDomain" : "NSPOSIXErrorDomain", "bundleID" : "com.our.app", }
and the following on the Mac:
MetricEvent 'com.apple.sharing.AirDrop.TransferResult' : { "sender" : 0, "legacy" : false, "errorCode" : 2, "success" : false, "modelCode" : "iPad", "errorDomain" : "NSPOSIXErrorDomain", "bundleID" : "", }
I see that previous bugs have existed in this area, e.g. http://openradar.appspot.com/radar?id=5013470848221184 (an issue with symlinks in this case rather).
Is this an iOS or macOS bug? Any ideas?