【发布时间】:2012-12-24 11:49:44
【问题描述】:
我在使用 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:
我真的有点卡在这里:(有人给我提示吗?
【问题讨论】:
-
Stephen Lombardo (sqlcipher) 将查看它(如果它是一个错误)。结果可追溯至:github.com/sqlcipher/sqlcipher/issues/44
-
我也有同样的问题。我已将我的 cmets 添加到 post。等待答案。希望斯蒂芬能提供一些好的意见。