2013-12-23 70 views
1

只要按照教程http://sqlcipher.net/ios-tutorialSQLCipher編譯錯誤

然而,當我在調試模式遵守我的應用程序,該錯誤信息是

Undefined symbols for architecture i386: 
_SecRandomCopyBytes", referenced from: 
    _sqlcipher_cc_random in libsqlcipher.a(sqlite3.o) 

什麼問題,請幫幫我,謝謝。

+0

您可能忘了將Security.framework添加到您的項目中。 –

+0

你是對的!謝謝!但我在這裏有一個問題,子項目「sqlcipher.xcodeproj」已經涉及security.framework,我的應用程序使用libsqlcipher.a,爲什麼我需要將security.framework添加到框架中。 – chenakira

回答

2

感謝Martin R

libsqlcipher.a於「Security.Framework」編譯靜態庫,

所以使用這個靜態庫,你的項目必須添加「Security.framework」的鏈接庫