tmandry / Swindler

macOS window management library for Swift
https://tmandry.github.io/Swindler/docs/main/
MIT License
690 stars 66 forks source link

Example app fails #88

Open smartkiwi opened 2 years ago

smartkiwi commented 2 years ago

Trying to run example app via running swift run and getting error:

/Users/.../tmp/Swindler/.build/checkouts/AXSwift/Sources/Observer.swift:38:19: error: thrown expression type 'AXError' does not conform to 'Error'
            throw error
                  ^~~~~

Some information about my system:

% swift -version
swift-driver version: 1.26.21 Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
Target: x86_64-apple-macosx11.0
smartkiwi commented 2 years ago

What helped was to update https://github.com/tmandry/Swindler/blob/main/Package.swift#L20 to be .package(url: "https://github.com/tmandry/AXSwift.git", from: "0.3.1"),