SQLCipher build for xcode16

I’m having trouble integrating SQLCipher into my project using Xcode 16. I encountered many errors during the build process. I studied the podspec file, extracted the CFLAGS from it, and applied them with the ./configure script. Then I ran make sqlite3.c. However, when I add the generated files to my Xcode project, the build fails.

Could you help me fix this or suggest a better way to integrate SQLCipher with Xcode 16?
CFlags and macros in Xcode is also added

Hi @Alimkhan_Zhanbekov

Thanks for your interest in SQLCipher and for posting to the discussion forum.

We were able to reproduce the issue using the instructions on the SQLCipher for iOS/macOS community integration page here: SQLCipher Community Edition - Adding Full Database Encryption for SQLite to iOS and macOS | Zetetic

Adding these two CFlags:

-DSQLCIPHER_CRYPTO_CC
-DNDEBUG

So the the complete CFlags are:

-DSQLITE_HAS_CODEC 
-DSQLITE_TEMP_STORE=2 
-DSQLITE_THREADSAFE=1 
-DSQLITE_EXTRA_INIT=sqlcipher_extra_init 
-DSQLITE_EXTRA_SHUTDOWN=sqlcipher_extra_shutdown
-DSQLCIPHER_CRYPTO_CC
-DNDEBUG

Should allow you to integrate SQLCipher from source in your Xcode project.

Let me know if this fixes the errors for you.

We’ll update the documentation on the page linked to include the extra required CFlags.

Thank you for the answer, everything is works now