我正在使用 libsqlite3.dylib 并在编译我的项目时收到以下错误。
ld: warning: ignoring file /Users/dcdmc/Documents/Beginning iPhone 5 Dev/Persistence copy/libsqlite3.dylib,
missing required architecture i386 in file
Undefined symbols for architecture i386:
"_sqlite3_open", referenced from:
-[OJViewController viewDidLoad] in OJViewController.o
-[OJViewController applicationWillResignActive:] in OJViewController.o
"_sqlite3_close", referenced from:
-[OJViewController viewDidLoad] in OJViewController.o
-[OJViewController applicationWillResignActive:] in OJViewController.o
"_sqlite3_exec", referenced from:
-[OJViewController viewDidLoad] in OJViewController.o
"_sqlite3_prepare_v2", referenced from:
-[OJViewController viewDidLoad] in OJViewController.o
-[OJViewController applicationWillResignActive:] in OJViewController.o
"_sqlite3_step", referenced from:
-[OJViewController viewDidLoad] in OJViewController.o
-[OJViewController applicationWillResignActive:] in OJViewController.o
"_sqlite3_column_int", referenced from:
-[OJViewController viewDidLoad] in OJViewController.o
"_sqlite3_column_text", referenced from:
-[OJViewController viewDidLoad] in OJViewController.o
"_sqlite3_finalize", referenced from:
-[OJViewController viewDidLoad] in OJViewController.o
-[OJViewController applicationWillResignActive:] in OJViewController.o
"_sqlite3_bind_int", referenced from:
-[OJViewController applicationWillResignActive:] in OJViewController.o
"_sqlite3_bind_text", referenced from:
-[OJViewController applicationWillResignActive:] in OJViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)