Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/109.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 如何在Swift 3.0中使用SQLite?_Ios_Swift3_Sqlite.swift - Fatal编程技术网

Ios 如何在Swift 3.0中使用SQLite?

Ios 如何在Swift 3.0中使用SQLite?,ios,swift3,sqlite.swift,Ios,Swift3,Sqlite.swift,我无法在我的项目中使用SQLite框架。当我得到图像中显示的错误时。有人能帮我解决这个错误吗 注意:该项目位于Swift 3.0中,我已使用Cocoapod安装SQLite库修复了该问题 由于CSQLite模块试图从默认路径访问sqlite3库,因此/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include

我无法在我的项目中使用SQLite框架。当我得到图像中显示的错误时。有人能帮我解决这个错误吗

注意:该项目位于Swift 3.0中,我已使用Cocoapod安装SQLite库修复了该问题

由于CSQLite模块试图从默认路径访问sqlite3库,因此/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/sqlite3.h

但是,在我的例子中,我安装了两个名为的不同版本的xcode应用程序。因此,我将Xcode.app更改为Xcode 8.2.1.app


/Applications/Xcode 8.2.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/sqlite3.h

什么是CSQLite?应该是SQLite。SQLite正在使用CSQLite从操作系统库路径构建和访问sqlite3库。你能告诉我你正在使用哪个SQLite framework for swift吗?@Poles这是链接。试试这个库-,它很容易使用。