错误:无法在Vapor中构建CSQLiteMac

时间:2016-12-08 07:02:22

标签: swift sqlite server-side vapor

我的var rect = event.target.offsetParent; rect.offsetTop; 看起来像这样 -

@OneToOne(optional = true)
@JoinColumn(name = "parent", referencedColumnName = "refID", insertable = true, updatable = true)

我的Package.swift看起来像这样 -

import PackageDescription

let package = Package(
    name: "Hello",
    dependencies: [
        .Package(url: "https://github.com/vapor/vapor.git", majorVersion: 1, minor: 2),
        .Package(url: "https://github.com/vapor/sqlite-provider.git", majorVersion: 1, minor: 1)
    ],
    exclude: [
        "Config",
        "Database",
        "Localization",
        "Public",
        "Resources",
        "Tests",
        ]
)

我的sqlite.json看起来像这样 -

main.swift

我的错误看起来像 -

enter image description here

请帮助我在Vapor中使用sqlite3。

1 个答案:

答案 0 :(得分:2)

如果您还没有,则需要在Mac上安装SQLite的标题。

brew install sqlite3假设您已经安装了Homebrew。