PSPDFKit for iOS does not include a custom version of SQLite, as iOS comes with SQLite already bundled. Depending on the version of iOS, this version is different and will also have different capabilities enabled:
|11.0 / macOS High Sierra 10.13||3.18.0 with FTS5 Extension|
|10.3 / macOS Sierra 10.12.4||3.16.0|
|10.0-10.2 / macOS Sierra 10.12.0||3.14.0|
|9.1 - 9.3 / OS X El Capitan 10.11.6||184.108.40.206|
If you see SQLite log warnings, read up on our troubleshooting tips.
Check the SQLite website to see what version is the most current. Sometimes your app requires a specific SQLite version. For example:
In such cases you usually link your app with a custom build of SQLite.
Call this in code to see what version of SQLite you currently use
PSPDFKit.framework is dynamically linked with SQLite provided by iOS SDK. However if you link your app with custom SQLite library, PSPDFKit.framework will automatically use it. You might want to remove the
-lsqlite3 string from PSPDFKit.xcconfig inside the framework to remove the system linking.
Make sure your custom SQLite library is built with the following flags:
and if you're using
To use FTS5:
To use FTS4:
PSPDFKit.framework expects these options and fails early if any of these are missing.