Xcode 10.2 crash

So I made sure everything was up-to-date, cleared caches, rebooted, etc., but the Xcode 10.2 beta crashes. An abort because it thinks I'm not running on a Mac?


Process:               Xcode [345]
Path:                  /Applications/Xcode-beta.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               10.2 (14490.87.2)
Build Info:            IDEFrameworks-14490087002000000~23
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Xcode [345]
User ID:               501


Date/Time:             2019-01-25 08:19:48.497 -0500
OS Version:            Mac OS X 10.14.3 (18D42)
Report Version:        12
Anonymous UUID:        ED194AC4-596B-E927-5E4C-E3EAD903B324




Time Awake Since Boot: 43 seconds


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: 10P82s
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-14490.68.3/DVTFoundation/DeveloperStructure/DVTPlatform.m:502
Details:  The macOS platform is missing - cannot set a default platform. Platform folders = (
   “<dvtfilepath:0x7fa823e40f10:‘ applications="" xcode-beta.app="" contents="" developer="" platforms’="">”
). Registered platforms = (
   “<dvtplatform:0x7fa823d28ce0:‘com.apple.platform.iphonesimulator’:<dvtfilepath:0x7fa823d28e70:‘ applications="" xcode-beta.app="" contents="" developer="" platforms="" iphonesimulator.platform’="">>“,
   “<dvtplatform:0x7fa823d85290:‘com.apple.platform.iphoneos’:<dvtfilepath:0x7fa823d65df0:‘ applications="" xcode-beta.app="" contents="" developer="" platforms="" iphoneos.platform’="">>”
)
Object:   
Method:   +loadAllPlatformsReturningError:
Thread:   {number = 1, name = main}
Hints:


Backtrace:
0   -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
1   _DVTAssertionHandler (in DVTFoundation)
2   _DVTAssertionFailureHandler (in DVTFoundation)
3   __46+[DVTPlatform loadAllPlatformsReturningError:]_block_invoke (in DVTFoundation)
4   _dispatch_client_callout (in libdispatch.dylib)
5   _dispatch_once_callout (in libdispatch.dylib)
6   +[DVTPlatform loadAllPlatformsReturningError:] (in DVTFoundation)
7   IDEInitialize (in IDEFoundation)
8   -[IDEApplicationController applicationWillFinishLaunching:] (in IDEKit)
9   __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ (in CoreFoundation)
10   ___CFXRegistrationPost_block_invoke (in CoreFoundation)
11   _CFXRegistrationPost (in CoreFoundation)
12   ___CFXNotificationPost_block_invoke (in CoreFoundation)
13   -[_CFXNotificationRegistrar find:object:observer:enumerator:] (in CoreFoundation)
14   _CFXNotificationPost (in CoreFoundation)
15   -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation)
16   -[NSNotificationCenter(DVTNSNotificationCenterAdditions) _dvt_postNotificationName:object:userInfo:] (in DVTFoundation)
17   -[NSApplication finishLaunching] (in AppKit)
18   -[DVTApplication finishLaunching] (in DVTKit)
19   -[NSApplication run] (in AppKit)
20   NSApplicationMain (in AppKit)
21   main (in Xcode)
22   start (in libdyld.dylib)


abort() called


Application Specific Signatures:
((void *)0) != macosxPlatform

>because it thinks I'm not running on a Mac?


Are you?


Relax, that's not what it means. It has to do with corrupted/incompatible plist(s) in ~/Library/Preferences


Quit Xcode, then find anything there that starts w/com.apple & Xcode in the name, move them to trash, then empty it.


Restart Xcode so it can make new ones, open that project, perform an option-clean build folder (product menu w/option key pressed) and try again.

Xcode 10.2 crash
 
 
Q