Xcode Quits unexpectedly


Translated Report (Full Report Below)

Process: Xcode [3530] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 26.6 (24959) Build Info: IDEApplication-24959000000000000~2 (17F113) Code Type: ARM-64 (Native) Role: Background Parent Process: launchd [1] Coalition: com.apple.dt.Xcode [1786] User ID: 501

Date/Time: 2026-08-17 23:51:47.2077 +0100 Launch Time: 2026-08-17 23:51:47.0576 +0100 Hardware Model: MacBookPro18,2 OS Version: macOS 26.6.2 (25G83) Release Type: User

Crash Reporter Key: A48FA3EB-7CA7-3507-8300-E41E5EDD5284 Incident Identifier: 7B4676E3-9607-4890-B61E-04DE788BC3C3

Time Awake Since Boot: 1000 seconds

System Integrity Protection: enabled

Triggered by Thread: 0, Dispatch Queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000

Termination Reason: Namespace SIGNAL, Code 6, Abort trap: 6 Terminating Process: Xcode [3530]

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x189cb05e8 __pthread_kill + 8 1 libsystem_pthread.dylib 0x189ceb8d8 pthread_kill + 296 2 libsystem_c.dylib 0x189bf1978 abort + 148 3 libsystem_c.dylib 0x189bf1a94 abort_report_np + 84 4 Xcode 0x102238ed0 main.cold.1 + 36 5 Xcode 0x102238e1c main + 340 6 dyld 0x1899204e4 start + 6992

Thread 0 crashed with ARM Thread State (64-bit): x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000 x4: 0x0000000000000073 x5: 0x000000000000002e x6: 0x000000016dbc7248 x7: 0xfffff0003ffff800 x8: 0x05371949b50970d8 x9: 0x05371948437bd158 x10: 0x0000000000000002 x11: 0x00000000fffffffd x12: 0x0000000000000000 x13: 0x0000000000000000 x14: 0x0000000000000000 x15: 0x0000000000000000 x16: 0x0000000000000148 x17: 0x00000001f7d6b358 x18: 0x0000000000000000 x19: 0x0000000000000006 x20: 0x0000000000000103 x21: 0x00000001f672a260 x22: 0x0000000102a04ce0 x23: 0x00000001f6731908 x24: 0x0000000000000001 x25: 0x000000016dbc76a0 x26: 0x00000001f672ba70 x27: 0x0000000000000000 x28: 0x0000000000000000 fp: 0x000000016dbc73c0 lr: 0x0000000189ceb8d8 sp: 0x000000016dbc73a0 pc: 0x0000000189cb05e8 cpsr: 0x40001000 far: 0x0000000000000000 esr: 0x56000080 (Syscall)

Binary Images: 0x102238000 - 0x10223bfff com.apple.dt.Xcode (26.6) <8025d4bb-71ea-3f57-bade-2e3c847b6cf3> /Applications/Xcode.app/Contents/MacOS/Xcode 0x189ca7000 - 0x189ce42e7 libsystem_kernel.dylib () <c6a4a4cb-92e6-3baf-aae0-e8306259209a> /usr/lib/system/libsystem_kernel.dylib 0x189ce5000 - 0x189cf1b3b libsystem_pthread.dylib () <a373f0b0-9880-326a-88b4-dd8be4e33072> /usr/lib/system/libsystem_pthread.dylib 0x189b79000 - 0x189bfa1e7 libsystem_c.dylib () <d77ceb62-aff6-3cec-ba9b-4f057fbe2eb5> /usr/lib/system/libsystem_c.dylib 0x189900000 - 0x1899b34ff dyld () <74e52480-c2bd-3c8d-812d-95fe2b74a096> /usr/lib/dyld 0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

I hit the exact same crash on an M2 MacBook Pro running macOS 26.6.2 (25G83), Xcode 26.6 (24959). Reinstalling Xcode multiple times (both via App Store and direct .xip download from developer.apple.com) did not help — same crash every time, immediately on launch, before any window even appears.

Running the binary directly from Terminal revealed the actual error (the GUI just shows "Xcode quit unexpectedly"):

/Applications/Xcode.app/Contents/MacOS/Xcode
Error loading required libraries. If there is an ongoing installation please wait for it to complete. Otherwise reinstall. (dlopen(@rpath/Frameworks/libIDEApplicationLoader.dylib, 0x0001): Symbol not found: _XPCTypeBool
  Referenced from: <...> /Library/Developer/PrivateFrameworks/CoreDevice.framework/Versions/A/CoreDevice
  Expected in:     <...> /Library/Apple/System/Library/PrivateFrameworks/Mercury.framework/Versions/A/Mercury)
zsh: abort      /Applications/Xcode.app/Contents/MacOS/Xcode

Root cause: /Library/Developer/PrivateFrameworks/CoreDevice.framework on my system was dated November 2024 — a stale leftover from a much older Xcode/CLT install. It was never touched by any of the normal cleanup steps (deleting Xcode.app, clearing ~/Library/Developer, pkgutil --forget, reinstalling Command Line Tools via xcode-select --install), because those all operate on ~/Library/Developer (user-level) or the app bundle itself — not on the system-level /Library/Developer/PrivateFrameworks directory. That old CoreDevice framework expects a symbol (_XPCTypeBool) from Mercury.framework that doesn't exist in the current macOS 26.6.2 build, so Xcode aborts on launch before it can even draw a window.

Fix:

sudo rm -rf /Library/Developer/PrivateFrameworks

This directory gets correctly repopulated the next time Xcode launches / CLT reinstalls. After deleting it, Xcode launched immediately without any further issues.

If you're seeing this exact crash (_XPCTypeBool symbol not found, CoreDevice vs Mercury), it's worth checking the date on /Library/Developer/PrivateFrameworks/CoreDevice.framework — if it predates your current Xcode version, this is almost certainly your fix. No need to fully wipe/reinstall Xcode or CLT.

Thank you post your post @ajcblyth and thanks for the reply @bathcoder

/Library/Developer/PrivateFrameworks is system-level and shared across all Xcode versions/installs on the machine. Unlike ~/Library/Developer (caches/DerivedData/simulators) or the Xcode.app bundle itself, it's not versioned per-install https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFrameworks/Tasks/CreatingFrameworks.html#//apple_ref/doc/uid/20002258-106880

https://developer.apple.com/documentation/foundation/bundle/privateframeworkspath

@ajcblyth Can you upload the crash file into this thread?

Kindly submit a comprehensive crash report, adhering to the guidelines outlined in Posting a Crash Report.

https://developer.apple.com/forums/thread/688669

Thanks

Albert  WWDR

Xcode Quits unexpectedly
 
 
Q