Xcode crashes the system when building iOS project

Greetings,

Xcode crashes the system and forces macbook to reboot. Firstly, it shows pink rectangles in random places for 5 seconds and then reboots the computer.

All I'm trying to do is to just build a simple iOS project in Xcode.

This problem started out of nowhere. I tried updating the macbook's OS and Xcode to 15.1, but without luck.

Could you please help?

Here's the error after the reboot:

Debugger message: panic
Memory ID: 0x1
OS release type: User
OS version: 23C71
Kernel version: Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000
Fileset Kernelcache UUID: 89516519121B13EC9D63007F55C1F1FD
Kernel UUID: 3DE22D7D-A5F5-3B17-84BD-A58164C8B09B
Boot session UUID: 70C4D273-3858-48D5-8585-A96A76406DD5
iBoot version: iBoot-10151.61.4
secure boot?: YES
roots installed: 0
Paniclog version: 14
KernelCache slide: 0x000000000e964000
KernelCache base:  0xfffffe0015968000
Kernel slide:      0x000000000e96c000
Kernel text base:  0xfffffe0015970000
Kernel text exec slide: 0x000000000fe98000
Kernel text exec base:  0xfffffe0016e9c000
mach_absolute_time: 0x3547c787e
Epoch Time:        sec       usec
  Boot    : 0x658edbb0 0x00080d7c
  Sleep   : 0x00000000 0x00000000
  Wake    : 0x00000000 0x00000000
  Calendar: 0x658eddfd 0x00030a1e

Zone info:
  Zone map: 0xfffffe1006b34000 - 0xfffffe3006b34000
  . VM    : 0xfffffe1006b34000 - 0xfffffe14d3800000
  . RO    : 0xfffffe14d3800000 - 0xfffffe166d198000
  . GEN0  : 0xfffffe166d198000 - 0xfffffe1b39e64000
  . GEN1  : 0xfffffe1b39e64000 - 0xfffffe2006b30000
  . GEN2  : 0xfffffe2006b30000 - 0xfffffe24d37fc000
  . GEN3  : 0xfffffe24d37fc000 - 0xfffffe29a04c8000
  . DATA  : 0xfffffe29a04c8000 - 0xfffffe3006b34000
  Metadata: 0xfffffe300ab44000 - 0xfffffe3012b44000
  Bitmaps : 0xfffffe3012b44000 - 0xfffffe301587c000
  Extra   : 0 - 0

TPIDRx_ELy = {1: 0xfffffe24d5928040  0: 0x0000000000000001  0ro: 0x00000001e063d0e0 }
CORE 0 PVH locks held: None
CORE 1 PVH locks held: None
CORE 2 PVH locks held: None
CORE 3 PVH locks held: None
CORE 4 PVH locks held: None
CORE 5 PVH locks held: None
CORE 6 PVH locks held: None
CORE 7 PVH locks held: None
CORE 8 PVH locks held: None
CORE 9 PVH locks held: None
CORE 0: PC=0xfffffe0016eacec8, LR=0xfffffe0016eacec8, FP=0x0000000000000000
CORE 1 is the one that panicked. Check the full backtrace for details.
CORE 2: PC=0x000000010347711c, LR=0x0000000103f45c04, FP=0x000000016d652de0
CORE 3: PC=0x00000001029cece0, LR=0x0000000103a5a924, FP=0x000000016dc13c30
CORE 4: PC=0x00000001046e7638, LR=0x00000001059ab694, FP=0x000000016bccb890
CORE 5: PC=0x000000010718c7e4, LR=0x0000000107188558, FP=0x000000016b602570
CORE 6: PC=0x00000001054d4540, LR=0x0000000106e7c6fc, FP=0x000000016b1eeb10
CORE 7: PC=0xfffffe0017023b2c, LR=0xfffffe001a06d5bc, FP=0xfffffe303389b570
CORE 8: PC=0xfffffe001a06b54c, LR=0xfffffe001751c870, FP=0xfffffe3033c83bf0
CORE 9: PC=0x0000000189e8d43c, LR=0x0000000189c914b0, FP=0x000000016f7542f0
Compressor Info: 2% of compressed pages limit (OK) and 1% of segments limit (OK) with 0 swapfiles and OK swap space
Panicked task 0xfffffe166e1ab4a8: 2738 pages, 1 threads: pid 6073: clang
Panicked thread: 0xfffffe24d5928040, backtrace: 0xfffffe463c21f840, tid: 22505
		  lr: 0xfffffe0016ef558c  fp: 0xfffffe463c21f8d0
		  lr: 0xfffffe0017040108  fp: 0xfffffe463c21f940
		  lr: 0xfffffe001703e568  fp: 0xfffffe463c21fa30
		  lr: 0xfffffe0016ea3b68  fp: 0xfffffe463c21fa40
		  lr: 0xfffffe0016ef4e68  fp: 0xfffffe463c21fdf0
		  lr: 0xfffffe0017708548  fp: 0xfffffe463c21fe10
		  lr: 0xfffffe00187398c4  fp: 0xfffffe463c21feb0
		  lr: 0xfffffe001873a490  fp: 0xfffffe463c21ff30
		  lr: 0xfffffe0018299cb8  fp: 0xfffffe463c21ffd0
		  lr: 0xfffffe0017041970  fp: 0xfffffe463c21ffe0
		  lr: 0xfffffe0016ea3bdc  fp: 0xfffffe463c21fff0
      Kernel Extensions in backtrace:
         com.apple.driver.AppleT6000(1.0)[48F5E09B-B638-33F0-8AA8-5239205F4D35]@0xfffffe0018734470->0xfffffe0018744f13
            dependency: com.apple.driver.AppleARMPlatform(1.0.2)[9FC0A536-5BC6-33D5-911A-5A46BDDBBCEF]@0xfffffe00178abe10->0xfffffe00178fe94b
            dependency: com.apple.driver.AppleFireStormErrorHandler(1)[69F67A54-48C8-39A4-ADF4-8905CB6B2534]@0xfffffe00180245b0->0xfffffe00180254c3
            dependency: com.apple.driver.AppleSMC(3.1.9)[32E810FB-A3A9-36E3-BA21-928920F1A357]@0xfffffe001861b570->0xfffffe001863ff33
            dependency: com.apple.iokit.IOReportFamily(47)[4F280A37-133C-36E1-928A-68791A3C793E]@0xfffffe0019679b40->0xfffffe001967cbd3
            dependency: com.apple.iokit.IOUSBHostFamily(1.2)[8CFCEC86-0DF7-3C9D-8193-E6E9F185B372]@0xfffffe0019a111e0->0xfffffe0019ac2bb3
         com.apple.driver.AppleInterruptControllerV2(1.0d1)[A1A4C713-2CF8-3485-8348-49F483D98B7B]@0xfffffe00182981f0->0xfffffe001829aa5f
            dependency: com.apple.driver.AppleARMPlatform(1.0.2)[9FC0A536-5BC6-33D5-911A-5A46BDDBBCEF]@0xfffffe00178abe10->0xfffffe00178fe94b

