无法为SQLite Swift包装器导入SQLite [英] Cannot import SQLite for SQLite Swift wrapper

查看:173
本文介绍了无法为SQLite Swift包装器导入SQLite的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我完全遵循了SQLite.Swift手动安装过程( https://github.com/stephencelis/ SQLite.swift ),但在import SQLite上出现红色警告。

I followed the SQLite.Swift manual installation process exactly (https://github.com/stephencelis/SQLite.swift), but a red warning appears at "import SQLite".

OSX(10.11.6)
XCode 7.3.1

OSX (10.11.6) XCode 7.3.1

问题

我是否需要创建并包含头文件?

Do I need to create and include a header file?

参考信息

在SQLite.xcodeproj中,libsqlite3.tbd会自动链接而不是libsqlite3.dyslib。

In SQLite.xcodeproj, libsqlite3.tbd is automatically linked instead of libsqlite3.dyslib.

推荐答案

我注意到在你的项目中,sqlite子项目在你的项目文件夹中。它需要是它自己的单独文件夹。

I noticed that in your project, the sqlite sub project is in your project folder. It needs to be its own separate folder.

当您拖放sqlite子项目时,您需要确保所有文件夹都已折叠,并将其放在所有文件夹的底部。

When you drag and drop the sqlite sub project in, you need to make sure that all folders are collapsed, and put it at the bottom of all of the folders.

这篇关于无法为SQLite Swift包装器导入SQLite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