Hi Jens,

I'm trying to debug an encryption problem that you probably have seen me 
talking about in the Github issues.

I want to be able to run Couchbase Lite from source embedded within my 
Xcode 7 workspace. So I dragged the Couchbase Lite project file into my 
workspace and setup embedding of the CouchbaseLite.framework and the 
CouchbaseLiteListener.framework. I know there's two CouchbaseLite.framework 
Products, and I've chosen the one that was in the Debug-sqlcipher folder. 
So I'm pretty sure I'm using the correct version of the framework. Plus 
when I look inside my built app, I do see the file size of the one I'm 
using is the same as the file size of the one built from the 
CBLMac+SQLCipher target.

But when I try to read an encrypted database or encrypt a database, I'm 
getting an "unimplemented" error.

It's returning NO on this line in CBL_SQLiteStorage:

BOOL hasRealEncryption = sqlite3_compileoption_used("SQLITE_HAS_CODEC") != 0
;


I assumed that the CouchbaseLite project would take care of having all of 
the build settings setup correctly for SQLCipher. And that is in fact the 
case if I archive the framework from the CouchbaseLite Xcode project. But 
it just doesn't see it with my embedded version.


I put -DSQLITE_HAS_CODEC in my own "Other C Flags" build setting in my 
target and that didn't make a difference. 


Have you tried using the CouchbaseLite project from another workspace?


Thanks,


Brendan

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/463c845d-f2d1-457d-a2f3-ab5cb3ffae7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to