I have downloaded and installed Xcode in the past and I didn't have any problems with it until I uninstalled it, came back a few months or so later, and reinstalled it today.
I redownloaded and reinstalled Xcode 9.2 but that always crashes on startup. There is a crash but I'll simplify what it says.
The file xcode/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework is missing
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
ProductBuildVersion: 9B55
OS Version: Mac OS X 10.12.6
Report Version: 12
I have downloaded XCode 9.2 & 9.1 from https://developer.apple.com/download/more/
I'm not sure why when I open up the .xip file, XCode is created without the .framework file. It was fine when I downloaded it in the past, perhaps I got rid of the wrong files when I attempted to uninstall XCode 9.2, forgot the directories for what I deleted though, I remember I deleted ~/library/Developer/
Should I try using Xcode for 10.13.6 on 10.12.6 and edit one of the files so it takes in macOS 10.12.6 instead of 13?