Seconds after I open the workspace for my main project Xcode crashes and disappears.
Here is the crash info in the console app:
Appears to be related to SwiftPM. I'm unable to use Xcode 12 for work. Reverting to Xcode 11 until this is resolved.
Here is the crash info in the console app:
Code Block Process: Xcode [26370] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 12.0 (17219) Build Info: IDEFrameworks-17219000000000000~2 (12A7209) App Item ID: 497799835 App External ID: 837639917 Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Xcode [26370] User ID: 502 Date/Time: 2020-09-17 15:27:36.490 -0600 OS Version: Mac OS X 10.15.6 (19G2021) Report Version: 12 Bridge OS Version: 4.6 (17P6610) Anonymous UUID: 362A964B-A9DA-A787-4D24-905B5AF3CD6C Time Awake Since Boot: 11000 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_INSTRUCTION (SIGILL) Exception Codes: 0x0000000000000001, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Signal: Illegal instruction: 4 Termination Reason: Namespace SIGNAL, Code 0x4 Terminating Process: exc handler [26370] Application Specific Information: ProductBuildVersion: 12A7209 Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 com.apple.dt.IDESwiftPackageCore 0x0000000133b03f3b PIF.Project.addTarget(id:productType:name:productName:) + 1211 1 com.apple.dt.IDESwiftPackageCore 0x0000000133ae1a20 specialized constructLibraryProductBlueprint #1 (_:type:productIdSuffix:embedResources:) in PackagePIFBuilder.build() + 688 2 com.apple.dt.IDESwiftPackageCore 0x0000000133ace3f5 PackagePIFBuilder.build() + 11285 3 com.apple.dt.IDESwiftPackageCore 0x0000000133af543f IDESwiftPackage.update(from:) + 2687 4 com.apple.dt.IDESwiftPackageCore 0x0000000133ac2ae5 IDESPMWorkspaceDelegate.dependencyPackageDidUpdate(package:) + 1461 5 com.apple.dt.SwiftPM 0x0000000133e69fc2 closure #10 in closure #1 in SPMWorkspace.processPackageGraphActionsInBackgroundIfNeeded() + 4562 6 com.apple.dt.SwiftPM 0x0000000133e78ee1 partial apply for thunk for @callee_guaranteed () -> () + 17 7 com.apple.dt.SwiftPM 0x0000000133e6d0be thunk for @escaping @callee_guaranteed () -> () + 14 8 libdispatch.dylib 0x00007fff72d5a658 _dispatch_client_callout + 8 9 libdispatch.dylib 0x00007fff72d667ab _dispatch_async_and_wait_invoke + 87 10 libdispatch.dylib 0x00007fff72d5a658 _dispatch_client_callout + 8 11 libdispatch.dylib 0x00007fff72d65cab _dispatch_main_queue_callback_4CF + 936 12 com.apple.CoreFoundation 0x00007fff38d5de81 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 13 com.apple.CoreFoundation 0x00007fff38d1dc87 __CFRunLoopRun + 2028 14 com.apple.CoreFoundation 0x00007fff38d1ce3e CFRunLoopRunSpecific + 462 15 com.apple.HIToolbox 0x00007fff37949abd RunCurrentEventLoopInMode + 292 16 com.apple.HIToolbox 0x00007fff379497d5 ReceiveNextEventCommon + 584 17 com.apple.HIToolbox 0x00007fff37949579 _BlockUntilNextEventMatchingListInModeWithFilter + 64 18 com.apple.AppKit 0x00007fff35f8f039 _DPSNextEvent + 883 19 com.apple.AppKit 0x00007fff35f8d880 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352 20 com.apple.dt.DVTKit 0x0000000105bb1bd0 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 421 21 com.apple.AppKit 0x00007fff35f7f58e -[NSApplication run] + 658 22 com.apple.AppKit 0x00007fff35f51396 NSApplicationMain + 777 23 libdyld.dylib 0x00007fff72db3cc9 start + 1
Appears to be related to SwiftPM. I'm unable to use Xcode 12 for work. Reverting to Xcode 11 until this is resolved.