2012-12-24 31 views
2

我有一個問題大樓sqlcipherxcode 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: enter image description here sqlcipherenter image description here

我真的有種陷在這裏:(有誰有一個提示,我

+0

斯蒂芬·隆巴多(sqlcipher)將看看它(如果它是一個錯誤) 。結果可以追溯到:https://github.com/sqlcipher/sqlcipher/issues/44 – jeven

+0

我有同樣的問題。我已將我的評論添加到[post](https://github.com/sqlcipher/sqlcipher/issues/44)。等待一個答覆。希望Stephen能給出一些很好的建議。 –

回答

2

我有一個非常類似的問題?之前,嘗試刪除armv7s並僅保留armv7

+0

嗨,非常感謝你的回答,它似乎能夠工作,但它仍然會在iPhone 5(armv7s)上運行?我沒有iPhone 5只有iPhone 4s。 – jeven

+0

當然,AppStore上有很多應用程序只是爲armv7構建的,而且它們工作得很好:) – Ismael

+0

...然後我想它已經解決了:D謝謝Ismael(我不知道爲什麼我可以'nt在google上找到它) – jeven

2

添加libsqlite3.dylib構建階段'Liraries名單。

選擇項目目標 - >構建階段:

添加libsqlite3.dylib鏈接二進制與圖書館

+0

是的!這是我的問題。但是我必須添加libsqlcipher.a,而不是libsqlite3.dylib。請注意,這個問題是針對SQL密碼的。但是非常類似的修復,謝謝。 – georgiecasey