Xcode 7 build error for couchbase lite


#1

I’m getting the following error when attempting to build my cordova app in xcode:

com.couchbase.lite.phonegap/libCBLJSViewCompiler.a(CBLJSViewCompiler.o)' does not contain bitcode.
You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor,
or disable bitcode for this target. for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

What do I need to do to resolve this?


#2

BTW - I’ve updated the plug-in, com.couchbase.lite.phonegap 1.1.1 “Couchbase Lite”, and still no luck.


#3

We have an official fix for this coming soon (the relevant issue is here), but in the meantime you need to use Xcode 7 to compile the native library as well since it was released before Xcode 7 came out and does not contain Apple’s new bitcode feature.