Swiftpack.co - x13a/codesign-swift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by x13a.
x13a/codesign-swift 0.1.1
Code sign swifty helper.
⭐️ 2
🕓 2 years ago
.package(url: "https://github.com/x13a/codesign-swift.git", from: "0.1.1")

codesign-swift

Code sign swifty helper.

Example

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()

GitHub

link
Stars: 2
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics