Is there a way to generate the CouchbaseLiteListener framework using Carthage? Please let me know.
Thanks in advance
Nope, there’s nothing yet. It would be a welcomed contribution though if you manage to figure it out!
Hi @traun, I was trying to build the listener with Carthage and when I use the framework generated using Carthage it is throwing an error ‘Assertion failed: Concrete listener class CBLHTTPListener not found; make sure you’ve linked the necessary library’
I have linked all the necessary libraries as below “libCouchbaseLiteListener.a”, “libCouchbaseLite.a”, “libz.dylib”, “libc++.dylib”, “libsqlite3.dylib”
Please guide me what I’m missing here
Make sure libCouchbaseLiteListener was built for the right architecture (use the file
command), and that it includes the class symbol for CBLHTTPListener (use nm
.)
Hi @jens,
I checked the framework file using file
command and it has the architectures arm64
which I was targeting for
output of file
command
android-e868eb21ade28dc4:TestSample AjayChander$ file CouchbaseLiteListener.framework/CouchbaseLiteListener
CouchbaseLiteListener.framework/CouchbaseLiteListener: Mach-O universal binary with 2 architectures: [arm_v7:Mach-O dynamically linked shared library arm_v7] [arm64]
CouchbaseLiteListener.framework/CouchbaseLiteListener (for architecture armv7):Mach-O dynamically linked shared library arm_v7
CouchbaseLiteListener.framework/CouchbaseLiteListener (for architecture arm64):Mach-O 64-bit dynamically linked shared library arm64
and also tries nm
and I’m able to see the class symbols for CBLHTTPListener.
00155ac4 t +[CBLHTTPListener initialize] 001560dc t +[CBLHTTPListener keyPathsForValuesAffectingPort]
00156122 t -[CBLHTTPListener .cxx_destruct] 00155f68 t -[CBLHTTPListener TXTRecordDictionary] 001560c0 t -[CBLHTTPListener _httpServer] 00155f2c t -[CBLHTTPListener bonjourName] 00155ba8 t -[CBLHTTPListener initWithManager:port:] 00156082 t -[CBLHTTPListener port] 00155e16 t -[CBLHTTPListener setBonjourName:type:] 00155fa4 t -[CBLHTTPListener setTXTRecordDictionary:] 00156002 t -[CBLHTTPListener start:] 00156046 t -[CBLHTTPListener stop]
002171b4 S _OBJC_CLASS_$_CBLHTTPListener
is there anything I’m missing here. Please guide me