Xcode 12 Crash unexpectedly

When compile project on Xcode 12 it Crash and gives error of XCBBuildService quit unexpectedly.
This is the Crash Report

Process: XCBBuildService [36862]
Path: /Applications/Xcode.app/Contents/SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/MacOS/XCBBuildService
Identifier: XCBBuildService
Version: 12.1 (17140)
Build Info: XCBuild-17140000000000000~69 (12A7403)
Code Type: X86-64 (Native)
Parent Process: Xcode [36853]
Responsible: Xcode [36853]
User ID: 501

Date/Time: 2020-11-10 17:28:57.608 +0500
OS Version: Mac OS X 10.15.7 (19H15)
Report Version: 12
Anonymous UUID: 96D84FB1-AE33-8886-99E2-1CEB7C98F15F

Sleep/Wake UUID: B518F282-98E3-4189-BA74-293ED19FFF59

Time Awake Since Boot: 40000 seconds
Time Since Wake: 9100 seconds

System Integrity Protection: enabled

Crashed Thread: 14 Dispatch queue: XCBBuildSystem.OperationSystemAdaptor.queue

Exception Type: EXCCRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC
CORPSE_NOTIFY

Application Specific Information:
abort() called


Replies

Did you do an option- clean build Folder ?

Otherwise, try with Xcode 12.2.

sure, I tried

AppStore doesn't accept apps built with Xcode 12 anymore.

Sorry, I posted in the wrong thread, but still I got the same issue with the latest Xcode.

I fixed it by running:

defaults delete com.apple.dt.Xcode
defaults delete com.apple.dt.xcodebuild
defaults delete apple.preferences.extensions.XcodeSourceEditor