SQLCipher + Xcode4

435 views
Skip to first unread message

Mrrie

unread,
Oct 5, 2011, 10:06:40 PM10/5/11
to SQLCipher Users
Hi,

I have tried following some instructions on the internet on how to use
sqlcipher with xcode.

I think i managed to follow all the steps and my project compiled
fine.
But the thing is, xcode doesnt recognize sqlite3_key, it says

"Implicit declaration of function 'sqlite3_key' is invalid in C99"

Figuring out that because previously i had been using libsqlite, i
removed it from my project.

The above error still exists. what steps should i take to solve this
problem?

Billy Gray

unread,
Oct 6, 2011, 12:08:58 PM10/6/11
to sqlc...@googlegroups.com
Hi Mrrie,

What instructions did you follow? "Implicit declaration" typically means that the source files and the SQLCipher Xcode project are not correctly included in your workspace. 

Cheers,
Billy Gray

--
Team Zetetic
http://zetetic.net

Stephen Lombardo

unread,
Oct 6, 2011, 12:20:06 PM10/6/11
to sqlc...@googlegroups.com
Hi Mrrie,

Please try to define SQLITE_HAS_CODEC in your application's C Flags, i.e. -DSQLITE_HAS_CODEC


That should resolve the issue. Thanks!

Cheers,
Stephen

On Wed, Oct 5, 2011 at 10:06 PM, Mrrie <blazin...@gmail.com> wrote:

Mrrie

unread,
Oct 7, 2011, 4:36:31 AM10/7/11
to SQLCipher Users
Thanks for the replies :)
@ Billy : I followed the instructions as provided on the mobileorchard
and sqlcipher site.
I shall retry with the installations and implement the HAS_CODEC as
suggested by Stephen

Will post an update if it works. Hopefully it will.

Mrrie

unread,
Oct 13, 2011, 1:25:30 AM10/13/11
to SQLCipher Users
It works now. Perfect! :)
Reply all
Reply to author
Forward
0 new messages