本文介绍了导入RNCryptor后,架构armv7的未定义符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我导入了RNCryptor,可以在这里找到:到我的应用程序。
I imported RNCryptor, which can be found here: https://github.com/rnapier/RNCryptor into my app. However, I've been getting three errors with this in the log.
Undefined symbols for architecture armv7:
"_SecRandomCopyBytes", referenced from:
+[RNCryptor randomDataOfLength:] in RNCryptor.o
"_kSecRandomDefault", referenced from:
+[RNCryptor randomDataOfLength:] in RNCryptor.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我看到这通常是由于导入的类没有包括在目标中,但我已经检查了构建阶段,所有导入的类都在那里。我不知道是什么原因造成这个,我没有触及任何这些类的代码。
I saw that this is normally caused when imported classes are not included in the target, but I have already checked the build phases, and all imported classes are in there. I do not know what is causing this, I have not touched the code of any of these classes. I have also cleaned the target several times.
推荐答案
确保添加了安全框架:
#import <Security/SecRandom.h>
这篇关于导入RNCryptor后,架构armv7的未定义符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!