I know clang-21 is not yet supported, but as I successfully compiled Couchbase Lite with it, here is a small update that will be needed. In
vendor/couchbase-lite-core/C/Cpp_include/c4Collection.hh
std::vector is used and is never included. From some version of Clang the indirect inclusion must have disappeared.