Skip to content

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

@ChielChiel

Description

@ChielChiel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions