I have an app that shares a text file using the iOS ShareSheet. This app has functioned as intended until the release of iOS17 but I now have reports of zero length files ... but only from users based in the US!
I have test reports from UK and Europe that show no issues.
I have tested the original implementation, that uses UIDocumentInteractionController, and alternatives such as UIActivityViewController e.g.:
UIActivityViewController* avc = [[UIActivityViewController alloc] initWithActivityItems:@[self.temporaryURL] applicationActivities:nil];
[self presentViewController:avc animated:YES completion:^{
}];
Like many reports on the forums, there are a lot of errors (from the Sharing library) in the console such as:
Failed to request default share mode for fileURL:file:///private/var/mobile/Containers/Data/Application....
or
Only support loading options for CKShare and SWY types.
But in my testing the file shares without problems.
The file to be shared is located in the NSTemporaryDirectory()
Has anyone else seen this strange behaviour?
If so, does anyone know how to fix it?