简体   繁体   English

错误:在自动导入中:无法从AST上下文获取模块:

[英]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.

相关问题 iOS-从图片库自动导入新图像 - iOS - Auto-Import new images from image gallery AST 反序列化问题和构建模块错误 - AST Deserialization issue and build module error AppCenter 获取模块失败并显示错误 65 - AppCenter failed to get module and shows error 65 从 Cocoapods 迁移到 Swift Package 管理器但导入模块失败 - Migrating from Cocoapods to Swift Package Manager but import module failed Xcode 构建失败,致命错误:找不到模块“firebase_auth”@import firebase_auth; - Xcode Build failed,fatal error: module 'firebase_auth' not found @import firebase_auth; 无法导入桥接头错误 - Failed to Import Bridging Header Error EZAudio CocoaPods模块导入错误 - EZAudio CocoaPods module import error 从Pod安装框架后,无法在Swift项目中的类中导入,抛出错误,没有这样的模块swift导入 - After installed framework from pods, not able to import in class in Swift project,Throwing an error no such module swift import 有没有办法从 React Native 本地模块访问 iOS 中的 JavaScriptCore 上下文? - Is there way to get access to the JavaScriptCore context inside iOS from React Native native module? 如果将主要目标导入XCTest,为什么会出现“链接器命令失败”错误? - Why do I get “Linker command failed” error if I import my main target into my XCTest?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM