I am developing using Qt C++, on my first run for iOS simulator I received this error :
error: building for iOS simulator, but linking against dylib built for OSX, file ‘/usr/local/Cellar/libcouchbase/2.5.4/lib/libcouchbase.dylib’ for architecture x86_64
I might have the wrong understanding with some concepts of building cross platform application using Couchbase. Any help ?
I am not sure what you are asking, but building for Couchbase is the same as building for other applications. Note that by default Homebrew installs only 64-bit builds.
It would seem your iOS simulator (presumably to conserve memory) uses 32 bit builds.
You can do:
$ brew install libcouchbase --universal
to have it generate both 64 and 32 bit binaries
Thanks @mnunberg solved the issue.