We use UIPasteboard for transfering audio files to and from other apps, in wav format. This has worked since iOS 5.
However when trying to build under Xcode 9.3.1 and running under iOS 11 this is printed to the console:
2018-05-22 13:56:53.475509-0700 ***[613:66838] [default] [ERROR] Failed to determine whether URL /private/var/mobile/Containers/Data/Application/***/tmp/.com.apple.Pasteboard.O7u8eq/audio (n) is managed by a file provider
And the items fail to get added to the pasteboard.
I've tried setting a file provider:
[board setItemProviders:@[[[NSItemProvider alloc] initWithItem:items typeIdentifier:(NSString *)kUTTypeAudio]]];
[board setValue:items forPasteboardType:(NSString *)kUTTypeAudio];
To no avail.