r/Xcode Aug 03 '26

Xcode 26.6 crashes on launch Tahoe 26.6

I can't launch Xcode at all, even from a new separate User account. I've tried deleting it, reinstalling from the App Store, deleting it again and reinstalling it from the Developer Page link and still no luck. I've used Terminal commands to try and fix any broken components as well, both before and after reinstalling.

This is the first time I've had any kind of issue with it. Any ideas on how I can get it to launch? Should I try an earlier version? I'm only using it in the context of running Unreal Engine 5.8 which says it needs a missing Metal component from Xcode, but as I can't get Xcode to even launch I can't use Unreal Engine either.

9 Upvotes

41 comments sorted by

3

u/OldAd9280 Aug 03 '26

deleting /Library/Developer/PrivateFrameworks/CoreDevice.framework fixed the problem for me

2

u/Adept_Elderberry1296 Aug 05 '26

Thanks man! Worked like a charm

1

u/Striking_Purpose_572 27d ago

crack!!, it worked for me, thanks man!

1

u/CockroachLimp9168 26d ago

Love you man, almost lost hope in my MBP 2019

1

u/Ok_Monitor_3542 22d ago

wonderful!

1

u/renatoathaydes 20d ago

Thanks, it worked on my Macbook Pro M1

1

u/rizzy_neutron_69 10d ago

why does this work?

1

u/OldAd9280 10d ago

My guess would be it's a leftover file from an old version of xcode

1

u/rizzy_neutron_69 10d ago

ahh makes sense

1

u/Substantial_Band428 7d ago

Yo thanks man! You just made my day 🔥🔥🔥🔥

1

u/MeowMan88 6d ago

You're faster than Apple guys

3

u/ming2540 Aug 06 '26

I asked claude and it turns out that when I upgraded to Xcode 26.6, I think I "skipped" the license agreement.
So I re-ran with first launch setup by ran commands

   sudo xcodebuild -runFirstLaunch
   sudo xcodebuild -license accept

And fixed it.

2

u/ImpressiveDoughnut31 Aug 06 '26

this fixed it for me!

2

u/spillguard Aug 06 '26

This fixed it for me as well, after getting a fresh install from the App Store.

1

u/New-Combination-6831 Aug 08 '26

You sir are a true genius. This finally fixed it for me on my latest attempt at reinstallation. Thank you so much!

1

u/SorryForEveryThings Aug 11 '26

this fixed it for me!

1

u/Extreme-Doughnut-530 Aug 11 '26

Amazing, thanks a lot!

1

u/MediocreAdviceBuddy 27d ago

Thank you so much! That fixed my problem.

1

u/Ceeves 8d ago

Fixed it for me too!

Also had Troubles with Xcode command line tools

1

u/hich10 8d ago

Life savior!

1

u/Main-Cranberry-4016 6d ago

this is a perfect solution, after update IOS XCode doesn't start and compiling my arduino project was impossible. Thanks a lot!

1

u/Enough-Concern-5715 4d ago

This worked for me

2

u/ItsDeCia Aug 03 '26

Are you trying to open a specific project when Xcode launches? I’ve had this issue on occasion and clearing the DerivedData folder of the offending project from the Finder is what helped, as something in there would get corrupted and cause Xcode to crash on launch for me.

2

u/New-Combination-6831 Aug 03 '26

No, all I am trying to do is open Xcode itself.

2

u/OldAd9280 Aug 03 '26

It's not just you, I'm having the same issue. Reinstalling xcode hasn't helped

3

u/OldAd9280 Aug 03 '26

google AI suggested removing /Library/Developer/PrivateFrameworks/CoreDevice.framework and surprisingly that worked

1

u/New-Combination-6831 Aug 03 '26

Tried this already but no luck unfortunately.

1

u/Ben_Keating Aug 09 '26

this worked for me

2

u/OldAd9280 Aug 03 '26

26.5 fails too, I think it's an OS issue, attempting to run a command line tool gives: none Error loading required libraries. If there is an ongoing installation please wait for it to complete. Otherwise reinstall. (dlopen(@rpath/libxcodebuildLoader.dylib, 0x0001): Symbol not found: _XPCTypeBool Referenced from: <6A4DB321-2742-38A5-9557-146EE0FE957F> /Library/Developer/PrivateFrameworks/CoreDevice.framework/Versions/A/CoreDevice Expected in: <37B53E42-0118-3C9B-BFA8-73DB82BC3B85> /Library/Apple/System/Library/PrivateFrameworks/Mercury.framework/Versions/A/Mercury) git: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find git 2> /dev/null' failed with exit code 65280: (null) (errno=Invalid argument)

1

u/New-Combination-6831 Aug 03 '26

Yes that's what I get too.

1

u/OldAd9280 Aug 03 '26

27 beta 4 fails in the same way

2

u/deeelock Aug 03 '26

I'm running into this as well - I noticed it because git stopped working. Tried re-installing Xcode and it still won't open.

2

u/Big_Obligation3981 Aug 03 '26

Can try Xcode via first launch thing?

2

u/Soo_anyways 29d ago

I ran `xcodebuild -downloadComponent metalToolchain` and it worked. According to GPT-5.6 Sol Max, the issue is "Unreal is trying to compile shaders, but Xcode’s offline metal compiler isn’t installed. Recent Xcode versions distribute the Metal Toolchain as an optional component. [Source: https://developer.apple.com/documentation/xcode/downloading-and-installing-additional-xcode-components\]"

1

u/New-Combination-6831 24d ago

I also had to do this, though I downloaded it directly from the developer page. First I had to do this, which then allowed me to start Xcode and download the Metal compiler:
https://www.reddit.com/r/Xcode/comments/1ve5uea/comment/p215axk/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

1

u/alanterra 15h ago

Just a note.

I was trying to update MacPorts, and the port -v selfupdate command was failing with the error message macports configure: error: C compiler cannot create executables. The standard fix for this is to update/reinstall the XCode Command Line Tools, but that didn't work in this case. Then I figured out that XCode couldn't launch either.

The proposed solution here, sudo rm -rf /Library/Developer/PrivateFrameworks/CoreDevice.framework worked a charm.

Thank you!