onmyway133/Arcane

SPM: dependency graph is unresolvable

mervick opened this issue · 1 comments

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?

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