diff --git a/AppSigner/MainView.swift b/AppSigner/MainView.swift index e0db409..ade438d 100644 --- a/AppSigner/MainView.swift +++ b/AppSigner/MainView.swift @@ -437,12 +437,8 @@ class MainView: NSView, URLSessionDataDelegate, URLSessionDelegate, URLSessionDo return "\(size)B" } @objc func getPlistKey(_ plist: String, keyName: String)->String? { - let currTask = Process().execute(defaultsPath, workingDirectory: nil, arguments: ["read", plist, keyName]) - if currTask.status == 0 { - return String(currTask.output.dropLast()) - } else { - return nil - } + let dictionary = NSDictionary(contentsOfFile: plist); + return dictionary?[keyName] as? String } func setPlistKey(_ plist: String, keyName: String, value: String)->AppSignerTaskOutput {