有没有人遇到过这个问题?任何人都可以提供答案吗?
尽管回答了我的第一个问题,但我会再试一次:
“Beginning iOS 6 Development”一书提供的代码(不是我的代码)在 Xcode IDE 中生成以下错误消息
ld: warning: ignoring file /Users/myusernamehere/Desktop/Xcode4/SQLitePersistence/libsqlite3.dylib, missing required architecture i386 in file /Users/myusernamehere/Desktop/Xcode4/SQLitePersistence/libsqlite3.dylib (2 slices)
Undefined symbols for architecture i386:
"_sqlite3_bind_int", referenced from:
-[ViewController applicationWillResignActive:] in ViewController.o
"_sqlite3_bind_text", referenced from:
-[ViewController applicationWillResignActive:] in ViewController.o
"_sqlite3_close", referenced from:
-[ViewController viewDidLoad] in ViewController.o
-[ViewController applicationWillResignActive:] in ViewController.o
"_sqlite3_column_int", referenced from:
-[ViewController viewDidLoad] in ViewController.o
"_sqlite3_column_text", referenced from:
-[ViewController viewDidLoad] in ViewController.o
"_sqlite3_exec", referenced from:
-[ViewController viewDidLoad] in ViewController.o
等等
这是从书中下载的代码而不是我的代码。我已经使用终端验证 sqlite3 在我的机器上
Last login: Thu Mar 21 10:19:39 on ttys000
iMac1024:~ myusernamehere$ which sqlite3
/usr/bin/sqlite3
再一次 有人遇到过这个问题吗?你能在这里提供解决方案吗?
当我第一次开始专业地编写软件时,我不是在寻找关于我没有提交错误或偏离主题的评论或任何其他仍在护理的人的无益评论。