如何将 sqlite 框架正确添加到 Xcode 项目中? [英] how to correctly add sqlite frameworks to the Xcode project?

查看:35
本文介绍了如何将 sqlite 框架正确添加到 Xcode 项目中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 SQLite 添加到我的项目中.我检查了构建阶段选项卡下的目标依赖项,它是空的,这是真的.我收到以下错误:无法运行命令Ld SQLite"-此目标可能包括自己的产品."

I am trying to add SQLite to my project.I checked the target dependencies under the build phase tab,it is empty, which is true.I am getting the following error:Unable to run command 'Ld SQLite' - this target might include its own product."

我正在使用 swift 3.你能帮帮我吗?提前致谢

I am using swift 3. Can you please help me? Thanks in advance

推荐答案

我目前不在 Mac 面前,但我认为在 Build Phases 下您需要做的就是转到将二进制文件与库链接,点击添加按钮并输入sqlite",以便您可以选择 libsqlite3.

I'm not in front of a Mac at present, but I think all you need to do under Build Phases is go to Link Binaries with Libraries, hit the add button and type in "sqlite" so you can select libsqlite3.

这篇关于如何将 sqlite 框架正确添加到 Xcode 项目中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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