iOS: Adjust to ObjFW changes

FossilOrigin-Name: 604513acba904b54db0279d35290e075101a9745f62154e78bfaa604bd091178
This commit is contained in:
Jonathan Schleifer 2021-03-14 00:16:15 +00:00
parent 4c744c922a
commit 48eba5104f
2 changed files with 2 additions and 3 deletions

View file

@ -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;

View file

@ -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<OFString, OFDictionary<OFNumber, AnyObject>>
storage =
(decoded?.nsObject as? [String: [NSNumber: AnyObject]]) ?? [:]