Post

Replies

Boosts

Views

Activity

Reply to Error when debugging: Cannot create Swift scratch context
I'm experiencing the same problem – getting Cannot create Swift scratch context (couldn't create a ClangImporter) in console when I hit the breakpoint and then lldb does nothing when I run po someVar. Few things important to note: I'm on Catalina 10.15.7 (same issue was on 10.15.6). Initially this issue appeared in Xcode 12.0.1, but not after I updated to it. I can swear it was working just fine until at some point it suddenly stopped working (no updates happened in between). It has nothing to do with the project I'm running. I tried fresh new iOS and macOS projects, same issue everywhere. I downloaded Xcode 12.2 beta 2 and the same problems happens there This is highly frustrating issue that makes development 10x harder and I'm desperate to find any kind of solution. I'm happy to help any Apple engineer with resolving it, I will send logs and whatever they might need. I also submitted a ticket via Feedback Assistant: FB8790427
Oct ’20