# SQLCipher with BITCODE\_ENABLED

**URL:** <https://discuss.zetetic.net/t/sqlcipher-with-bitcode-enabled/3371>\
**Category:** SQLCipher\
**Created:** [January 22, 2019, 10:42am UTC](https://discuss.zetetic.net/t/sqlcipher-with-bitcode-enabled/3371 "2019-01-22T10:42:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juan\_Carlos\_Balderas](https://avatars.discourse-cdn.com/v4/letter/j/22d042/32.png) [@Juan\_Carlos\_Balderas](https://discuss.zetetic.net/u/Juan_Carlos_Balderas)\
**Post date:** [January 22, 2019, 10:42am UTC](https://discuss.zetetic.net/t/sqlcipher-with-bitcode-enabled/3371/1 "2019-01-22T10:42:53Z")

</div>

Hi,

I’m having a requirement to enable ENABLE\_BITCODE in build settings for one of my iOS projects in which I’m using sqlcipher, but It’s failing with this error when I’m trying to archive my app:

ld: bitcode bundle could not be generated because ‘/Customers/branches/3.8.0\_GA/libsqlcipher.a(sqlite3.o)’ was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build file ‘/Customers/branches/3.8.0\_GA/libsqlcipher.a’ for architecture armv7

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

my guess is that sqlcipher library libsqlcipher.a is not having BITCODE enabled, I already checked for bitcode in the library and here is the result:

\*\*\*\*TERMINAL  
Juans-New-Mac:3.8.0\_GA juan$ otool -arch arm64 -l libsqlcipher.a | grep bitcode  
sectname \_\_bitcode  
Juans-New-Mac:3.8.0\_GA juan$ otool -arch armv7 -l libsqlcipher.a | grep bitcode  
sectname \_\_bitcode  
Juans-New-Mac:3.8.0\_GA juan$ otool -arch armv7s -l libsqlcipher.a | grep bitcode  
sectname \_\_bitcode  
Juans-New-Mac:3.8.0\_GA juan$ otool -arch i386 -l libsqlcipher.a | grep bitcode  
Juans-New-Mac:3.8.0\_GA juan$ otool -arch x86\_64 -l libsqlcipher.a | grep bitcode

I’m not an expert, but my guess is that these means I have bitcode enabled for arm64, armv7, armv7s architectures, but I still need to enable it for x86\_64 and i386.

So I tried to compile sqlcipher but adding the flag for enabling bit code, but I’m getting warnings about it:

./configure --enable-tempstore=yes CFLAGS="-DSQLITE\_HAS\_CODEC -fembed-bitcode" LDFLAGS=“libcrypto.a”

Juans-New-Mac:sqlcipher-master juan$ make

gcc -DSQLITE\_HAS\_CODEC -fembed-bitcode -DSQLCIPHER\_CRYPTO\_OPENSSL -o mksourceid /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/tool/mksourceid.c

tclsh8.5 /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/tool/mksqlite3h.tcl /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master \>sqlite3.h

gcc -DSQLITE\_HAS\_CODEC -fembed-bitcode -DSQLCIPHER\_CRYPTO\_OPENSSL -o mkkeywordhash /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/tool/mkkeywordhash.c

./mkkeywordhash \>keywordhash.h

gcc -DSQLITE\_HAS\_CODEC -fembed-bitcode -DSQLCIPHER\_CRYPTO\_OPENSSL -o lemon /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/tool/lemon.c

cp /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/tool/lempar.c .

cp /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/src/parse.y .

rm -f parse.h

./lemon parse.y

mv parse.h parse.h.temp

tclsh8.5 /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/tool/addopcodes.tcl parse.h.temp \>parse.h

cat parse.h /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/src/vdbe.c | tclsh8.5 /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/tool/mkopcodeh.tcl \>opcodes.h

tclsh8.5 /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/tool/mkopcodec.tcl opcodes.h \>opcodes.c

tclsh8.5 /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/tool/mkshellc.tcl \>shell.c

cp /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/fts5/fts5parse.y .

rm -f fts5parse.h

./lemon fts5parse.y

tclsh8.5 /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/fts5/tool/mkfts5c.tcl

cp /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/fts5/fts5.h .

rm -rf tsrc

mkdir tsrc

cp -f /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/src/crypto.h /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/src/sqlcipher.h /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/src/crypto.c /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/src/crypto\_impl.c  
…  
…  
/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/misc/stmt.c keywordhash.h opcodes.c opcodes.h parse.c parse.h config.h shell.c sqlite3.h tsrc

rm tsrc/sqlite.h.in tsrc/parse.y

tclsh8.5 /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/tool/vdbe-compress.tcl \<tsrc/vdbe.c \>vdbe.new

mv vdbe.new tsrc/vdbe.c

cp fts5.c fts5.h tsrc

touch .target\_source

tclsh8.5 /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/tool/mksqlite3c.tcl

cp tsrc/sqlite3ext.h .

cp /Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/session/sqlite3session.h .

./libtool --mode=compile --tag=CC gcc -DSQLITE\_HAS\_CODEC -fembed-bitcode -DSQLCIPHER\_CRYPTO\_OPENSSL -DSQLITE\_OS\_UNIX=1 -I. -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/src -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/rtree -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/icu -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/fts3 -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/async -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/session -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/userauth -D\_HAVE\_SQLITE\_CONFIG\_H -DBUILD\_sqlite -DNDEBUG -DSQLITE\_THREADSAFE=1 -DSQLITE\_HAVE\_ZLIB=1 -DSQLITE\_TEMP\_STORE=2 -c sqlite3.c

libtool: compile: gcc -DSQLITE\_HAS\_CODEC -fembed-bitcode -DSQLCIPHER\_CRYPTO\_OPENSSL -DSQLITE\_OS\_UNIX=1 -I. -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/src -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/rtree -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/icu -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/fts3 -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/async -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/session -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/userauth -D\_HAVE\_SQLITE\_CONFIG\_H -DBUILD\_sqlite -DNDEBUG -DSQLITE\_THREADSAFE=1 -DSQLITE\_HAVE\_ZLIB=1 -DSQLITE\_TEMP\_STORE=2 -c sqlite3.c -fno-common -DPIC -o .libs/sqlite3.o

libtool: compile: gcc -DSQLITE\_HAS\_CODEC -fembed-bitcode -DSQLCIPHER\_CRYPTO\_OPENSSL -DSQLITE\_OS\_UNIX=1 -I. -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/src -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/rtree -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/icu -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/fts3 -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/async -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/session -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/userauth -D\_HAVE\_SQLITE\_CONFIG\_H -DBUILD\_sqlite -DNDEBUG -DSQLITE\_THREADSAFE=1 -DSQLITE\_HAVE\_ZLIB=1 -DSQLITE\_TEMP\_STORE=2 -c sqlite3.c -o sqlite3.o \>/dev/null 2\>&1

./libtool --mode=link gcc -DSQLITE\_HAS\_CODEC -fembed-bitcode -DSQLCIPHER\_CRYPTO\_OPENSSL -DSQLITE\_OS\_UNIX=1 -I. -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/src -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/rtree -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/icu -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/fts3 -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/async -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/session -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/userauth -D\_HAVE\_SQLITE\_CONFIG\_H -DBUILD\_sqlite -DNDEBUG -DSQLITE\_THREADSAFE=1 -DSQLITE\_HAVE\_ZLIB=1 libcrypto.a -no-undefined -o libsqlcipher.la sqlite3.lo -lz -lcrypto \

-rpath “/usr/local/lib” -version-info “8:6:8”

\*\*\* Warning: Linking the shared library libsqlcipher.la against the

\*\*\* static library libcrypto.a is not portable!

libtool: link: gcc -dynamiclib -o .libs/libsqlcipher.0.dylib .libs/sqlite3.o libcrypto.a -lz -lcrypto -install\_name /usr/local/lib/libsqlcipher.0.dylib -compatibility\_version 9 -current\_version 9.6 -Wl,-single\_module

libtool: link: (cd “.libs” && rm -f “libsqlcipher.dylib” && ln -s “libsqlcipher.0.dylib” “libsqlcipher.dylib”)

libtool: link: ar cru .libs/libsqlcipher.a libcrypto.a sqlite3.o

libtool: link: ranlib .libs/libsqlcipher.a

libtool: link: ( cd “.libs” && rm -f “libsqlcipher.la” && ln -s “…/libsqlcipher.la” “libsqlcipher.la” )

./libtool --mode=link gcc -DSQLITE\_HAS\_CODEC -fembed-bitcode -DSQLCIPHER\_CRYPTO\_OPENSSL -DSQLITE\_OS\_UNIX=1 -I. -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/src -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/rtree -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/icu -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/fts3 -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/async -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/session -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/userauth -D\_HAVE\_SQLITE\_CONFIG\_H -DBUILD\_sqlite -DNDEBUG -DSQLITE\_THREADSAFE=1 -DSQLITE\_HAVE\_ZLIB=1 libcrypto.a -DHAVE\_READLINE=0 -DHAVE\_EDITLINE=1 -DSQLITE\_ENABLE\_JSON1 -DSQLITE\_ENABLE\_FTS4 -DSQLITE\_ENABLE\_RTREE -DSQLITE\_ENABLE\_EXPLAIN\_COMMENTS -DSQLITE\_ENABLE\_UNKNOWN\_SQL\_FUNCTION -DSQLITE\_ENABLE\_STMTVTAB -DSQLITE\_ENABLE\_DBPAGE\_VTAB -DSQLITE\_ENABLE\_DBSTAT\_VTAB -DSQLITE\_ENABLE\_OFFSET\_SQL\_FUNC -DSQLITE\_ENABLE\_DESERIALIZE -DSQLITE\_INTROSPECTION\_PRAGMAS -o sqlcipher \

shell.c sqlite3.c \

-ledit -lz -lcrypto -rpath “/usr/local/lib”

libtool: link: gcc -DSQLITE\_HAS\_CODEC -fembed-bitcode -DSQLCIPHER\_CRYPTO\_OPENSSL -DSQLITE\_OS\_UNIX=1 -I. -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/src -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/rtree -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/icu -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/fts3 -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/async -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/session -I/Customers/branches/3.8.0\_GA/MobileCardServices/sqlcipher-master/ext/userauth -D\_HAVE\_SQLITE\_CONFIG\_H -DBUILD\_sqlite -DNDEBUG -DSQLITE\_THREADSAFE=1 -DSQLITE\_HAVE\_ZLIB=1 -DHAVE\_READLINE=0 -DHAVE\_EDITLINE=1 -DSQLITE\_ENABLE\_JSON1 -DSQLITE\_ENABLE\_FTS4 -DSQLITE\_ENABLE\_RTREE -DSQLITE\_ENABLE\_EXPLAIN\_COMMENTS -DSQLITE\_ENABLE\_UNKNOWN\_SQL\_FUNCTION -DSQLITE\_ENABLE\_STMTVTAB -DSQLITE\_ENABLE\_DBPAGE\_VTAB -DSQLITE\_ENABLE\_DBSTAT\_VTAB -DSQLITE\_ENABLE\_OFFSET\_SQL\_FUNC -DSQLITE\_ENABLE\_DESERIALIZE -DSQLITE\_INTROSPECTION\_PRAGMAS -o sqlcipher shell.c sqlite3.c libcrypto.a -ledit -lz -lcrypto

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-bio\_md.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-bio\_ndef.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-bss\_null.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-bn\_gf2m.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-bn\_kron.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-bn\_sqrt.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-ec\_print.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-p\_verify.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-v3\_alt.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-x\_spki.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-ocsp\_ht.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-asn\_mime.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-p12\_attr.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-pk7\_doit.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-v3\_cpols.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-v3\_pcons.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-v3\_lib.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-v3\_conf.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-x509name.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-x\_req.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-x509\_req.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-x509\_lu.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-x509\_trs.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-x509\_vpm.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-pcy\_tree.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-cms\_dd.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-pcy\_map.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-pcy\_data.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-rsaz-x86\_64.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-bio\_asn1.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-bio\_b64.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-ocsp\_asn.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-pk7\_attr.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-v3\_pmaps.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-x509rset.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-pcy\_lib.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-x86\_64-gf2m.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-pcy\_node.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-v3\_akey.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-v3\_ocsp.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-v3\_int.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-v3\_enum.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-ct\_x509v3.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-v3\_admis.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-v3\_extku.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-v3\_bitst.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-v3\_ia5.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-v3\_pci.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-v3\_pku.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-v3\_skey.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-v3\_sxnet.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-v3\_tlsf.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-ct\_sct.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-ct\_prn.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-ct\_oct.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-f\_string.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-ct\_log.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-ct\_sct\_ctx.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-ct\_vfy.o)’ was built without 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.

ld: warning: all bitcode will be dropped because ‘libcrypto.a(libcrypto-lib-ct\_b64.o)’ was built without 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.

Can anyone know if I need to ENABLE\_BITCODE in the library in order to enable ENABLE\_BITCODE in my iOS project or if there is a workaround? and If is required then how to enable bitcode in the library.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![mmoore](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/mmoore/32/858_2.png) [@mmoore](https://discuss.zetetic.net/u/mmoore)\
**Post date:** [January 29, 2019, 3:28pm UTC](https://discuss.zetetic.net/t/sqlcipher-with-bitcode-enabled/3371/2 "2019-01-29T15:28:52Z")

</div>

@Juan_Carlos_Balderas

It looks like you may be using the old integration instructions for SQLCipher for iOS. We have updated integration instructions here: [https://www.zetetic.net/sqlcipher/ios-tutorial/](https://www.zetetic.net/sqlcipher/ios-tutorial/)

Would you try those out and let us know if you’re able to resolve the issue?

---

<div class="post-metadata">

**Author:** ![fewlinesofcode](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/fewlinesofcode/32/1619_2.png) [@fewlinesofcode](https://discuss.zetetic.net/u/fewlinesofcode)\
**Post date:** [May 27, 2021, 1:58pm UTC](https://discuss.zetetic.net/t/sqlcipher-with-bitcode-enabled/3371/3 "2021-05-27T13:58:12Z")

</div>

I have bitcode problem in licensed version. Can you please give me a glue how to fix it for xcframework?

---

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [May 27, 2021, 2:38pm UTC](https://discuss.zetetic.net/t/sqlcipher-with-bitcode-enabled/3371/4 "2021-05-27T14:38:01Z")

</div>

Hi @fewlinesofcode

Would you reach out to us directly at [support@zetetic.net](mailto:support@zetetic.net) for direct support? Thanks!
