XCode 15.2 - repeated crashes when open any file

Hi Developers. My 15.2 Xcode happend when evey time I open file and it will crash.

I did try several way to fix but it is not work

  • unzip file again which I download from apple Developer website
  • Close my Xcode and mac air
  • Delete DeriveData and Archies file

did anyone happend the same situation like me !?

here is the erro report

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Xcode [29424]
Path:                  /Users/USER/Desktop/*/Xcode_15.2.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               15.2 (22503)
Build Info:            IDEApplication-22503000000000000~3 (15C500b)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2024-03-01 14:05:53.2309 +0800
OS Version:            macOS 13.5.1 (22G90)
Report Version:        12
Anonymous UUID:        A9F3965E-8D53-1197-4023-A969DB15E614


Time Awake Since Boot: 9300 seconds

System Integrity Protection: enabled

Crashed Thread:        32  Dispatch queue: SDK Loading

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000001, 0x0000000124bf6aa4

Termination Reason:    Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process:   exc handler [29424]

Thread 0::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x1a04edc8c kevent_id + 8
1   libdispatch.dylib             	       0x1a039f8dc _dispatch_kq_poll + 228
2   libdispatch.dylib             	       0x1a03a02a0 _dispatch_event_loop_wait_for_ownership + 436
3   libdispatch.dylib             	       0x1a038bc4c __DISPATCH_WAIT_FOR_QUEUE__ + 340
4   libdispatch.dylib             	       0x1a038b814 _dispatch_sync_f_slow + 148
5   DVTFoundation                 	       0x1049edd54 DVTDispatchBarrierSync + 148
6   DVTFoundation                 	       0x1049c9e88 -[DVTDispatchLock performLockedBlock:] + 60
7   DVTFoundation                 	       0x1049ca504 -[DVTDispatchLock_Recursive performLockedBlock:] + 192
8   DVTFoundation                 	       0x104814234 -[DVTExtension _valueForKey:inParameterData:usingSchema:assertingOnError:error:] + 344
9   DVTFoundation                 	       0x104814464 -[DVTExtension valueForKey:] + 136
10  IDEKit                        	       0x10921d35c -[IDEEditorGeniusResults _doFindGeniusResults] + 428
11  Foundation                    	       0x1a159f1b4 __NSFireDelayedPerform + 372
12  CoreFoundation                	       0x1a06243c8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
13  CoreFoundation                	       0x1a0624070 __CFRunLoopDoTimer + 940
14  CoreFoundation                	       0x1a0623bc8 __CFRunLoopDoTimers + 356
15  CoreFoundation                	       0x1a0609348 __CFRunLoopRun + 1852
16  CoreFoundation                	       0x1a06084b8 CFRunLoopRunSpecific + 612
17  HIToolbox                     	       0x1a9e5adf0 RunCurrentEventLoopInMode + 292
18  HIToolbox                     	       0x1a9e5aa80 ReceiveNextEventCommon + 220
19  HIToolbox                     	       0x1a9e5a984 _BlockUntilNextEventMatchingListInModeWithFilter + 76
20  AppKit                        	       0x1a382f97c _DPSNextEvent + 636
21  AppKit                        	       0x1a382eb18 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716
22  DVTKit                        	       0x10526726c -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 300
23  AppKit                        	       0x1a3822f7c -[NSApplication run] + 464
24  DVTKit                        	       0x105266538 -[DVTApplication run] + 60
25  AppKit                        	       0x1a37fa3cc NSApplicationMain + 880
26  dyld                          	       0x1a01d3f28 start + 2236

Thread 1::  Dispatch queue: IB.LaunchingQueue.IBCocoaTouchToolManager
0   libsystem_kernel.dylib        	       0x1a04edc8c kevent_id + 8
1   libdispatch.dylib             	       0x1a039f8dc _dispatch_kq_poll + 228
2   libdispatch.dylib             	       0x1a03a02a0 _dispatch_event_loop_wait_for_ownership + 436
3   libdispatch.dylib             	       0x1a038bc4c __DISPATCH_WAIT_FOR_QUEUE__ + 340
4   libdispatch.dylib             	       0x1a038b814 _dispatch_sync_f_slow + 148
5   CoreSimulator                 	       0x113e82a30 -[SimDevice bootstrapQueueSync:] + 180
6   CoreSimulator                 	       0x113e6cfcc -[SimDevice bootWithOptions:error:] + 200

Thanks for any help

"Path: /Users/USER/Desktop/*/Xcode_15.2.app/Contents/MacOS/Xcode"

Maybe the * is causing Xcode to crash. In my case, there is a document with a Chinese name in the path, such as "Desktop/中文/Xcode_15.2.app". Changing the path to be in English might help.

Much Thanks!!!!! It works. I moved my Xcode install file into Desktop and now I can build.

XCode 15.2 - repeated crashes when open any file
 
 
Q