Vapor SQLite 缺少模块 CSQLiteMac
Vapor SQLite missing module CSQLiteMac
我正在尝试将 SQLite 添加到 Vapor 应用程序,但不太顺利。这是我将其添加到项目中所做的工作,以及我在尝试构建它时在 Xcode 中遇到的错误。错误在导入语句的 Sqlite.swift 中:"No such module 'CSQLiteMac'" 我知道某个地方缺少框架,但我似乎无法找到我缺少的东西和我的 google fu让我失望了。
myke$ brew update
Already up-to-date.
myke$ brew install sqlite3 libsqlite3-dev
Error: No available formula with the name "libsqlite3-dev"
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.
==> You haven't updated Homebrew in a while.
A formula for libsqlite3-dev might have been added recently.
Run `brew update` to get the latest Homebrew updates!
myke$ vapor build --clean
Cleaning [Done]
No Packages folder, fetch may take a while...
Fetching Dependencies [Done]
Building Project [Done]
myke$ vapor xcode
Fetching Dependencies [Done]
Generating Xcode Project [Done]
Select the `App` scheme to run.
Open Xcode project?
y/n>n
我的包文件:
import PackageDescription
let package = Package(
name: "kanban",
dependencies: [
.Package(url: "https://github.com/vapor/vapor.git", majorVersion: 1, minor: 0),
.Package(url: "https://github.com/vapor/sqlite-provider.git", majorVersion: 1, minor: 0)
],
exclude: [
"Config",
"Database",
"Localization",
"Public",
"Resources",
"Tests",
]
)
只需使用
brew install sqlite3
sqlite3
包从未安装,因为它在
上失败
Error: No available formula with the name "libsqlite3-dev"
我正在尝试将 SQLite 添加到 Vapor 应用程序,但不太顺利。这是我将其添加到项目中所做的工作,以及我在尝试构建它时在 Xcode 中遇到的错误。错误在导入语句的 Sqlite.swift 中:"No such module 'CSQLiteMac'" 我知道某个地方缺少框架,但我似乎无法找到我缺少的东西和我的 google fu让我失望了。
myke$ brew update
Already up-to-date.
myke$ brew install sqlite3 libsqlite3-dev
Error: No available formula with the name "libsqlite3-dev"
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.
==> You haven't updated Homebrew in a while.
A formula for libsqlite3-dev might have been added recently.
Run `brew update` to get the latest Homebrew updates!
myke$ vapor build --clean
Cleaning [Done]
No Packages folder, fetch may take a while...
Fetching Dependencies [Done]
Building Project [Done]
myke$ vapor xcode
Fetching Dependencies [Done]
Generating Xcode Project [Done]
Select the `App` scheme to run.
Open Xcode project?
y/n>n
我的包文件:
import PackageDescription
let package = Package(
name: "kanban",
dependencies: [
.Package(url: "https://github.com/vapor/vapor.git", majorVersion: 1, minor: 0),
.Package(url: "https://github.com/vapor/sqlite-provider.git", majorVersion: 1, minor: 0)
],
exclude: [
"Config",
"Database",
"Localization",
"Public",
"Resources",
"Tests",
]
)
只需使用
brew install sqlite3
sqlite3
包从未安装,因为它在
Error: No available formula with the name "libsqlite3-dev"