Cannot import SQLite for SQLite Swift wrapper

别来无恙 提交于 2019-12-11 04:32:36

问题


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

Question

Do I need to create and include a header file?

Reference info

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


回答1:


After following the SQLite.Swift manual installation process, Select SQLite iOS from Product -> Scheme. Now select Build from Product menu.

After waiting for Build succeeded, it does not show error for "import SQLite".




回答2:


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

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.



来源:https://stackoverflow.com/questions/39311605/cannot-import-sqlite-for-sqlite-swift-wrapper

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!