【iOS】Swift3. XCode8使用SQLite3时报错:Apple Mach-O Linker Error “_sqlite3_exec”, referenced from: “_sqlite_open”, referenced from: “_sqlite3_prepare_v2”, referenced from

报错:Apple Mach-O Linker Error “_sqlite3_exec”, referenced from: “_sqlite_open”, referenced from: “_sqlite3_prepare_v2”, referenced from “_sqlite3_column_count” referenced From:

snip20161203_89

点击项目名称 – Linked Frameworks and Libraries – “+” – 搜索“libsqlite3.dylib” – 然后点击Add

snip20161202_59 snip20161202_62