Hello @BrendanD
Glad to hear you worked it out with --prefix.
If you want to use the shared library, you would definitely need to use the .dylib file, the .a is the static library. I’m not familiar with Couchbase Lite or how its built, but in general you should be able to reference the dylib from your XCode project (e.g. add it to the link build phase of the target).
You would still need to ensure that the headers can be located via the includes folder in order to make use of the library. In practice this would at least mean that the target’s headers search path includes the include directory. Remember you’ll also still need to set the defines in the target for SQLITE_HAS_CODEC, etc., to get visibility of the key functions.