gpt4 book ai didi

swift - Neo4j-Swift (Theo) 的依赖图解析问题

转载 作者:行者123 更新时间:2023-11-28 05:35:30 25 4
gpt4 key购买 nike

我在将 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 --enable-pubgrub-resolver,你通常会得到更好的错误消息,说明冲突的依赖项是什么

关于swift - Neo4j-Swift (Theo) 的依赖图解析问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58785695/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com