I'm having trouble when I try to use FMDatabase.
I have added theese files:
FMDatabaseQueue
FMDatabaseAdditions
FMDatabase
FMResultSet
FMDatabasePool
..and I have also added the libsqlite3.dylib library and imported FMDatabase.h, but as soon as I uncomment this line:
FMDatabase *db = [FMDatabase databaseWithPath:@"/tmp/tmp.db"];
..I get this error:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_FMDatabase", referenced from:
objc-class-ref in DBWrapper.o
ld: symbol(s) not found for architecture i386
I have also tried changing settings like Deployment target between 4.0 - 5.0 and creating a new, clean project, etc.
I'm using Xcode Version 4.3 (4E109).
What am I doing wrong? :)
// Stefan