1. 报错:rsa_private read error : private key is NULL
原因:私钥没有转成PKCS8
解决方法:
1)在RSADataSigner.m文件中 搜索代码 [result appendString:@"-----BEGIN PRIVATE KEY-----\n"]; 将其改成 [result appendString:@"-----BEGIN RSA PRIVATE KEY-----\n"];
2)在 RSADataSigner.m文件中 搜索代码 [result appendString:@"\n-----END PRIVATE KEY-----"]; 将其改成 [result appendString:@"\n-----END RSA PRIVATE KEY-----"];
2, 添加支付宝的 头文件 时 找不到
(4) 点击项目名称,点击“Build Settings”选项卡,在搜索框中,以关键字“search” 搜索,对“Header Search Paths”增加头文件路径:$(SRCROOT)/项目名 称。如果头文件信息已增加,可不必再增加
3.
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_Possession", referenced from:
objc-class-ref in PossessionStroe.o
(maybe you meant: _OBJC_CLASS_$_PossessionStroe)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
在网上搜了下,是相关的文件没有关联到对应的target,点击报错的类的实现文件,将其关联到target,右侧边栏的target membership