What version of Sqlite does iOS include?
I've just checked on the iOS 7:
7.0: 3.7.13
This wiki has the latest list, which is currently:
╔═════════════╦════════════════╗
║ iOS Version ║ SQLite Version ║
╠═════════════╬════════════════╣
║ 2.2 ║ 3.4.0 ║
║ 3.1.3 ║ 3.6.12 ║
║ 4.0.2 ║ 3.6.22 ║
║ 4.1.0 ║ 3.6.23.2 ║
║ 4.2.0 ║ 3.6.23.2 ║
║ 5.1.1 ║ 3.7.7 ║
║ 6.0.1 ║ 3.7.13 ║
║ 7.0 ║ 3.7.13 ║
║ 7.0.6 ║ 3.7.13 ║
║ 8.0.2 ║ 3.7.13 ║
║ 8.2 ║ 3.8.5 ║
║ 9.0 ║ 3.8.8 ║
║ 9.3.1 ║ 3.8.10.2 ║
║ 10.0 beta 2 ║ 3.13.0 ║
║ 10.0 GM ║ 3.14.0 ║
║ 10.2 ║ 3.14.0 ║
║ 10.3.1 ║ 3.16.0 ║
║ 11.0 ║ 3.19.3 ║
║ 12.0 ║ 3.24.0 ║
║ 12.1 ║ 3.24.0 ║
║ 13.1.3 ║ 3.28.0 ║
║ 14.1 ║ 3.32.3 ║
║ 14.2 ║ 3.32.3 ║
╚═════════════╩════════════════╝
╔═══════════════╦════════════════╗
║ macOS Version ║ SQLite Version ║
╠═══════════════╬════════════════╣
║ 10.9 ║ 3.7.13 ║
║ 10.10 ║ 3.8.5 ║
║ 10.10.3 ║ 3.8.5 ║
║ 10.11 ║ 3.8.10.2 ║
║ 10.12 ║ 3.14.0 ║
║ 10.13 ║ 3.19.3 ║
║ 10.14.2 ║ 3.24.0 ║
╚═══════════════╩════════════════╝
Iulian Onofrei edited that wiki on 1 Dec 2020
Update Nov 2020 with iOS 14
╔═════════════╦════════════════╗
║ iOS Version ║ SQLite Version ║
╠═════════════╬════════════════╣
║ 13.1.3 ║ 3.28.0 ║
╠═════════════╬════════════════╣
║ 14.1 ║ 3.32.3 ║
╚═════════════╩════════════════╝
Just do:
p (const char*) sqlite3_libversion()
in a debugger running an app (that links to the sqlite lib) on a device on which you want to know the sqlite version.
On an iOS 8.0.2 iPhone 5s I get 3.7.13 so it seems they haven't changed version in a while based on reports in the other answers that version 6.0 used the same version.
In iOS 9.0 the SQLite version is 3.8.10.2
Using SELECT sqlite_version() on various iOS versions:
From the internets:
2.2: 3.4.0
3.1.3: 3.6.12
4.0.2: 3.6.22
4.1.0: 3.6.23.2
4.2.0: 3.6.23.2
I just tested now:
6.0.1: 3.7.13