Xcode cannot preview in this file - connection interrupted

I was building an Uber clone. Everything was working correctly until I've shutted down my macbook. Previews aren't working anymore, I've tried disabling automatically refresh canvas which was suggested on the Developer Forums but didn't work. Simulator works perfectly but preview doesn't work. This is the report:


Translated Report (Full Report Below)

Incident Identifier: 9AF702A3-F5D8-442D-8E58-4995B165CA07 CrashReporter Key: F2A377D6-6139-ACFF-8C11-A1868E07F8C8 Hardware Model: MacBookPro17,1 Process: Uber Clone [21688] Version: 1.0 (1) Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd_sim [21356] Coalition: com.apple.CoreSimulator.SimDevice.66613A95-45EF-456F-9D45-726FE4E96A46 [3350] Responsible Process: SimulatorTrampoline [1000]

Date/Time: 2023-01-31 21:01:52.3951 +0300 Launch Time: 2023-01-31 21:01:51.2819 +0300 OS Version: macOS 13.0 (22A380) Release Type: User Report Version: 104

Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000001, 0x000000018bd55174 Termination Reason: SIGNAL 5 Trace/BPT trap: 5 Terminating Process: exc handler [21688]

Triggered by Thread: 0

Kernel Triage: VM - pmap_enter retried due to resource shortage

Hi,

Sorry to hear you are having problems getting previews working.

To start from a fresh slate you can use the terminal app and run xcrun simctl —set previews delete all.

If that still doesn’t resolve issue then probably best next step will be to file a feedback with diagnostics. We will need the diagnostics Xcode Previews generates in order to make sure we understand the error the previews system is encountering.

If you are having issues with macOS, catalyst or on-device iOS previews then download and install the logging profile for your device. Instructions and profiles are available here: https://developer.apple.com/bug-reporting/profiles-and-logs/?name=swift Attach the sysdiagnose to the bug report as well as the diagnostics using the instructions below.

Then when you get an error in Xcode Previews, an error banner appears in the canvas

  1. Click the “Diagnostics” button in that banner (or if the banner is missing you can use the menu: Editor > Canvas > Diagnostics)
  2. In the sheet that appears, click “Generate Report” in the bottom left of the sheet
  3. Attach (or make from the folder) the resulting zip file to the bug (will be named something like previews-diagnostics-0123456789.zip)
Xcode cannot preview in this file - connection interrupted
 
 
Q