错误:无法满足依赖图Vapor Swift 3

时间:2017-03-23 05:49:25

标签: swift swift3 vapor

当我在终端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",
]
)

1 个答案:

答案 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",
]
)