Is it a bug in UIActivityViewController to Airdrop ?

Context: Xcode 26.3, iOS 18.7.6 on iPhone Xs

In this iOS app, I call UIActivityViewController to let user Airdrop files from the app.

When trying to send a URL whose file name contains some characters like accentuated (-, é, '), the transfer fails.

Removing those characters makes it work without problem.

The same app running on Mac (in iPad mode) works with both cases.

I also noticed that even when airdrop fails, there is no error reported by

        activityVC.completionWithItemsHandler = { activity, success, items, error in }

Are those known issues ?

Not as far as I can see,

Can you file a report that I can share with the relevant engineering team? I think this issue is worth looking at.

Please include a sample project with steps to reproduce the issue, note a filename you used also. Reply with the FB number here once complete.

One tip I have is, if you are unsure if it's a known issue or not, file the report anyway. This gives us a head start on this investigation and a timeline view if it has been reported previously.

Thank you @Claude31 😁

 Travis

I filed a bug report with an sample project and 2 files for testing. I confirm the problem.

FB22253128

Here the message in FB (with the zipped sample project and 2 test files):

Context: Xcode 26.3, iOS 18.7.6 on iPhone Xs

In this iOS app, I call UIActivityViewController to let user Airdrop files from the app.

When trying to send a URL whose file name contains some characters like accentuated (-, é, '), the transfer fails.

Removing those characters makes it work without problem.

Steps to reproduce

  • Build and load the app on iPhone
  • transfer the 2 pdf files ('name accentué.pdf' and 'name plain.pdf' to the Documents folder of Test app (I did it in Finder on Mac with iPhone USB connected to the Mac). The 2 files are identical except their name.
  • Run the app
  • Tap 'Send by AirDrop name plain.pdf' and select AirDrop to Mac : Transfer OK
  • Tap 'Send by AirDrop name accentué.pdf' and select AirDrop to Mac : Transfer fails

@Claude31,

Thank you,

Can you provide logs from the devices involved in the airdrop?

Please update your report with the logs.

 Travis

I attach this log to the FB.

Thanks for investigating.

Failed to request default share mode for fileURL:file:///var/mobile/Containers/Data/Application/453B6EDB-3C76-4D2D-8355-702D4BD0263A/Documents/name%20accentue%CC%81.pdf error:Error Domain=NSOSStatusErrorDomain Code=-10814 "(null)" UserInfo={_LSLine=1796, _LSFunction=runEvaluator}
Only support loading options for CKShare and SWY types.
error fetching item for URL:file:///var/mobile/Containers/Data/Application/453B6EDB-3C76-4D2D-8355-702D4BD0263A/Documents/name%20accentue%CC%81.pdf : Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened."
error fetching item for URL:file:///var/mobile/Containers/Data/Application/453B6EDB-3C76-4D2D-8355-702D4BD0263A/Documents/name%20accentue%CC%81.pdf : Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened."
Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 "Client not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false}
elapsedCPUTimeForFrontBoard couldn't generate a task port
Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 "Client not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false}
elapsedCPUTimeForFrontBoard couldn't generate a task port
App is being debugged, do not track this hang
Hang detected: 4.19s (debugger attached, not reporting)
Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 "Client not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false}
elapsedCPUTimeForFrontBoard couldn't generate a task port
App is being debugged, do not track this hang
Hang detected: 2.31s (debugger attached, not reporting)
Is it a bug in UIActivityViewController to Airdrop ?
 
 
Q