XCode 9:RMAppReceipt

时间:2017-09-21 09:34:52

标签: ios xcode openssl in-app-purchase arm64

我正在使用RMAppReceipt来验证应用程序内的应用程序购买,并且在更新到XCode 9之前一切正常。我有RMAppReceipt.h,RMAppReceipt.m,RMAppStoreReceiptVerifier.h& RMAppStoreReceiptVerifier.m文件添加到我的项目中,因为此https://github.com/robotmedia/RMStore/wiki/Receipt-verification#adding-openssl页面与“OpenSSL-Universal”一起指示了这些文件。吊舱。

这在XCode 8.3中运行良好但我在ProjectNameUITests文件夹中将代码更新到Swift 4.0后现在出现以下错误:

Apple Mach-O Linker(Id)错误:

Undefined symbols for architecture arm64:
"_X509_STORE_add_cert", referenced from:
  +[RMAppReceipt verifyPCKS7:withCertificateData:] in RMAppReceipt.o
"_ASN1_get_object", referenced from:
  +[RMAppReceipt enumerateASN1Attributes:length:usingBlock:] in RMAppReceipt.o
  _RMASN1ReadInteger in RMAppReceipt.o
  _RMASN1ReadOctectString in RMAppReceipt.o
  _RMASN1ReadString in RMAppReceipt.o
"_BIO_new", referenced from:
  +[RMAppReceipt verifyPCKS7:withCertificateData:] in RMAppReceipt.o
"_X509_free", referenced from:
  +[RMAppReceipt verifyPCKS7:withCertificateData:] in RMAppReceipt.o
"_d2i_X509", referenced from:
  +[RMAppReceipt verifyPCKS7:withCertificateData:] in RMAppReceipt.o
"_d2i_PKCS7_fp", referenced from:
  +[RMAppReceipt dataFromPCKS7Path:] in RMAppReceipt.o
"_PKCS7_verify", referenced from:
  +[RMAppReceipt verifyPCKS7:withCertificateData:] in RMAppReceipt.o
"_X509_STORE_free", referenced from:
  +[RMAppReceipt verifyPCKS7:withCertificateData:] in RMAppReceipt.o
"_BIO_free", referenced from:
  +[RMAppReceipt verifyPCKS7:withCertificateData:] in RMAppReceipt.o
"_EVP_cleanup", referenced from:
  +[RMAppReceipt verifyPCKS7:withCertificateData:] in RMAppReceipt.o
"_X509_STORE_new", referenced from:
  +[RMAppReceipt verifyPCKS7:withCertificateData:] in RMAppReceipt.o
"_OBJ_obj2nid", referenced from:
  +[RMAppReceipt dataFromPCKS7Path:] in RMAppReceipt.o
"_BIO_s_mem", referenced from:
  +[RMAppReceipt verifyPCKS7:withCertificateData:] in RMAppReceipt.o
"_OpenSSL_add_all_digests", referenced from:
  +[RMAppReceipt verifyPCKS7:withCertificateData:] in RMAppReceipt.o
"_PKCS7_free", referenced from:
  +[RMAppReceipt dataFromPCKS7Path:] in RMAppReceipt.o
"_SHA1", referenced from:
  -[RMAppReceipt verifyReceiptHash] in RMAppReceipt.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

0 个答案:

没有答案