将构建系统从旧构建系统更改为新构建系统时,发生上述错误。我的代码如下。
+ (NSString *) sign:(NSString*) dataString returnRaw:(BOOL)returnRaw{
ERR_load_crypto_strings(); //Error Occurs in this line
int retEr;
char* text = (char*) [dataString UTF8String];
unsigned char *data;
.....
最佳答案
此错误消息告诉您未找到该函数。 要解决它,您需要添加带有声明函数的头文件名称的 #import 语句。
例如:#import <openssl/ssl.h>
如果它在一个单独的框架中,或者 #import "ssl.h"
如果它在同一个包中。
关于ios - 函数 'ERR_load_crypto_strings' 的隐式声明在 Xcode 中的 C99 中无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59609639/