我正在为我的iOS应用构建扩展程序,以上传图库中的照片/视频。 但是当尝试将url转换为NSData时出现此错误
Error Domain=NSCocoaErrorDomain Code=260 "The file “IMG_0015.JPG” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/var/mobile/Media/PhotoData/OutgoingTemp/6689587C-2A44-45D1-9DFF-841A3B890051/IMG_0015.JPG, NSUnderlyingError=0x12298d360 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
有时候我也遇到这个错误
Code=257 "The file couldn't be opened because you don’t have permission to view it
已设置所有权限,那么这里出什么问题了?