简体   繁体   English

找不到-lsqlite3的库

[英]library not found for -lsqlite3

Hello friends I'm new in iOS. 大家好,我是iOS新手。 I'm creating an app using sqlite. 我正在使用sqlite创建一个应用程序。 the app is running perfectly in simulator but not working in iPhone device. 该应用程序可以在模拟器中完美运行,但不能在iPhone设备上运行。 I search a lot but not getting the right solution. 我进行了大量搜索,但没有找到正确的解决方案。 I got a link but it also not worked for me. 我有一个链接,但对我也不起作用。

在此处输入图片说明

I downloaded some demo app of sqlite, but all apps showing same error. 我下载了一些sqlite演示应用程序,但是所有应用程序都显示相同的错误。 I'm not understanding what happened. 我不明白发生了什么。 PLZ help me I stuck with this issue. PLZ帮我解决这个问题。

see the libsqlite3.o.tbd is shows on red color , just delete and add again and finally clean and run once .the visibility shows as black not red, see the attached image 看到libsqlite3.o.tbd显示为红色,只需删除并再次添加,最后清理并运行一次即可。可见性显示为黑色而不是红色,请参见所附图像

在此处输入图片说明

updated answer 更新的答案

在此处输入图片说明

finally do clean and run 终于清理干净并运行

Open xCode click top project blue icon. 打开xCode,单击顶部项目蓝色图标。 Click Target-> build Phases -> Link Binary With Libraries -> add Other -> open Folder -> click Windows+Shift+G ->Enter /usr/lib then select library and add to your Project 单击目标->构建阶段->使用库链接二进制文件->添加其他->打开文件夹->单击Windows + Shift + G->输入/ usr / lib,然后选择库并添加到您的项目中

try it. 试试吧。

The problem is my Xcode. 问题是我的Xcode。 I deleted my sqlite library by mistake that's it is not showing my sqlite library path. 我错误地删除了我的sqlite库,因为它没有显示我的sqlite库路径。 I uninstalled and installed new Xcode, and my issue resolved. 我卸载并安装了新的Xcode,问题已解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM