首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不能使用Vapor将快速包推到Heroku

不能使用Vapor将快速包推到Heroku
EN

Stack Overflow用户
提问于 2020-04-01 20:28:46
回答 1查看 101关注 0票数 2

我试图使用Vapor (https://github.com/vapor-community/heroku-buildpack/tree/master)将一个Swift包推到Heroku,但我一直收到以下错误:

error: terminated(1): /app/tmp/cache/heroku-18/swiftenv/versions/4.2/usr/bin/swift-build-tool -f /tmp/build_1041959f11306dce64ad9d4712e1d962/.build/debug.yaml main output:

我使用SWIFT5.2编写了这个包,但Heroku坚持使用SWIFT4.2。我已经确认了buildpack与SWIFT5.2兼容,我已经将. Swift文件设置为5.2,以及我的Package.swift文件的第一行。

下面是Package.swift文件:

代码语言:javascript
复制
    // swift-tools-version:5.2
    // The swift-tools-version declares the minimum version of Swift required to build this package.

    import PackageDescription

    let package = Package(
name: "TurnipBot",
dependencies: [
    // Dependencies declare other packages that this package depends on.
    .package(url: "https://github.com/Azoy/Sword", .branch("master"))

],
targets: [
    // Targets are the basic building blocks of a package. A target can define a module or a test suite.
    // Targets can depend on other targets in this package, and on products in packages which this package depends on.
    .target(
        name: "TurnipBot",
        dependencies: ["Sword"]),
    .testTarget(
        name: "TurnipBotTests",
        dependencies: ["TurnipBot"]),
]
    )
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-04-02 13:50:20

您确实提交了.swift-version文件吗?拼写对不对等等?我在我的一个应用程序中使用过它,部署得很好

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60979749

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档