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,此时问题就迎刃而解了.