macOS 10.10+ / Ubuntu 16.04+ with working installation of Swift 5.8+
Swift Package Manager
You can use The Swift Package Manager to install SignalHandler
by adding the proper description to your Package.swift
file:
import PackageDescription
let package = Package(
name: "YOUR_PROJECT_NAME",
targets: [],
dependencies: [
.package(url: "https://github.com/Genaro-Chris/SignalHandler.git", branch: "main")
]
)
Next, add SignalHandler
to your targets dependencies like this:
.target( name: "YOUR_TARGET_NAME", dependencies: [ "SignalHandler", ] ),
Then run swift package update
.
For a better documentation of this swift package. Visit here
SignalHandler is released under Apache-2.0 license. See License for more information.