Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Neo4j Swift(THO)依赖图解析问题_Swift_Neo4j_Vapor - Fatal编程技术网

Neo4j Swift(THO)依赖图解析问题

Neo4j Swift(THO)依赖图解析问题,swift,neo4j,vapor,Swift,Neo4j,Vapor,我在将Neo4j Theo SDK依赖项安装到Vapor 3项目(Swift 4.2)中时遇到问题。我已将Package.swift文件配置为: // swift-tools-version:4.2 import PackageDescription let package = Package( ... dependencies: [ .package(url: "https://github.com/vapor/vapor.git", from: "3.3.1"),

我在将Neo4j Theo SDK依赖项安装到Vapor 3项目(Swift 4.2)中时遇到问题。我已将Package.swift文件配置为:

// swift-tools-version:4.2
import PackageDescription
let package = Package(
...
    dependencies: [
        .package(url: "https://github.com/vapor/vapor.git", from: "3.3.1"),
        .package(url: "https://github.com/vapor/fluent.git", from: "3.2.1"),
        .package(url: "https://github.com/vapor/fluent-postgresql.git", from: "1.0.0"),
        .package(url: "https://github.com/vapor/auth.git", from: "2.0.4"),
        .package(url: "https://github.com/vapor/console.git", from: "3.1.1"),
        .package(url: "https://github.com/vapor-community/pagination.git", from: "1.0.9"),
        .package(url: "https://github.com/Jinxiansen/Guardian.git", from: "3.0.0"),
        .package(url: "https://github.com/SwiftyBeaver/SwiftyBeaver-Vapor.git", from: "1.1.0"),
        .package(url: "https://github.com/SwiftyBeaver/SwiftyBeaver.git", .exact("1.6.0")),
        .package(url: "https://github.com/Neo4j-Swift/Neo4j-Swift.git", .exact("4.0.2")),
    ],
...
)
但是,当我尝试获取Swift依赖项时,我收到以下错误:

Updating https://github.com/Neo4j-Swift/Neo4j-Swift.git
error: dependency graph is unresolvable; found these conflicting requirements:
Dependencies: 
    https://github.com/Neo4j-Swift/Neo4j-Swift.git @ 4.0.2

我想知道我做错了什么?我还尝试了最新版本的Theo(Swift 5.0),但收到了相同的错误。如果您能帮助将Theo软件包集成到SPM项目中,我们将不胜感激。

这就是全部错误吗?如果您执行
swift build——启用pubgrub解析器
,您通常会收到关于冲突依赖项的更好的错误消息