Code sign swifty helper.
To check pid codesign:
import Darwin
import CodeSign
func main() throws {
let code = try CodeSign.createCode(with: getpid()).get()
let requirement = try CodeSign.createRequirement(with: CodeSignRequirementString.apple).get()
// this will throw cause code is not signed by apple
try CodeSign.checkValidity(for: code, requirement: requirement).get()
}
main()
link |
Stars: 2 |
Last commit: 1 year ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics