mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-01-24 00:22:52 +01:00
Always use hardcoded team ID for release builds just in case
This commit is contained in:
parent
b2cf6239b3
commit
8282002415
@ -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 }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user