Xcode crashing when I'm trying to open my Xcode project

I archived my project and closed the Xcode then I tried to open my project again and Xcode had crashed. I couldn't find any solution. Do you have any opinion on why this happened?

Error:
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Xcode [940]
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               13.2.1 (19586)
Build Info:            IDEFrameworks-19586000000000000~2 (13C100)
App Item ID:           497799835
App External ID:       845961054
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2022-02-04 11:08:58.5470 +0300
OS Version:            macOS 12.2 (21D49)
Report Version:        12
Anonymous UUID:       


Time Awake Since Boot: 120 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000001, 0x000000019b02e818
Exception Note:        EXC_CORPSE_NOTIFY

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

Application Specific Information:
Swift/arm64e-apple-macos.swiftinterface:13494: Fatal error: Duplicate values for key: 'https://github.com/google/promises.git'
ProductBuildVersion: 13C100

Also, my all Xcode projects are crashing right now.

error: Duplicate values for key: 'https://github.com/google/promises.git'

Seems you have an issue in your git archive.

I tried to open my project again and Xcode had crashed

Please post a full crash report. See Posting a Crash Report for advice on how to do that.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Here is my crash report. Also, I had deleted and redownloaded the Xcode but still crashing.

@eskimo

I deleted all derived data files

Did you delete delete them? Or move them to the trash? If it’s the latter, does putting them back in their original place cause Xcode to crash again?

If so, we’d really appreciate you filing a bug about that, with a copy of that derived data and your project file. Based on your crash report it’s clear that Xcode has a trap in its SwiftPM support, and a reproducible case will help the Xcode folks track that down and fix it.

If you do file a bug, please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

For Xcode 13.2.1

  1. Go to ~/Library/Developer/Xcode/DerivedData
  2. Clean derived data
  3. Then open xcworkspace file

I suggest an extra step:

1.5 Save a copy of the derived data for future analysis

See my previous post for why I recommend this.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Xcode crashing when I'm trying to open my Xcode project
 
 
Q