From 8282002415a219dd73e22ec271babd6585569001 Mon Sep 17 00:00:00 2001 From: Guilherme Rambo Date: Mon, 5 Jan 2026 18:17:58 -0300 Subject: [PATCH] Always use hardcoded team ID for release builds just in case --- Sources/Packages/Sources/XPCWrappers/TeamID.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/Packages/Sources/XPCWrappers/TeamID.swift b/Sources/Packages/Sources/XPCWrappers/TeamID.swift index a93b72f..56848a1 100644 --- a/Sources/Packages/Sources/XPCWrappers/TeamID.swift +++ b/Sources/Packages/Sources/XPCWrappers/TeamID.swift @@ -4,6 +4,7 @@ extension ProcessInfo { private static let fallbackTeamID = "Z72PRUAWF6" private static let teamID: String = { + #if DEBUG guard let task = SecTaskCreateFromSelf(nil) else { assertionFailure("SecTaskCreateFromSelf failed") return fallbackTeamID @@ -15,6 +16,10 @@ extension ProcessInfo { } return value + #else + /// Always use hardcoded team ID for release builds, just in case. + return fallbackTeamID + #endif }() public var teamID: String { Self.teamID }