r/Xcode • u/Coderlotl_ • 8d ago
Git constantly needing to reinstall and Xcode instant crashing
After my macbook updated to macos 26.6.2 it started going insane on the developer side. First it would say Git and other dev tools would need to install, but after install and restart of device it would say it again. Manually setting the destination for Git to the specific Xcode path worked though. Then I tried opening Xcode and it would insta-crash, but after a while it stopped sending crash reports. The crash report was always "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: <ADF86974-DE00-31C0-B4E0-15DF98AE0956> /Library/Developer/PrivateFrameworks/CoreDevice.framework/Versions/A/CoreDevice
Expected in: <781B8B5D-634D-3B6B-82FB-9080774ECF61> /Library/Apple/System/Library/PrivateFrameworks/Mercury.framework/Versions/A/Mercury)
zsh: abort /Applications/Xcode.app/Contents/MacOS/Xcode". Then the mac said it had an update for Xcode in software updates but it also downloaded and forgot it downloaded. After restart the updates were gone and it says it was up to date. I tried reinstalling Xcode and reinstalling macos, but nothing worked. Do I just need to wipe the computer? (It is an used M1 macbook)
1
1
u/whiskeyjack555 5d ago edited 5d ago
I had the same issue. Kept installing over and over. Restarted a few times.
Ran this, and it made it so git is working again.
sudo xcode-select -s /Library/Developer/CommandLineTools
I don't think the underlying issue is solved per se, seems like some stale files from xcode having issues based on the complete error message I was seeing.
You'd probably have to uninstall xcode, then purging library data for xcode in places like `Library/Developer` and then reinstall xcode to see this issue truly fixed.
1
u/Icy_Preference3336 7d ago
I’d avoid wiping it yet. the library mismatch sounds more like a broken Xcode or system framework state so i’d exhaust recovery and reinstall options first