error: in auto-import: failed to get module from AST context:
I was able to figure out a work around from this article:
Validating In-App Purchase Receipts Locally in 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.
Swift had fatal errors constructing the ast context for this module
To fix this I manually migrated all my files and settings to a new xcode project. Nothing else worked. There is probably a better fix but I couldn't spend any more time looking for it.
`Error creating target Swift AST context: (null)` in REPL
To see your current Xcode path:
xcode-select -p
Mine was an old path:
/Applications/Xcode.app/Contents/Developer
Then update this path via:
sudo xcode-select -s /Library/Developer/CommandLineTools
Xcode 14 po returns error in debug console
Carthage was the problem of broken debug. When building dependencies on another Mac, the debugger didn`t work. When building on my Mac, the debugger worked
So we decided to transfer all Carthage dependencies to SPM and now debugger works fine :)
Carthage issue link:
https://github.com/Carthage/Carthage/issues/924
Related Topics
Get Png Representation of Nsimage in Swift
How to Find Realm File Location of a MAC App
Override UIgesturerecognizer Touchesbegan
How to Map Over The Values of Zip2
Detect When a Custom Cell Is Selected from Within The Cell Itself
What Does an Underscore "_" Mean in Swift
Vapor 3 - How to Check for Similar Email Before Saving Object
Difference Between Userdefaults() and Userdefaults.Standard
Xcode 9.2 Is Not Showing Swift 4.1
Switch to Match Multiple Cases from Optionsettype
Uisearchcontroller Searchbar Misaligns While Active During Rotation
How to Put View on Top of All Other Views in Swiftui
Ckasset in Server Record Contains No Fileurl, Cannot Even Check for Nil