From 2f447cc2375a013cd98af931bc2631be1b34cd70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Wed, 6 Mar 2019 18:42:45 +0100 Subject: [PATCH] Wording and formatting --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 833de6be6..1572e4362 100644 --- a/README.md +++ b/README.md @@ -5075,21 +5075,24 @@ When the FTS3 and FTS4 full-text engines don't suit your needs, you may want to The version of SQLite that ships with iOS, macOS and watchOS does not always support the FTS5 engine. To enable FTS5 support, you'll need to install GRDB with one of those installation techniques: -1. Use a custom compilation option. It uses the system SQLite and requires iOS 11.4+ / macOS 10.13+ / watchOS 4.3+: +1. Use the GRDB.swift CocoaPod with a custom compilation option, as below. It uses the system SQLite, which is compiled with FTS5 support, but only on iOS 11.4+ / macOS 10.13+ / watchOS 4.3+: ```ruby + pod 'GRDB.swift' platform :ios, '11.4' # or above - + post_install do |installer| installer.pods_project.targets.select { |target| target.name == "GRDB.swift" }.each do |target| - target.build_configurations.each do |config| - config.build_settings['OTHER_SWIFT_FLAGS'] = "$(inherited) -D SQLITE_ENABLE_FTS5" + target.build_configurations.each do |config| + config.build_settings['OTHER_SWIFT_FLAGS'] = "$(inherited) -D SQLITE_ENABLE_FTS5" end end end ``` - -> :point_up: **Note**: make sure you use the right platform version! GRDB can't protect you here and you will get runtime errors on devices with a lower version. + + > :warning: **Warning**: make sure you use the right platform version! You will get runtime errors on devices with a lower version. + + > :point_up: **Note**: there used to be a GRDBPlus CocoaPod with pre-enabled FTS5 support. This CocoaPod is deprecated: please switch to the above technique. 2. Use the GRDBCipher CocoaPod. It uses SQLCipher (see [encryption](#encryption)), and requires iOS 8.0+ / macOS 10.9+ / watchOS 2.0+: