Swift write/save/move a document file to iCloud drive

后端 未结 4 890
眼角桃花
眼角桃花 2020-12-05 01:36

I\'ve been trying for over two days to write a file to iCloud drive. I have tried writing a simple text file directly, locally then moving it, using UIDocumentMenuViewContro

4条回答
  •  一整个雨季
    2020-12-05 01:44

    I had this problem. I followed the advice here and I found that my Info.plist key was not correct. Once I changed it to iCloud.MY_BUNDLE_IDENTIFIER (i.e. copy the string from the CFBundleIdentifier key higher in Info.plist) it all started working.

    Removing the .com from your key may fix your issue.

提交回复
热议问题