在iCloud文件夹中列出所有文件
我想搜索我iCloud驱动器中存在的文件夹中的文件夹。如何在iOS设备或Mac上(通过Catalyst)上的iCloud文件夹中的所有文件的路径获取?
I want to search a folder that exists in my iCloud Drive for files. How can I get the paths of all files inside an iCloud folder on an iOS device or on Mac (via Catalyst)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查iCloud> Xcode Project Signing& iCloud文档功能。
然后,我们需要用户允许访问该文件夹。按照 apple doc 中的指示。它显示了如何通过通过
uidocumentPickerviewController
选择文件夹来访问文件夹的权限。它还显示了如何列出该iCloud文件夹中的所有文件(甚至在应用程序容器之外的文件)中保存以供将来访问。Check iCloud > iCloud Documents in Xcode project Signing & Capabilities.
Then we need the user to allow access to the Folder. Follow the directions in the Apple Doc. It shows how to ask for permission to access a folder by selecting it via the
UIDocumentPickerViewController
. It also shows how to list all files in that iCloud folder (even files outside the app’s container) and save it for future access.