当我在终端vapor xcode
中运行以获取包时,我收到错误The dependency graph could not be satisfied (https://github.com/vapor/crypto.git)
它是由什么引起的,我该如何解决它。 Package.swift文件内容是
import PackageDescription
let package = Package(
name: "StripePayment",
dependencies: [
.Package(url: "https://github.com/vapor/vapor.git", majorVersion: 1, minor: 1),
.Package(url:"https://github.com/siemensikkema/vapor-jwt.git", majorVersion: 0)
],
exclude: [
"Config",
"Database",
"Localization",
"Public",
"Resources",
"Tests",
]
)
答案 0 :(得分:0)
您需要更改JWT包的名称和Vapor包的版本:
import PackageDescription
let package = Package(
name: "StripePayment",
dependencies: [
.Package(url: "https://github.com/vapor/vapor.git", majorVersion: 1, minor: 5),
.Package(url:"https://github.com/vapor/jwt.git", majorVersion: 0)
],
exclude: [
"Config",
"Database",
"Localization",
"Public",
"Resources",
"Tests",
]
)