Swift Error: Failed to Get Module 'My_App' from Ast Context

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



Leave a reply



Submit