Attempt to add read-only file at path file:///var/mobile/Media/PhotoData/Photos.sqlite?

北城以北 提交于 2019-12-04 08:29:09

Most likely a newly introduced bug in iOS 8 beta 2. Let's see how it develops.

It seems that ALAssetsLibrary requests internally read & write access to Photos.sqlite database, and it can only gain read access. I'm receiving the same error with this call:

[self.assetsLibrary enumerateGroupsWithTypes:ALAssetsGroupAll
    usingBlock:^(ALAssetsGroup *group, BOOL *stop) {

    ...

It is a core data error, and since my app does not use core data, and I receive the error when I access the photo library picker, I'm gonna say it is on Apple, and a bug. Apparently files are attempting to be added as read/write and they are read only. I'm pretty sure Apple should know this, since they set up the image picker. I'm just trying to access it.

self.pickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!