gpt4 book ai didi

iphone - 如何在尝试实现我的 DBAccess 类时修复 sqlite3 错误

转载 作者:行者123 更新时间:2023-12-01 22:47:56 25 4
gpt4 key购买 nike

我正在研究我的数据库访问类,它试图使用 sqlite3 函数调用数据库,但我收到了所有这些错误,如果有人以前经历过这些错误或者他们有任何错误,我只是受伤了了解为什么它们可能会发生。

Undefined symbols:
"_sqlite3_finalize", referenced from:
-[DBAccess getAllMakes] in DBAccess.o
"_sqlite3_errmsg", referenced from:
-[DBAccess initalizeDatabase] in DBAccess.o
-[DBAccess closeDatabase] in DBAccess.o
"_sqlite3_step", referenced from:
-[DBAccess getAllMakes] in DBAccess.o
"_sqlite3_column_text", referenced from:
-[DBAccess getAllMakes] in DBAccess.o
"_sqlite3_prepare_v2", referenced from:
-[DBAccess getAllMakes] in DBAccess.o
"_sqlite3_open", referenced from:
-[DBAccess initalizeDatabase] in DBAccess.o
"_sqlite3_close", referenced from:
-[DBAccess initalizeDatabase] in DBAccess.o
-[DBAccess closeDatabase] in DBAccess.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

最佳答案

将框架 libsqlite3.0.dylib 添加到框架中的项目

关于iphone - 如何在尝试实现我的 DBAccess 类时修复 sqlite3 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6286221/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com