From f25879b6fe84c17bd8187242e56252e71be58fe4 Mon Sep 17 00:00:00 2001 From: John Estropia Date: Thu, 9 Aug 2018 21:04:09 +0900 Subject: [PATCH] fix compile error on tvOS and watchOS --- Sources/SQLiteStore.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SQLiteStore.swift b/Sources/SQLiteStore.swift index 5d4113d..e99c1ac 100644 --- a/Sources/SQLiteStore.swift +++ b/Sources/SQLiteStore.swift @@ -153,8 +153,8 @@ public final class SQLiteStore: LocalStorage { public let storeOptions: [AnyHashable: Any]? = autoreleasepool { var storeOptions: [AnyHashable: Any] = [NSSQLitePragmasOption: ["journal_mode": "WAL"]] - if #available(iOS 11, OSX 10.13, *) { - + if #available(iOS 11.0, OSX 10.13, tvOSApplicationExtension 11.0, watchOSApplicationExtension 4.0, *) { + storeOptions[NSBinaryStoreInsecureDecodingCompatibilityOption] = true } return storeOptions