Ios 架构x86_64的未定义符号_sqlite3“U关闭”;,参考

Ios 架构x86_64的未定义符号_sqlite3“U关闭”;,参考,ios,sqlite,linker-errors,Ios,Sqlite,Linker Errors,我是objective-c新手,在xcode中添加sqlite3调用时遇到这个错误。有人知道我能做什么来修复这个错误吗 Undefined symbols for architecture x86_64: "_sqlite3_close", referenced from: -[InAppUtils get:] in libInAppUtils.a(InAppUtils.o) "_sqlite3_exec", referenced from: -[InAppUti

我是objective-c新手,在xcode中添加sqlite3调用时遇到这个错误。有人知道我能做什么来修复这个错误吗

Undefined symbols for architecture x86_64:
  "_sqlite3_close", referenced from:
      -[InAppUtils get:] in libInAppUtils.a(InAppUtils.o)
  "_sqlite3_exec", referenced from:
      -[InAppUtils get:] in libInAppUtils.a(InAppUtils.o)
  "_sqlite3_open", referenced from:
      -[InAppUtils get:] in libInAppUtils.a(InAppUtils.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我尝试添加
libsqlite3.dylib
库,但在我的系统上找不到它。需要吗?如果是这样,我如何找到它?

它看起来像是
libsqlite3.tbd
是新的
libsqlite3.dylib
。我添加了它,一切都正常了


转到“构建阶段”选项卡。展开“将二进制文件链接到库”部分。单击+图标。搜索“sqlite”。添加库

是的,您需要将SQLite库添加到项目中。选择您的项目。转到“构建阶段”选项卡。展开“将二进制文件链接到库”部分。单击+图标。搜索“sqlite”。添加库。