IOS couchbase lite deployment linking error


#1

I’m trying to deploy an IOS (react-native) app with couchbase-lite using fastlane. During the linking phase it fails with the following error libCBLJSViewCompiler.a(CBLJSViewCompiler.o)’ was built without full bitcode. I’ve no idea what this means or how to fix it! Any ideas?

Here’s the detail:

ld: bitcode bundle could not be generated because '{my-path...}/ios/libCBLJSViewCompiler.a(CBLJSViewCompiler.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture armv7

clang: error: linker command failed with exit code 1 (use -v to see invocation)


** ARCHIVE FAILED **


The following build commands failed:
Ld {my-path...}/Library/Developer/Xcode/DerivedData/myapp-cvkhcsdfxgmgokbegzcqhdxmcngh/Build/Intermediates/ArchiveIntermediates/myapp/IntermediateBuildFilesPath/myapp.build/Release-iphoneos/myapp.build/Objects-normal/armv7/myapp normal armv7

#2

This is issue #1048, which will be fixed in the upcoming 1.2.1 release.

Bitcode isn’t yet required for submission to the app store, so you can work around the problem by going into your Xcode target build settings and turning off “Enable Bitcode”.