[英]error: in auto-import: failed to get module from AST context:
I installed OpenSSL via CocoaPods and it all works fine, except now I can not use PO in the debugger to view variables at a breakpoint. 我通过CocoaPods安装了OpenSSL,一切正常,但现在我不能在调试器中使用PO来查看断点处的变量。 Below is output from a sample program I was learning from.
以下是我正在学习的示例程序的输出。
Can anyone tell me what I am doing wrong? 谁能告诉我我做错了什么? This is a swift 4 project.
这是一个快速的4项目。 I follow the instructions from this tutorial:
我按照本教程中的说明操作:
Local Receipt Validation for iOS in Swift From Start to Finish Swift中从开始到结束的iOS本地收据验证
(lldb) po self
warning: Swift error in module SwiftyLocalReceiptValidatorDemo. 警告:模块SwiftyLocalReceiptValidatorDemo中的Swift错误。 Debug info from this module will be unavailable in the debugger.
调试器中将无法使用此模块的调试信息。
error: in auto-import: 错误:在自动导入中:
I was able to figure out a work around from this article: 我能够从这篇文章中找到一个解决方法:
Validating In-App Purchase Receipts Locally in Swift! 在Swift中本地验证应用程序内购买收据!
Turns out if I comment out the line: 如果我注释掉这条线,原来是这样的:
int (*rsa_mod_exp) (BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx);
in the rsa.h header file, the issues with using PO to view variables is gone. 在rsa.h头文件中,使用PO查看变量的问题已经消失。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.