我进口RNCryptor,它可以在这里找到: https://github.com/rnapier/RNCryptor到我的应用程序。 不过,我已经得到三个错误与此在日志中。
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)
我看到的是,当目标不包括进口类,这是正常引起的,但我已经检查了构建阶段,所有导入的类都在那里。 我不知道是什么原因造成这一点,我没有碰过任何这些类的代码。 我还清理目标数次。