我在使用xcode 4.5.2构建sqlcipher时遇到问题。基本上我遵循了http://mobileorchard.com/tutorial-iphone-sqlite-encryption-with-sqlcipher/和http://sqlcipher.net/ios-tutorial/上的示例。不幸的是,我最终收到一条消息,告诉我 ssl 库和 sqlcipher 库不是为 armv7s 构建的。
错误信息:
ld: warning: ignoring file /Users/jeven/Library/Developer/<...>/Debug-iphoneos/libsqlcipher.a, file was built for archive which is not the architecture being linked (armv7s): /Users/jeven/Library/Developer/<...>/Debug-iphoneos/libsqlcipher.a
ld: warning: ignoring file /Users/jeven/Library/Developer/<...>/Debug-iphoneos/libcrypto.a, file was built for archive which is not the architecture being linked (armv7s): /Users/jeven/Library/Developer/<...>/Debug-iphoneos/libcrypto.a
Undefined symbols for architecture armv7s:
"_sqlite3_prepare_v2", referenced from:
...
我知道这已经发布了几次,但我已经更改了 openssl 和 sqlcipher 项目的目标架构,正如您在以下屏幕截图中看到的那样。
openssl: sqlcipher:
我真的有点卡在这里:(有人对我有提示吗?