我正在尝试使用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
答案 0 :(得分:5)
在框架
中将框架libsqlite3.0.dylib添加到您的项目中