蒸气SQLite缺失模块CSQLiteMac

问题描述:

我想添加SQLite到Vapor应用程序,但没有多少运气。以下是我将它添加到项目以及我在Xcode中获取的错误,当我尝试构建它时。该错误是在Sqlite.swift导入语句中:“没有这样的模块'CSQLiteMac'”我知道有一个丢失的框架,但我似乎无法追查我失踪的东西,我的谷歌福正在失败我。蒸气SQLite缺失模块CSQLiteMac

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" 
+0

所以这是的我一半问题。一旦我安装了sqlite,我仍然收到错误。我必须添加: “$(SRCROOT)/Packages/CSQLite-1.0.0” 到SQLite目标的搜索路径。 –