Prerequisites — Couchbase Lite for Objective-C
Description — Prerequisites for the installation of Couchbase Lite
Vector Search Prerequisites
To use Vector Search, you must have Couchbase Lite installed and add the Vector Search extension to your Couchbase Lite application. Vector Search is available only for 64-bit architectures and Intel processors that support the Advanced Vector Extensions 2 (AVX2) instruction set. To verify whether your device supports the AVX2 instructions set, follow these instructions. |
Couchbase Lite Framework Size
Couchbase Lite for Objective-C is provided as an xcframework
.
The xcframework download size is between 100 and 140 MB.
This include includes a "fat" binary that contains slices for both device (armv7
, arm64
) and simulator (i386
and x86_64
) CPU architectures.
The fat binary allows you to link your app to the same xcframework and run your app on the simulator or a real device.
In addition, the bitcode that is included contributes to the majority of the download size. Bitcode is an intermediate code representation that allows Apple to recompile the app after App submission and to deliver a thin version of the app specific to the device architecture.
Although you can disable bitcode within your app and strip away bitcode from the Couchbase Lite framework, it is not necessary to do so. In fact, it is probably best to leave it enabled to be future proof. This is because the bitcode is never downloaded by the user even though it is uploaded during App submission.
More information on App size is available on this Apple Q&A page.