base on this:http://ti.eng.br/beginning-with-couchbase-lite-on-ios