Attempt to add read-only file at path file:///var/mobile/Media/PhotoData/Photos.sqlite?
问题 I have just updated to the new Xcode beta 6.0 and when trying to compile for an ipad mini with iOS 8 I am getting a weird error in the console: "Attempt to add read-only file at path file:///var/mobile/Media/PhotoData/Photos.sqlite?readonly_shm=1 read/write. Adding it read-only instead. This will be a hard error in the future; you must specify the NSReadOnlyPersistentStoreOption" This happens when executing the following code: if ([self.rootDelegate respondsToSelector:@selector