简体   繁体   English

在iPhone上使用FDMB sqlite包装器时出现错误

[英]Getting error while using FDMB sqlite wrapper for iPhone

I am getting an error while compiling when I use FMDB wrapper for sqlite. 将FMDB包装用于sqlite时,编译时出现错误。 The error is 错误是

"_sqlite3_open_v2", referenced from: -[FMDatabase openWithFlags:] in FMDatabase.o symbol(s) not found collect2: Id returned 1 exit status “ _sqlite3_open_v2”,引用自:FMDatabase.o中的-[FMDatabase openWithFlags:]符号未找到collect2:Id返回1退出状态

I just added the classed and havent started working with it.Any help to resolve this. 我刚刚添加了分类的文档,还没有开始使用它。任何帮助解决此问题的方法。

Make sure you're linking to the SQLite library! 确保您链接到SQLite库! In the left pane of your project window in Xcode, expand Targets, click on your target, and command-i to get info. 在Xcode项目窗口的左窗格中,展开Targets,单击您的目标,然后使用Command-i获取信息。 Under the "General" tab you will see "Linked Libraries". 在“常规”标签下,您将看到“链接库”。 Verify that libsqlite3.0.dylib is in the list here, and if not, click the "plus" icon and add it. 验证libsqlite3.0.dylib在此处的列表中,如果没有,请单击“加号”图标并将其添加。

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

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