Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 架构armv7s的ios6未定义符号中的SQLCipher(架构已更改)_Iphone_Ios_Ios6_Sqlcipher - Fatal编程技术网

Iphone 架构armv7s的ios6未定义符号中的SQLCipher(架构已更改)

Iphone 架构armv7s的ios6未定义符号中的SQLCipher(架构已更改),iphone,ios,ios6,sqlcipher,Iphone,Ios,Ios6,Sqlcipher,我在使用xcode 4.5.2构建sqlcipher时遇到问题。基本上,我遵循了和的示例。不幸的是,最后我收到一条消息,告诉我ssl库和sqlcipher库不是为ARMV7构建的 错误消息: ld: warning: ignoring file /Users/jeven/Library/Developer/<...>/Debug-iphoneos/libsqlcipher.a, file was built for archive which is not the architect

我在使用xcode 4.5.2构建sqlcipher时遇到问题。基本上,我遵循了和的示例。不幸的是,最后我收到一条消息,告诉我ssl库和sqlcipher库不是为ARMV7构建的

错误消息:

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:


我真的有点困在这里:有人给我一个提示吗?

我以前也遇到过类似的问题,尝试删除armv7,只保留armv7

尝试将“仅构建活动体系结构”的“调试”设置为“否”!

将libsqlite3.dylib添加到构建阶段的Liraries列表中

选择项目目标->构建阶段:


添加libsqlite3.dylib将二进制文件与库链接起来

Hi,非常感谢您的回答,它似乎可以工作,但它是否仍能在iPhone 5 armv7s上运行?我没有iPhone5,只有iPhone4S。当然,AppStore上有很多应用程序都是为armv7开发的,它们工作得很好:。。。然后我猜问题解决了:D谢谢Ismael我不知道为什么我在Google上找不到它从sqlcipher中删除ARMV7没有起到作用-至少对我来说是这样。从主项目中删除ARMV7似乎不是理想的前进方向。还有其他想法吗?如果是bug,Stephen Lombardo sqlcipher会看一看。结果可以追溯到:我有同样的问题。我已经将我的评论添加到了。等待回答。希望Stephen能给出一些好的建议。+1在sqlcipher项目中将Build Active architectures设置为NO有帮助。是的!这是我的问题。但是我必须添加libsqlcipher.a,而不是libsqlite3.dylib。请注意,这个问题是针对SQL密码的。但是非常相似的修复,谢谢。