Whenever an cocoa app is updated in Mac Store, will the data inside the local CouchbaseLite database get lost or will it be retained?
As long as the user does not uninstall the app and reinstall, data will be persisted between app updates. Even if the user does a fresh install, the data can be replicated from the server.
Only the app package itself (".app") gets updated, never the user data or preferences.