突然我的项目中出现以下编译错误:

Undefined symbols for architecture arm64:
  "_sqlite3_mprintf", referenced from:
      _linphone_core_store_call_log in liblinphone.a(call_log.c.o)
      _linphone_chat_message_store in liblinphone.a(message_storage.c.o)
      _linphone_chat_message_store_state in liblinphone.a(message_storage.c.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

最佳答案

看来您的Xcode项目缺少sqlite3所需的对liblinphone的引用:


打开您的Xcode项目文件
转到“常规”标签
查找“链接的框架和库”部分
按下“ +”按钮
搜索“ sqlite”
点击“ libsqlite3.dylib”,然后按“添加”


现在它应该构建并运行。

10-01 08:33