Undefined symbols for architecture arm64:問題

Undefined symbols for architecture arm64:sql

  "_sqlite3_prepare_v2", referenced from:code

      +[HMJSchoolTool queryWithCondition:] in HMJSchoolTool.osqlite

  "_sqlite3_step", referenced from:it

      +[HMJSchoolTool queryWithCondition:] in HMJSchoolTool.oio

  "_sqlite3_column_int", referenced from:引用

      +[HMJSchoolTool queryWithCondition:] in HMJSchoolTool.ocommand

  "_sqlite3_column_text", referenced from:error

      +[HMJSchoolTool queryWithCondition:] in HMJSchoolTool.o項目

  "_sqlite3_open", referenced from:sqlite3

      +[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,此時問題就迎刃而解了.

相關文章
相關標籤/搜索