Undefined symbols for architecture arm64:
"__mdictof", referenced from:
-[CBL_Router queries] in CouchbaseLiteListener(CBL_Router.o)
-[CBLDatabase(REST) updateAttachment:body:type:encoding:ofDocID:revID:source:status:error:] in CouchbaseLiteListener(CBLDatabase+REST.o)
-[CBL_Router(Handlers) do_POST_revs_diff:] in CouchbaseLiteListener(CBL_Router+Handlers.o)
"__castIf", referenced from:
-[CBL_Router bodyAsDictionary] in CouchbaseLiteListener(CBL_Router.o)
-[CBLView(REST) compileFromDesignDoc] in CouchbaseLiteListener(CBLView+REST.o)
-[CBLView(REST) compileFromProperties:language:] in CouchbaseLiteListener(CBLView+REST.o)
-[CBLDatabase(REST) getDesignDocFunction:key:language:] in CouchbaseLiteListener(CBLDatabase+REST.o)
-[CBLDatabase(REST) compileFilterNamed:status:] in CouchbaseLiteListener(CBLDatabase+REST.o)
-[CBL_Router(Handlers) do_POST_facebook_token] in CouchbaseLiteListener(CBL_Router+Handlers.o)
-[CBL_Router(Handlers) do_POST_bulk_docs:] in CouchbaseLiteListener(CBL_Router+Handlers.o)
...
"_$regex", referenced from:
-[CBL_Router processRequestRanges] in CouchbaseLiteListener(CBL_Router.o)
"__dictof", referenced from:
-[CBLResponse setInternalStatus:] in CouchbaseLiteListener(CBL_Router.o)
-[CBLResponse setMultipartBody:type:] in CouchbaseLiteListener(CBL_Router.o)
-[CBLDatabase(REST) updateAttachment:body:type:encoding:ofDocID:revID:source:status:error:] in CouchbaseLiteListener(CBLDatabase+REST.o)
-[CBL_Router(Handlers) do_POST_persona_assertion] in CouchbaseLiteListener(CBL_Router+Handlers.o)
-[CBL_Router(Handlers) do_POST_facebook_token] in CouchbaseLiteListener(CBL_Router+Handlers.o)
-[CBL_Router(Handlers) do_GET_uuids] in CouchbaseLiteListener(CBL_Router+Handlers.o)
-[CBL_Router(Handlers) do_GET_session] in CouchbaseLiteListener(CBL_Router+Handlers.o)
...
"__AssertFailed", referenced from:
-[CBL_Router route] in CouchbaseLiteListener(CBL_Router.o)
-[CBL_Router run] in CouchbaseLiteListener(CBL_Router.o)
_CBLStartServer in CouchbaseLiteListener(CBL_URLProtocol.o)
-[CBLDatabase(REST) attachmentForRevision:named:status:] in CouchbaseLiteListener(CBLDatabase+REST.o)
___42-[CBL_Router(Handlers) do_POST_bulk_docs:]_block_invoke in CouchbaseLiteListener(CBL_Router+Handlers.o)
"_$equal", referenced from:
-[CBLHTTPConnection supportsMethod:atPath:] in CouchbaseLiteListener(CBLHTTPConnection.o)
-[CBLHTTPConnection expectsRequestBodyFromMethod:atPath:] in CouchbaseLiteListener(CBLHTTPConnection.o)
-[CBL_Router boolQuery:] in CouchbaseLiteListener(CBL_Router.o)
-[CBL_Router cacheWithEtag:] in CouchbaseLiteListener(CBL_Router.o)
-[CBL_Router route] in CouchbaseLiteListener(CBL_Router.o)
-[CBL_Router processRequestRanges] in CouchbaseLiteListener(CBL_Router.o)
-[CBL_Router sendResponseHeaders] in CouchbaseLiteListener(CBL_Router.o)
...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Is this because I'm using the dynamic CBL framework and the static CBL Listener framework together?
Is there a way to compile the CBL Listener as a dynamic framework?
When I type 'file CouchbaseLite', I get the following:
CouchbaseLite: Mach-O universal binary with 2 architectures: [arm_v7:Mach-O dynamically linked shared library arm_v7] [arm64]
CouchbaseLite (for architecture armv7): Mach-O dynamically linked shared library arm_v7
CouchbaseLite (for architecture arm64): Mach-O 64-bit dynamically linked shared library arm64
So it would seem that the two frameworks are built differently.
Can you think of a reason why CouchbaseLiteListener is not able to see those symbols?
I think this is the only thing preventing me from successfully compiling my iOS app extension.
Thanks,
Brendan