When building on Mac OS for an iOS device there is an error in sqlite3.c (amalgamation file). sqlite3.c fatal error: 'sys/random.h' file not found #include <sys/random.h> After removing the line, it builds and works.