Hi,

There was some discussion in the following GitHub issue about SQLCipher on 
macOS Sierra not being recognized, but that issue is closed now.

https://github.com/couchbase/couchbase-lite-ios/issues/1406

Might be something similar with iOS too.

With Xcode 8 GM seed, I get an error that SQLCipher is not implemented when 
I run my app and try to access an encrypted database.

Database: Opening <CBL_SQLiteStorage: 0x171268a00>
Database: Open /private/var/mobile/Containers/Data/Application/DBCF0DB2-7759
-4247-AA67-664154FF570A/Documents/My New Database.tapforms/db-
190076733d434f5bbdd11dc9eb33e2f6.cblite2/db.sqlite3 with SQLite (flags=6, 
encryption key given)
WARNING: CBL_SQLiteStorage: encryption not available (app not built with 
SQLCipher) {at -[CBL_SQLiteStorage decryptWithKey:error:]:267}
Error Domain=CBLHTTP Code=501 "unimplemented" UserInfo={
NSLocalizedFailureReason=unimplemented, NSLocalizedDescription=unimplemented
}



I made no changes to my project. It works fine if I run it from Xcode 7, 
but not when run from Xcode 8. I'm currently using macOS 10.11.6 for 
development and the problem happens on iOS 9 and iOS 10 GM. So it seems 
like it's more likely an Xcode 8 issue rather than an OS level issue.

Not sure why it's not finding SQLCipher with an Xcode 8 compiled app 
though. I have *libsqlcipher.a* included in the `Link Binary with 
Libraries` phase.

It seems like it may be the way that Xcode 8 is looking for static 
libraries perhaps during runtime. There are no compile errors.

The libsqlcipher.a static library was compiled from the Couchbase SQLCipher 
github source using the Xcode 7 command-line tools.


Has anyone else seen this issue or is there a different way that Xcode 8 
handles library search paths? Or maybe the Runpath Search Paths needs to be 
different somehow? I currently have it set to: $(inherited) 
@executable_path/Frameworks

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/8eba78cd-2206-46d0-9baa-c0485d90a848%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to