- "sqlite3.h", "sqlite3.c" & “sqlite3ext.h” filename should all have the prefix of “keen_io” as the latter are version ambiguous.
- “KIOEventStore.h" should import "keen_io_sqlite3.h” and not “sqlite3.h” which is ambiguous.
- The distribution zip (cocoa pods or not) should include the "keen_io_sqlite3.h” as it is imported by “KIOEventStore.h"
- The usage of NSDateFormatter is not thread-safe (https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Multithreading/ThreadSafetySummary/ThreadSafetySummary.html). A better and much faster solution would be (as you have sqlite now) to simply execute something like:
sqlite3_stmt *statement = NULL;
sqlite3_prepare_v2(db, "SELECT datetime('now');", -1, &statement, NULL);
sqlite3_bind_text(statement, 1, format, -1, SQLITE_STATIC);
sqlite3_step(statement);