我导入了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)
我发现这通常是由于目标文件中未包含导入的类所致,但我已经检查了构建阶段,所有导入的类都在其中。我不知道是什么原因造成的,我也没有修改过任何这些类的代码。我还多次清理了目标文件。