App builds in xcodeproj (todo widget)

This commit is contained in:
Joe Mattiello
2023-03-02 00:40:11 -05:00
parent 4c9c5b1a56
commit f49fa24743
49 changed files with 498 additions and 295 deletions

View File

@@ -8,6 +8,7 @@
import Foundation
import SideKit
import os.log
@objc private protocol XPCConnectionProxy {
func ping(completionHandler: @escaping () -> Void)
@@ -56,7 +57,7 @@ public class XPCConnection: NSObject, SideConnection {
private extension XPCConnection {
func makeProxy(errorHandler: @escaping (Error) -> Void) -> XPCConnectionProxy {
let proxy = xpcConnection.remoteObjectProxyWithErrorHandler { error in
print("Error messaging remote object proxy:", error)
os_log("Error messaging remote object proxy: %@", type: .error , error.localizedDescription)
self.error = error
errorHandler(error)
} as! XPCConnectionProxy