Undefined symbols for architecture arm64:问题

Posted MJ_Angel

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Undefined symbols for architecture arm64:问题相关的知识,希望对你有一定的参考价值。

Undefined symbols for architecture arm64:

  "_sqlite3_prepare_v2", referenced from:

      +[HMJSchoolTool queryWithCondition:] in HMJSchoolTool.o

  "_sqlite3_step", referenced from:

      +[HMJSchoolTool queryWithCondition:] in HMJSchoolTool.o

  "_sqlite3_column_int", referenced from:

      +[HMJSchoolTool queryWithCondition:] in HMJSchoolTool.o

  "_sqlite3_column_text", referenced from:

      +[HMJSchoolTool queryWithCondition:] in HMJSchoolTool.o

  "_sqlite3_open", referenced from:

      +[HMJSchoolTool initialize] in HMJSchoolTool.o

  "_sqlite3_exec", referenced from:

      +[HMJSchoolTool initialize] in HMJSchoolTool.o

      +[HMJSchoolTool save:] in HMJSchoolTool.o

ld: symbol(s) not found for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

 

对于此问题,主要是因为没有引用libsqlite3.0.tbd,在项目中General的Linked Frameworks and Libraries中添加libsqlite3.0.tbd,此时问题就迎刃而解了.

以上是关于Undefined symbols for architecture arm64:问题的主要内容,如果未能解决你的问题,请参考以下文章

Undefined symbols for architecture arm64:问题

Undefined symbols for architecture armv7错误解决方法

Undefined symbols for architecture xxx,出错总结

Cocoapods Undefined symbols for architecture armv7sarm64

static报错 Undefined symbols for architecture x86_64

解决Undefined symbols for architecture arm64问题