cstayade

macrumors newbie
Original poster
Nov 23, 2017
2
0
Please help me with "Implicit declaration of function 'sqlite3_key' is invalid in c99".
I am new in iOS development (Objective-c), also working on already developed project and I an unable resolve the issue.
I am using FMDatabase, also found some workaround on same issue but no luck so far.
 

PhoneyDeveloper

macrumors 68040
Sep 2, 2008
3,114
93
An #import statement is missing for sqlite.h. Or that function doesn't exist or is misspelled. Or header-search-paths is missing the location for the sqlite.h header. The error means that the compiler can't find the header file that contains that method, and that this is now illegal in c99.

Are you using CocoaPods? I happened to notice this issue, which may be the same: https://github.com/CocoaPods/CocoaPods/issues/7232
 
Last edited:

cstayade

macrumors newbie
Original poster
Nov 23, 2017
2
0
when i jump to the definition.. it show me the function from header file. Then why i am still getting same error if it was for 'missing for sqlite.h. Or that function doesn't exist or is misspelled'. Please help....
 

PhoneyDeveloper

macrumors 68040
Sep 2, 2008
3,114
93
Is the error in one of your files or for a file from FMDatabase? Is there an #import sqlite3.h statement?

Is there an example project from FMDatabase and does it build correctly? Can you compare it to your project?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.