How to debug/handle intermittent “authorization denied” and “disk i/o” errors when adding SQL store to an NSPersistentStoreCoordinator?

前端 未结 4 1765
说谎
说谎 2020-12-12 18:35

I have an app in the app store and am using a logging service to get crash logs and associated log data. I am seeing an intermittent crash (low # of users affected and low #

4条回答
  •  独厮守ぢ
    2020-12-12 19:13

    Same problem here, still have not been able to find a solution. I've found it seems to be related to having a lock code set on the device. WIthout the lock code I could never reproduce the error, now I have been able to a bunch of times. Console log is:

    Error is: Error Domain=NSCocoaErrorDomain Code=256 "The operation couldn’t be completed. (Cocoa error 256.)" UserInfo=0x1fd80110 {NSUnderlyingException=authorization denied, NSSQLiteErrorDomain=23}

    File does exist and not using any encryption.

提交回复
热议问题