main.swift
sha256:c88bf098b52c796e46edc39ec71f9f0627d305439b73972d3fada73cefde0da9
fix: put release binaries before lipo architecture checks
Human
minor
⚠ breaking
26 days ago
| 1 | import Foundation |
| 2 | import KnowtationSecurity |
| 3 | |
| 4 | do { |
| 5 | _ = try CustodyCapability.request(mode: .cli) |
| 6 | FileHandle.standardError.write(Data("unsigned caller unexpectedly received custody capability\n".utf8)) |
| 7 | exit(1) |
| 8 | } catch RuntimeLaunchError.capabilityUnavailable(let reason) where reason == "caller_denied" { |
| 9 | exit(0) |
| 10 | } catch { |
| 11 | FileHandle.standardError.write(Data("caller probe failed for an unexpected reason: \(error)\n".utf8)) |
| 12 | exit(2) |
| 13 | } |
File History
1 commit
sha256:c88bf098b52c796e46edc39ec71f9f0627d305439b73972d3fada73cefde0da9
fix: put release binaries before lipo architecture checks
Human
minor
⚠
26 days ago