Set Xcode 27 builder (#822)

* Set Xcode 27 builder

* Fix Xcode 27 build errors
This commit is contained in:
Max Goedjen
2026-09-06 20:46:51 -07:00
committed by GitHub
parent 039dddd107
commit 85ba5a1a37
10 changed files with 17 additions and 32 deletions

View File

@@ -34,12 +34,12 @@ import XPCWrappers
) {
self.osVersion = osVersion
self.currentVersion = currentVersion
Task {
_ = Task {
if checkOnLaunch {
try await checkForUpdates()
}
while !Task.isCancelled {
try? await Task.sleep(for: .seconds(Int(checkFrequency)))
while true {
try await Task.sleep(for: .seconds(Int(checkFrequency)))
try await checkForUpdates()
}
}

View File

@@ -94,7 +94,7 @@ extension SocketController {
guard !data.isEmpty else {
logger.debug("Socket controller received empty data, ending continuation.")
messagesContinuation.finish()
try fileHandle.close()
try? fileHandle.close()
return
}
messagesContinuation.yield(data)
@@ -126,8 +126,8 @@ private extension SocketPort {
convenience init(path: String) {
var addr = sockaddr_un()
let length = unsafe withUnsafeMutablePointer(to: &addr.sun_path.0) { pointer in
unsafe path.withCString { cstring in
let length = withUnsafeMutablePointer(to: &addr.sun_path.0) { pointer in
path.withCString { cstring in
let len = unsafe strlen(cstring)
unsafe strncpy(pointer, cstring, len)
return len

View File

@@ -52,15 +52,15 @@ class AppDelegate: NSObject, NSApplicationDelegate {
Task {
for await session in socketController.sessions {
Task {
let inputParser = try await XPCAgentInputParser()
do {
let inputParser = try await XPCAgentInputParser()
for await message in session.messages {
let request = try await inputParser.parse(data: message)
let agentResponse = await agent.handle(request: request, provenance: session.provenance)
try session.write(agentResponse)
}
} catch {
try session.close()
try? session.close()
}
}
}

View File

@@ -25,7 +25,7 @@ struct Secretive: App {
guard !agentLaunchController.developmentBuild else { return }
if justUpdatedChecker.justUpdatedBuild || !agentLaunchController.running {
// Relaunch the agent, since it'll be running from earlier update still
try await agentLaunchController.forceLaunch()
try? await agentLaunchController.forceLaunch()
}
}
}

View File

@@ -101,7 +101,7 @@ struct AgentNotRunningView: View {
guard !loading else { return }
loading = true
Task {
try await agentLaunchController.forceLaunch()
try? await agentLaunchController.forceLaunch()
loading = false
if !agentLaunchController.running {