Existing project previously building fine with Couchbase lite v1.2.1, I replaced the CouchbaseLite and CouchbaseLiteListener frameworks for the new 1.3.0 version, and upon compiling was getting about 26 errors related to undefined symbols similar to:
Undefined symbols for architecture x86_64:
“std::__1::__vector_base_common::__throw_length_error() const”, referenced from:
std::__1::vector<couchbase::differ::Change, std::__1::allocatorcouchbase::differ::Change >::allocate(unsigned long) in CouchbaseLite(Differ.o)
void std::__1::vector<couchbase::differ::Change, std::__1::allocatorcouchbase::differ::Change
… continues on for many lines…
Seeing that these related to C++, I thought perhaps there’s a new not-yet-documented requirement to link to libc++, so I added that, and those errors were replaced with these:
duplicate symbol _AllLogDomains in:
/<…>/Frameworks/iOS/CouchbaseLite.framework/CouchbaseLite(MYLogging.o)
duplicate symbol _AlwaysLog in:
/<…>/Frameworks/iOS/CouchbaseLite.framework/CouchbaseLite(MYLogging.o)
duplicate symbol _EnableLog in:
/<…>/Frameworks/iOS/CouchbaseLite.framework/CouchbaseLite(MYLogging.o)
duplicate symbol _EnableLogTo in:
/<…>/Frameworks/iOS/CouchbaseLite.framework/CouchbaseLite(MYLogging.o)
duplicate symbol _MYDefault_LogDomain in:
/<…>/Frameworks/iOS/CouchbaseLite.framework/CouchbaseLite(MYLogging.o)
duplicate symbol _MYLogTo in:
/<…>/Frameworks/iOS/CouchbaseLite.framework/CouchbaseLite(MYLogging.o)
duplicate symbol _MYLoggingCallback in:
/<…>/Frameworks/iOS/CouchbaseLite.framework/CouchbaseLite(MYLogging.o)
duplicate symbol _MYWarn in:
/<…>/Frameworks/iOS/CouchbaseLite.framework/CouchbaseLite(MYLogging.o)
duplicate symbol __WillLogTo in:
/<…>/Frameworks/iOS/CouchbaseLite.framework/CouchbaseLite(MYLogging.o)
duplicate symbol _gMYLogDomainList in:
/<…>/Frameworks/iOS/CouchbaseLite.framework/CouchbaseLite(MYLogging.o)
duplicate symbol _gMYWarnRaisesException in:
/<…>/Frameworks/iOS/CouchbaseLite.framework/CouchbaseLite(MYLogging.o)
ld: 11 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
So, are there new linking/building requirements for iOS CB Lite v1.3?
Thanks