onmyway133 / Arcane

:trident: CommonCrypto in Swift, and more
https://onmyway133.github.io/
Other
283 stars 22 forks source link

SPM: dependency graph is unresolvable #25

Closed mervick closed 5 years ago

mervick commented 5 years ago

I tried to add Arcane to a project with the following Package.swift created by swift package init:

// swift-tools-version:5.0

import PackageDescription

let package = Package(
    name: "AesEverywhere",
    dependencies: [
        .package(url: "https://github.com/onmyway133/Arcane.git", from: "2.1.1")
    ],
    targets: [
        .target(
            name: "AesEverywhere",
            dependencies: ["Arcane"])
    ]
)

swift build gets this result:

Updating https://github.com/onmyway133/Arcane.git
error: dependency graph is unresolvable; found these conflicting requirements:

Dependencies: 
    https://github.com/onmyway133/Arcane.git @ 2.1.1..<3.0.0

Can you help me what is wrong?

mervick commented 5 years ago

Never mind, it happens because my swift-tools-version is 5.0 and in Arcane's Package.swift is swift-tools-version:5.1. So, I forked this repo and fixed this, but anyway CommonCrypto is not available during compile, so seems there is no way to build project using SPM