if(!_db){
_db = [servidor databaseNamed:@"pharmadvisor_mobile" error:&error]; <<< Line updating "error" variable
}
if (!_db || error){
[NSException raise:@"Error creando DB" format:@"Error inesperado: %@", error];
}
if(_db)
[self inicializarVistas];
return _db;
Error Domain=SQLite Code=23 "authorization denied" UserInfo=0x155802e0 {NSLocalizedDescription=authorization denied}
--To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/1E2F6779-3BD5-48D0-A62D-AB23BFADF68D%40couchbase.com.
You received this message because you are subscribed to a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/q8H3qzgYfHo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchba...@googlegroups.com.
Well, I think that is correct, but so, how could i avoid the access while device being locked...Looking on SO...
2014-03-11 13:18 GMT-05:00 Jens Alfke <je...@couchbase.com>:
On Mar 11, 2014, at 10:57 AM, Frederic Yesid Peña Sánchez <freder...@gmail.com> wrote:
Error Domain=SQLite Code=23 "authorization denied" UserInfo=0x155802e0 {NSLocalizedDescription=authorization denied}I’ve never heard of that SQLite error code before, but searching Google for SQLITE_AUTH, the second hit is this StackOverflow question where it occurs on iOS. Apparently this is caused by the process no longer having access to the database file due to iOS’s file encryption. Is it possible your code is being invoked when the device is locked?—Jens
--
You received this message because you are subscribed to a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/q8H3qzgYfHo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchbase+unsubscribe@googlegroups.com.
On Oct 1, 2014, at 8:41 AM, Frederic Yesid Peña Sánchez <freder...@gmail.com> wrote:I'm still having these problems, seems related to having passcode on iPad and the app or replicator trying to access encrypted data.
On Jul 21, 2015, at 3:12 AM, Ibrahim <a...@phonidex.com> wrote:I had the same problem happens with me, i was able to reproduce by editing scheme, from options select `launch due to background fetch event`, then run the app while device is locked, trying to change fileProtection to NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication didn't help, even after i switched to ForestDB i see this error `WARNING: ForestDB error FORESTDB ERROR -2`