Xcode installation is not officialy supported, as this library is for linux only.
You can add swift-gpio
as a package dependency in your Package.swift
file:
let package = Package(
//...
dependencies: [
.package(
url: "https://github.com/Vaidios/swift-gpio.git",
branch: "main"
),
],
//...
)
From there, refer to the GPIO
"product" delivered by the swift-gpio
"package" inside of any of your project's target dependencies:
targets: [
.target(
name: "YourLibrary",
dependencies: [
.product(
name: "GPIO",
package: "swift-gpio"
),
],
),
]
- Swift 5.8
swift-gpio
is available under the MIT license. See the LICENSE file for more info.