Unable to build couchbaseLite core using ./build_unix.sh

I try to build on my ubuntu machine but fail with error below"
…/…/libLiteCoreStatic.a: error adding symbols: File format not recognized
clang: error: linker command failed with exit code 1 (use -v to see invocation)

LiteCore/tests/CMakeFiles/CppTests.dir/build.make:859: recipe for target ‘LiteCore/tests/CppTests’ failed
make[2]: *** [LiteCore/tests/CppTests] Error 1
CMakeFiles/Makefile2:5014: recipe for target ‘LiteCore/tests/CMakeFiles/CppTests.dir/all’ failed
make[1]: *** [LiteCore/tests/CMakeFiles/CppTests.dir/all] Error 2
Makefile:129: recipe for target ‘all’ failed
make: *** [all] Error 2

how could I solve this?

@borrrden Can you help on this?

I was sure I already replied to this but somehow my response has vanished. I would start doing things step by step. I’ve seen this error before and I think it has to do with the wrong version of strip being in the path (i.e. the one from GCC instead of the one from LLVM). So I’d suggest just running the cmake and make command that is in the script to build.

I still don’t know how to do it. Could you show me what command should I run under which directory?