Arti3DPlayer / USBDeviceSwift

wrapper for IOKit.usb and IOKit.hid written on pure Swift that allows you convenient work with USB devices
MIT License
290 stars 55 forks source link

Unable to install swift package due to conflicting requirements. #16

Open ChielChiel opened 4 years ago

ChielChiel commented 4 years ago

When I try to install this swift package I get the following response:

$ swift build
Updating https://github.com/Arti3DPlayer/USBDeviceSwift.git
error: dependency graph is unresolvable; found these conflicting requirements:

Dependencies: 
    https://github.com/Arti3DPlayer/USBDeviceSwift.git @ 1.0.3..<2.0.0

My package file looks like this:

// swift-tools-version:4.2
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "WiredMouse",
    dependencies: [
        .package(url: "https://github.com/Arti3DPlayer/USBDeviceSwift.git", .upToNextMajor(from: "1.0.3")),
    ]
)```

when I, instead of "1.0.3", set the version to "2.0.0" I get the same result but one step higher: 
```shell
$ swift build
Updating https://github.com/Arti3DPlayer/USBDeviceSwift.git
error: dependency graph is unresolvable; found these conflicting requirements:

Dependencies: 
    https://github.com/Arti3DPlayer/USBDeviceSwift.git @ 2.0.0..<3.0.0

And so on

Can somebody please help me get forward? I'm new to swift package manager so I don't know a lot about it.

Thanks