Ios couchbase lite SQLCipher unable to decrypt database

I already checked with breakpoints and logging the key, it is the same key…

upon researching for causes, i stumble upon this post:

so i tried implementing this, but still won’t work:

NSError *error; CBLManagerOptions options = {NO, NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication};

self.manager = [[CBLManager alloc] initWithDirectory: [CBLManager defaultDirectory] options: &options error: &error];

I’m currently researching on one of your reply:

You should also read the iOS docs on file protection, if you’re not familiar with it.

Thank you.