last started kext at 933464476: com.apple.driver.usb.cdc.ncm	5.0.0 (addr 0xfffffe0015f777f0, size 5098)
loaded kexts:
com.apple.filesystems.autofs	3.0
com.apple.driver.AppleTopCaseHIDEventDriver	7400.26
com.apple.driver.AppleBiometricServices	1
com.apple.driver.CoreKDL	1
com.apple.driver.DiskImages.ReadWriteDiskImage	493.0.0
com.apple.driver.DiskImages.UDIFDiskImage	493.0.0
com.apple.driver.DiskImages.RAMBackingStore	493.0.0
com.apple.driver.DiskImages.FileBackingStore	493.0.0
com.apple.driver.BCMWLANFirmware4387.Hashstore	1
com.apple.driver.SEPHibernation	1
com.apple.driver.AppleUSBDeviceNCM	5.0.0
com.apple.driver.AppleFileSystemDriver	3.0.1
com.apple.nke.l2tp	1.9

*** part of this is omitted due to post 7000-symbol length limit ***

com.apple.iokit.IOSlowAdaptiveClockingFamily	1.0.0
com.apple.iokit.IOReportFamily	47
com.apple.security.quarantine	4
com.apple.security.sandbox	300.0
com.apple.iokit.IOStorageFamily	2.1
com.apple.kext.AppleMatch	1.0.0d1
com.apple.driver.AppleMobileFileIntegrity	1.0.5
com.apple.iokit.CoreAnalyticsFamily	1
com.apple.security.AppleImage4	5.0.0
com.apple.kext.CoreTrust	1
com.apple.iokit.IOCryptoAcceleratorFamily	1.0.1
com.apple.kec.pthread	1
com.apple.kec.Libm	1
com.apple.kec.Compression	1.0
com.apple.kec.corecrypto	14.0



** Stackshot Succeeded ** Bytes Traced 464225 (Uncompressed 1154432) **

FYI: here's the very first line of kernel panic log: panic(cpu 0 caller 0xfffffe00246bd8c4): "AMCC2 PLANE3 MCC_DAT_MULTI_BITS_ERR error: INTSTS0 0x00000006 ECCMULTIBITSERRLOG(Bank/Way/Entry) 0x2630(0x2/0x6/0x30)" @AppleT6000PlatformErrorHandler.cpp:2500

Here's the full log, I'm sorry I didn't include it properly the first time:

Xcode crashes the system when building iOS project
 
 
Q