Implicit declaration of function 'sqlite3_key'?

前端 未结 2 438

I am working on SQLite File Encryption. I have added sqlCipher & crypto frameworks successfully in my project.

Now when I try to compile my application on this l

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-16 04:19

    Yes, that is the reason you are getting that compiler warning. The function sqlite3_key() is not defined in the version of libsqlite3 included with iOS. Adding in a function declaration isn't going to help-- it would fix that compiler warning, but it would just mean you'll get a linker error since the function isn't defined anywhere.

    If you purchased SEE you could probably build your own copy of SQLite, embed it in your app, and just not use the system's libsqlite3. That this would mean you'd have to say "yes" when the app store submission process asks if your app includes encryption, meaning extra paperwork and time before you could submit the app. I'm not certain whether there's any clear indication of whether Apple would accept it even then-- probably they would, but they've been known to surprise people.

提交回复
热议问题