我有一個問題大樓sqlcipher與xcode 4.5.2。基本上我遵循http://mobileorchard.com/tutorial-iphone-sqlite-encryption-with-sqlcipher/和http://sqlcipher.net/ios-tutorial/的例子。不幸的是,我最終收到一條消息,告訴我ssl lib和sqlcipher lib不是爲armv7s構建的。ios6中的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:
我真的有種陷在這裏:(有誰有一個提示,我
斯蒂芬·隆巴多(sqlcipher)將看看它(如果它是一個錯誤) 。結果可以追溯到:https://github.com/sqlcipher/sqlcipher/issues/44 – jeven
我有同樣的問題。我已將我的評論添加到[post](https://github.com/sqlcipher/sqlcipher/issues/44)。等待一個答覆。希望Stephen能給出一些很好的建議。 –