xcode4.5.2でsqlcipherを構築する際に問題が発生しました。基本的に、http://mobileorchard.com/tutorial-iphone-sqlite-encryption-with-sqlcipher/およびhttp://sqlcipher.net/ios-tutorial/の例に従いました。残念ながら、ssllibとsqlcipherlibは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:
私は本当にここで立ち往生しています:(誰かが私にヒントを持っていますか?