How do I set SQLITE_HAS_CODEC when using FMDB as a pod ?

899 views
Skip to first unread message

Ashish Upadhyay

unread,
May 9, 2013, 1:51:58 PM5/9/13
to fm...@googlegroups.com

Phillip Kast

unread,
May 9, 2013, 8:56:55 PM5/9/13
to fm...@googlegroups.com
Hi Ashish,

That's not something you need to set in FMDB -- it's a flag you set to indicate your SQLite implementation's capabilities. 

So first, you'll need to swap in a SQLite that actually does has codec. The two options I'm aware of are SEE (http://www.hwaci.com/sw/sqlite/see.html) and SQLCipher.

Then just #define SQLITE_HAS_CODEC, the typical approach would be to do this in the XCode project in Build Settings, by adding it to "Other C Flags": -DSQLITE_HAS_CODEC 
Reply all
Reply to author
Forward
0 new messages