From 48eba5104f8fb63fb9f503b0ad14a7998fac9826 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Sun, 14 Mar 2021 00:16:15 +0000 Subject: [PATCH] iOS: Adjust to ObjFW changes FossilOrigin-Name: 604513acba904b54db0279d35290e075101a9745f62154e78bfaa604bd091178 --- iOS/CryptoPassphrase.xcodeproj/project.pbxproj | 2 -- iOS/SiteStorage.swift | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/iOS/CryptoPassphrase.xcodeproj/project.pbxproj b/iOS/CryptoPassphrase.xcodeproj/project.pbxproj index 4c53eb9..1389fc5 100644 --- a/iOS/CryptoPassphrase.xcodeproj/project.pbxproj +++ b/iOS/CryptoPassphrase.xcodeproj/project.pbxproj @@ -378,7 +378,6 @@ "$(inherited)", "$(PROJECT_DIR)/ObjFW/Frameworks", ); - HEADER_SEARCH_PATHS = ObjFW/include; INFOPLIST_FILE = Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; MARKETING_VERSION = 1.3; @@ -404,7 +403,6 @@ "$(inherited)", "$(PROJECT_DIR)/ObjFW/Frameworks", ); - HEADER_SEARCH_PATHS = ObjFW/include; INFOPLIST_FILE = Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; MARKETING_VERSION = 1.3; diff --git a/iOS/SiteStorage.swift b/iOS/SiteStorage.swift index bf049e3..87d8fbe 100644 --- a/iOS/SiteStorage.swift +++ b/iOS/SiteStorage.swift @@ -45,7 +45,8 @@ class SiteStorage: OFObject { var storage: [String: [NSNumber: AnyObject]]? = nil OFException.try({ - let decoded = (OFData(contentsOfFile: path).messagePackValue) + let decoded = (OFData(contentsOfFile: path) + .objectByParsingMessagePack) as? OFDictionary> storage = (decoded?.nsObject as? [String: [NSNumber: AnyObject]]) ?? [:]