Post

Replies

Boosts

Views

Activity

Reply to NSInvalidArgumentException while sharing in UIDocumentInteractionController
Hello, We can confirm that the issue occurs on all versions of iOS 26. Key details: The file is definitely stored in the device’s local storage (in the Documents directory). A file existence check is performed before opening — and it always passes successfully. Here are a few examples of file URLs where the crash occurs: file:///var/mobile/Containers/Data/Application/0707C22C-7C21-404A-8074-5C0EE02D198E/Documents/%D0%9E%D0%B4%D0%BE%D0%B5%D0%B2%D1%81%D0%BA%D0%B8%D0%B8%CC%86-%D0%92%D0%BB%D0%B0%D0%B4%D0%B8%D0%BC%D0%B8%D1%80-%D0%A4%D0%B5%D0%B4%D0%BE%D1%80%D0%BE%D0%B2%D0%B8%D1%87(2).-%D0%93%D0%BE%D1%80%D0%BE%D0%B4%D0%BE%D0%BA-%D0%B2-%D1%82%D0%B0%D0%B1%D0%B0%D0%BA%D0%B5%D1%80%D0%BA%D0%B5.pdf file:///var/mobile/Containers/Data/Application/A28276DB-CF84-46E0-A5B6-D6796E426A0C/Documents/%D0%9E%D0%B1%D0%BB%D0%BE%D0%B6%D0%BA%D0%B8%20%D0%B4%D0%BB%D1%8F%20%D1%82%D0%B5%D1%82%D1%80%D0%B0%D0%B4%D0%B5%D0%B8%CC%86.pdf We’ve found a public report about a similar issue: . We believe it would be useful to study it. https://github.com/fluttercommunity/plus_plugins/issues/3784?ref=https://githubhelp.com
Topic: UI Frameworks SubTopic: UIKit Tags:
1w
Reply to NSInvalidArgumentException while sharing in UIDocumentInteractionController
Thank you for your quick response. Attached 3 decrypted stack traces. Some sensitive data is hidden log_1.txt log_2.txt log_3.txt 2. We are seeing crashes on versions of iOS 26.2 inclusive and above. I assume that it occurs on all versions of iOS 26.x 3. We download the file, check that the url is valid and the file exists. Part of the code is indicated below guard url.isFileURL, url.pathExtension == "pdf" else { completion(false) return } guard fileManager.fileExists(atPath: url.path) else { completion(false) return } let interactionController = UIDocumentInteractionController(url: url) interactionController.delegate = self let success = interactionController.presentPreview(animated: true) We are seeing this on a small number of users, so far it is not a critical percentage. At the moment, we cannot estimate which part of the attempts to open files is failing and which is successful. We expect technical improvements from APPLE and hope for an early fix.
Topic: UI Frameworks SubTopic: UIKit Tags:
3w
Reply to NSInvalidArgumentException while sharing in UIDocumentInteractionController
Hello, We can confirm that the issue occurs on all versions of iOS 26. Key details: The file is definitely stored in the device’s local storage (in the Documents directory). A file existence check is performed before opening — and it always passes successfully. Here are a few examples of file URLs where the crash occurs: file:///var/mobile/Containers/Data/Application/0707C22C-7C21-404A-8074-5C0EE02D198E/Documents/%D0%9E%D0%B4%D0%BE%D0%B5%D0%B2%D1%81%D0%BA%D0%B8%D0%B8%CC%86-%D0%92%D0%BB%D0%B0%D0%B4%D0%B8%D0%BC%D0%B8%D1%80-%D0%A4%D0%B5%D0%B4%D0%BE%D1%80%D0%BE%D0%B2%D0%B8%D1%87(2).-%D0%93%D0%BE%D1%80%D0%BE%D0%B4%D0%BE%D0%BA-%D0%B2-%D1%82%D0%B0%D0%B1%D0%B0%D0%BA%D0%B5%D1%80%D0%BA%D0%B5.pdf file:///var/mobile/Containers/Data/Application/A28276DB-CF84-46E0-A5B6-D6796E426A0C/Documents/%D0%9E%D0%B1%D0%BB%D0%BE%D0%B6%D0%BA%D0%B8%20%D0%B4%D0%BB%D1%8F%20%D1%82%D0%B5%D1%82%D1%80%D0%B0%D0%B4%D0%B5%D0%B8%CC%86.pdf We’ve found a public report about a similar issue: . We believe it would be useful to study it. https://github.com/fluttercommunity/plus_plugins/issues/3784?ref=https://githubhelp.com
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
1w
Reply to NSInvalidArgumentException while sharing in UIDocumentInteractionController
Thank you for your quick response. Attached 3 decrypted stack traces. Some sensitive data is hidden log_1.txt log_2.txt log_3.txt 2. We are seeing crashes on versions of iOS 26.2 inclusive and above. I assume that it occurs on all versions of iOS 26.x 3. We download the file, check that the url is valid and the file exists. Part of the code is indicated below guard url.isFileURL, url.pathExtension == "pdf" else { completion(false) return } guard fileManager.fileExists(atPath: url.path) else { completion(false) return } let interactionController = UIDocumentInteractionController(url: url) interactionController.delegate = self let success = interactionController.presentPreview(animated: true) We are seeing this on a small number of users, so far it is not a critical percentage. At the moment, we cannot estimate which part of the attempts to open files is failing and which is successful. We expect technical improvements from APPLE and hope for an early fix.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
3w