Xcode 15.3 will crash when open my project , someone please help

After updating to Xcode 15.3 , Xcode will crash soon after open my project , and my project works fine for years and after I reset Xcode to 15.2 . my project can work well . so I think this is a problem brought by Xcode 13

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

Process:               Xcode [26747]
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               15.3 (22618)
Build Info:            IDEApplication-22618000000000000~2 (15E204a)
App Item ID:           497799835
App External ID:       863955376
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2024-03-28 15:34:04.5862 +0800
OS Version:            macOS 14.1.1 (23B81)
Report Version:        12
Anonymous UUID:        0B2BF703-3E8D-CF6D-2498-8380353F5495


Time Awake Since Boot: 1400 seconds

System Integrity Protection: enabled

Crashed Thread:        0

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

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

Thread 0 Crashed:
0   libswiftCore.dylib            	       0x19b43065c _assertionFailure(_:_:file:line:flags:) + 268
1   IDEXCBuildSupportCore         	       0x178f5ea3c specialized _NativeDictionary.merge<A>(_:isUnique:uniquingKeysWith:) + 928
2   IDEXCBuildSupportCore         	       0x178f66320 specialized IDEXCBuildServiceBuildOperation.processEventStream(buildOperation:events:logger:context:) + 1164
3   IDEXCBuildSupportCore         	       0x178f6f885 closure #1 in closure #3 in IDEXCBuildServiceBuildOperation.performCoreBuild() + 1
4   IDEXCBuildSupportCore         	       0x178f62f5d partial apply for closure #1 in closure #3 in IDEXCBuildServiceBuildOperation.performCoreBuild() + 1
5   IDEXCBuildSupportCore         	       0x178f261b9 specialized thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A) + 1
6   IDEXCBuildSupportCore         	       0x178f26891 partial apply for specialized thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A) + 1
7   libswift_Concurrency.dylib    	       0x22ad89c7d completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) + 1
Answered by ximmyxiao in 786452022

XCode -> Settings->Locations->Derived Data->Advanced , set build location from Unique to Legacy ,will prevent the xcode crash

Same to me. Any solution can fix this?

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

Process:               Xcode [5345]
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               15.3 (22618)
Build Info:            IDEApplication-22618000000000000~2 (15E204a)
App Item ID:           497799835
App External ID:       863955376
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2024-04-01 11:00:31.7567 +0800
OS Version:            macOS 14.2.1 (23C71)
Report Version:        12
Anonymous UUID:        12B5D351-04E1-FC2E-6E01-37779E96AD84


Time Awake Since Boot: 5500 seconds

System Integrity Protection: enabled

Crashed Thread:        0

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

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

Thread 0 Crashed:
0   libswiftCore.dylib            	       0x198a511e8 _assertionFailure(_:_:file:line:flags:) + 268
1   IDEXCBuildSupportCore         	       0x2a46a6a3c specialized _NativeDictionary.merge<A>(_:isUnique:uniquingKeysWith:) + 928
2   IDEXCBuildSupportCore         	       0x2a46ae320 specialized IDEXCBuildServiceBuildOperation.processEventStream(buildOperation:events:logger:context:) + 1164
3   IDEXCBuildSupportCore         	       0x2a46b7885 closure #1 in closure #3 in IDEXCBuildServiceBuildOperation.performCoreBuild() + 1
4   IDEXCBuildSupportCore         	       0x2a46aaf5d partial apply for closure #1 in closure #3 in IDEXCBuildServiceBuildOperation.performCoreBuild() + 1
5   IDEXCBuildSupportCore         	       0x2a466e1b9 specialized thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A) + 1
6   IDEXCBuildSupportCore         	       0x2a466e891 partial apply for specialized thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A) + 1
7   libswift_Concurrency.dylib    	       0x22a203bf1 completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) + 1

Thread 1:
0   libsystem_pthread.dylib       	       0x189164e28 start_wqthread + 0

Process:               Xcode [23372]
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               15.3 (22618)
Build Info:            IDEApplication-22618000000000000~2 (15E204a)
App Item ID:           497799835
App External ID:       863955376
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2024-04-08 12:17:40.2432 +0800
OS Version:            macOS 14.4.1 (23E224)
Report Version:        12
Anonymous UUID:        BB1A5EC1-5D64-AB4D-6AF1-5256B9493C2D


Time Awake Since Boot: 2400 seconds

System Integrity Protection: enabled

Crashed Thread:        0

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

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

Thread 0 Crashed:
0   libswiftCore.dylib            	       0x1a01acee0 _assertionFailure(_:_:file:line:flags:) + 268
1   IDEXCBuildSupportCore         	       0x33635ea3c specialized _NativeDictionary.merge<A>(_:isUnique:uniquingKeysWith:) + 928
2   IDEXCBuildSupportCore         	       0x336366320 specialized IDEXCBuildServiceBuildOperation.processEventStream(buildOperation:events:logger:context:) + 1164
3   IDEXCBuildSupportCore         	       0x33636f885 closure #1 in closure #3 in IDEXCBuildServiceBuildOperation.performCoreBuild() + 1
4   IDEXCBuildSupportCore         	       0x336362f5d partial apply for closure #1 in closure #3 in IDEXCBuildServiceBuildOperation.performCoreBuild() + 1
5   IDEXCBuildSupportCore         	       0x3363261b9 specialized thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A) + 1
6   IDEXCBuildSupportCore         	       0x336326891 partial apply for specialized thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A) + 1
7   libswift_Concurrency.dylib    	       0x256baf0f9 completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) + 1

I have the same issue with one of our project.

Could the develop supporter to check out this issue?

The steps to reproduce this issue:

  1. Open the project
  2. Just waiting, then xcode will be indexing
  3. About 2 seconds later, it crashed.

Accepted Answer

XCode -> Settings->Locations->Derived Data->Advanced , set build location from Unique to Legacy ,will prevent the xcode crash

any updates?

Xcode 15.3 will crash when open my project , someone please help
 
 
Q