I wanted to update Xcode to 12.3, but there wasn't enough space for that on my MacBook, so I downloaded Xcode 12.3 from developer.apple.com, and unarchived the .xip file on an external SSD. After that, I moved Xcode back to the laptop, and now when I want to launch Xcode (so when I launch the app, not a particular project!) it crashes with the following log:
Process: Xcode [616]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 12.3 (17715)
Build Info: IDEFrameworks-17715000000000000~8 (12C33)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [616]
User ID: 501
Date/Time: 2020-12-18 14:22:40.576 +0200
OS Version: macOS 11.1 (20C69)
Report Version: 12
Bridge OS Version: 5.1 (18P3030)
Anonymous UUID: A6A1D2D4-69BA-5197-5F6F-C0FB4D60ADEB
Time Awake Since Boot: 91 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: 12C33
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-17718/DVTFoundation/DeveloperStructure/DVTExtendedPlatformInfo.m:110
Details: (extensionPoint) should not be nil.
Object: <DVTExtendedPlatformInfo>
Method: +extendedPlatformInfoForPlatformIdentifier:error:
Thread: <NSThread: 0x7faa6100a380>{number = 1, name = main}
Open FDs: 6/256
Hints:
Backtrace:
0 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
1 _DVTAssertionHandler (in DVTFoundation)
2 _DVTAssertionFailureHandler (in DVTFoundation)
3 __75+[DVTExtendedPlatformInfo extendedPlatformInfoForPlatformIdentifier:error:]_block_invoke (in DVTFoundation)
4 _dispatch_client_callout (in libdispatch.dylib)
5 _dispatch_once_callout (in libdispatch.dylib)
6 +[DVTExtendedPlatformInfo extendedPlatformInfoForPlatformIdentifier:error:] (in DVTFoundation)
7 -[DVTPlatform(DVTExtendedPlatformInfo) dvt_extendedInfoOrError:] (in DVTFoundation)
8 +[DVTPlatform validatePlatformDataReturningError:] (in DVTFoundation)
9 IDEInitialize (in IDEFoundation)
10 -[IDEApplicationController applicationWillFinishLaunching:] (in IDEKit)
11 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ (in CoreFoundation)
12 ___CFXRegistrationPost_block_invoke (in CoreFoundation)
13 _CFXRegistrationPost (in CoreFoundation)
14 _CFXNotificationPost (in CoreFoundation)
15 -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation)
16 -[NSNotificationCenter(DVTNSNotificationCenterAdditions_MRR) _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 start (in libdyld.dylib)
abort() called
Application Specific Signatures:
((extensionPoint)) != nil
I've tried everything I could find online:
restart Mac (in safe mode)
update macOS to Big Sur 11.1
reinstall Xcode Command Line Tools
clear derived data
clear all Xcode associated files (excepting the app itself) using AppCleaner
Do you have any idea on how I can fix this?
By the way, isn't it strange that the file that gives ASSERTION FAILURE doesn't even exist on my computer?
I somehow managed to free up around 40 GB on my MacBook, so I was able to download Xcode from App Store. And it seems like this was a "cleaner" install, stopping Xcode from crashing.
I updated Xcode today (Xcode 11.0), and now it crashes every time I try running any project on my iPhone (iOS 13.1).
Already tried:
Cleaning derived data
Cleaning library cache folder
Uninstalling xCode and downloading it again from the store
Restarting Mac
Restarting iPhone
Reconnecting iPhone trough itunes
The odd thing is that the Xcode activity doesn't show the "installing app" phase, it goes straight to "Running app on device" and then crashes. Running on the simulator works without a problem.
Already searched on the Apple forums and sent the report to Apple, but maybe there is something I can do to solve te issue.
Error log:
Process: Xcode [873]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 11.0 (14936)
Build Info: IDEFrameworks-14936000000000000~3
App Item ID: 497799835
App External ID: 832762837
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [873]
User ID: 502
Date/Time: 2019-09-25 11:47:10.497 -0300
OS Version: Mac OS X 10.14.6 (18G95)
Report Version: 12
Anonymous UUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Time Awake Since Boot: 550 seconds
System Integrity Protection: enabled
Crashed Thread: 16 Dispatch queue: Mutex to protect _hasPerformedWorkerAction
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
com.apple.main-thread
ProductBuildVersion: 11A420a
UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Invalid parameter not satisfying: aString != nil
UserInfo: (null)
Hints:
0: Calling block provided to DVTSyncPerformBlock() here:
0 DVTSyncPerformBlock (in DVTFoundation)
1 -[IDEExecutionRunnableTracker executionWantsHold:withError:] (in IDEFoundation)
2 -[IDERunOperationWorker _startWithRetrying:] (in IDEFoundation)
3 __44-[IDERunOperationWorker _startWithRetrying:]_block_invoke_3 (in IDEFoundation)
4 __48-[DVTDispatchLock_Recursive performLockedBlock:]_block_invoke (in DVTFoundation)
5 _dispatch_client_callout (in libdispatch.dylib)
6 _dispatch_lane_barrier_sync_invoke_and_complete (in libdispatch.dylib)
7 DVTDispatchBarrierSync (in DVTFoundation)
8 -[DVTDispatchLock performLockedBlock:] (in DVTFoundation)
9 -[DVTDispatchLock_Recursive performLockedBlock:] (in DVTFoundation)
10 __44-[IDERunOperationWorker _startWithRetrying:]_block_invoke_2 (in IDEFoundation)
11 __DVT_CALLING_CLIENT_BLOCK__ (in DVTFoundation)
12 __DVTDispatchAfter_block_invoke (in DVTFoundation)
13 _dispatch_client_callout (in libdispatch.dylib)
14 _dispatch_continuation_pop (in libdispatch.dylib)
15 _dispatch_source_invoke (in libdispatch.dylib)
16 _dispatch_continuation_pop (in libdispatch.dylib)
17 _dispatch_async_redirect_invoke (in libdispatch.dylib)
18 _dispatch_root_queue_drain (in libdispatch.dylib)
19 _dispatch_worker_thread2 (in libdispatch.dylib)
20 _pthread_wqthread (in libsystem_pthread.dylib)
21 start_wqthread (in libsystem_pthread.dylib)
Backtrace:
0 __exceptionPreprocess (in CoreFoundation)
1 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 objc_exception_throw (in libobjc.A.dylib)
...
...
...
0x7fff63005000 - 0x7fff6300affb libunwind.dylib (35.4) <24A97A67-F017-3CFC-B0D0-6BD0224B1336> /usr/lib/system/libunwind.dylib
0x7fff6300b000 - 0x7fff6303afff libxpc.dylib (1336.261.2) <7DEE2300-6D8E-3C00-9C63-E3E80D56B0C4> /usr/lib/system/libxpc.dylib
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 1
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 430
thread_create: 0
thread_set_state: 21
VM Region Summary:
ReadOnly portion of Libraries: Total=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%)
Writable regions: Total=1.2G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.2G(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate framework 640K 5
Activity Tracing 256K 1
CG backing stores 1160K 2
CG image 1296K 95
CG raster data 56K 6
CoreAnimation 25.8M 164
CoreGraphics 8K 1
CoreImage 776K 81
CoreUI image data 3000K 34
CoreUI image file 688K 14
Dispatch continuations 8192K 1
Foundation 344K 5
Image IO 80K 5
JS JIT generated code 1.0G 3
Kernel Alloc Once 1036K 2
MALLOC 136.4M 116
MALLOC guard page 48K 10
Memory Tag 242 12K 1
Memory Tag 251 64K 3
Performance tool data 8208K 1 not counted in TOTAL below
SQLite page cache 128K 2
STACK GUARD 56.1M 23
Stack 19.2M 23
VM_ALLOCATE 360K 24
WebKit Malloc 1144K 3
__DATA 94.4M 755
__DATA_CONST 8K 1
__FONT_DATA 4K 1
__LINKEDIT 357.4M 236
__TEXT 723.4M 680
__UNICODE 564K 1
libnetwork 1152K 4
mapped file 169.2M 230
shared memory 676K 15
=========== ======= =======
TOTAL 2.6G 2547
Model: MacBookPro12,1, BootROM 186.0.0.0.0, 2 processors, Intel Core i5, 2,9 GHz, 8 GB, SMC 2.28f7
Graphics: kHW_IntelIris6100Item, Intel Iris Graphics 6100, spdisplays_builtin
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1867 MHz, 0x80AD, 0x483943434E4E4E424C54424C41522D4E5544
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1867 MHz, 0x80AD, 0x483943434E4E4E424C54424C41522D4E5544
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x133), Broadcom BCM43xx 1.0 (7.77.61.2 AirPortDriverBrcmNIC-1305.8)
Bluetooth: Version 6.0.14d3, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM0512G, 500,28 GB
USB Device: USB 3.0 Bus
USB Device: Bluetooth USB Host Controller
USB Device: iPhone
Thunderbolt Bus: MacBook Pro, Apple Inc., 27.1
So, I found that inside this folder:
~/Library/Developer/Xcode/iOS DeviceSupport
Xcode creates cache folders for all the physical devices symbols it paired.
This folder remains even if you uninstall Xcode, and the cache is reused even when you install other versions of the software.
Deleting the folders content made Xcode download the symbols again, run prepare debug support for the device phase and reset the device connection, solving the problem.
According to #alxlives 'Deleting the folders content made Xcode download the symbols again, run prepare debug support for the device phase and reset the device connection, solving the problem.' This solution solved the problem for me. Here is a terminal command to remove all contents inside of the folder.
rm -r ~/Library/Developer/Xcode/iOS\ DeviceSupport/
This commands remove all files that are located inside of the Device Support folderl.
1.Go to Project Folder
2.Right-click on xcodeproj
3.Click Show package Content
4.Delete xcuserdata directory
I was having this issue with Xcode 11.1 and an iPhone XR running iOS 13.2.3 (iPad running that OS version was fine). The accepted answer didn't work for me. Upgrading to Xcode 11.2.1 fixed it.
I was having the same crash on XCode 11.3 . I went on to "Show package contents" (right click on) of the ".xcworkspace" workspace directory and deleted "xcuserdata" folder. This resolved the crash for me.
Xcode 7.3.1 itself crashes instantly on resymbolicate crash log. Do people see this, is there a workaround?
The target name of the app which has the crash log is using non-alpha characters, so the filename of the crash log does too. I'm just guessing that such a thing could be of concern and could be worth looking into later.
Crash log of the Xcode crash.
Process: Xcode [26717]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 7.3.1 (10188.1)
Build Info: IDEFrameworks-10188001000000000~3
App Item ID: 497799835
App External ID: 817226719
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [26717]
User ID: 503
Date/Time: 2016-05-09 13:59:49.452 +0900
OS Version: Mac OS X 10.11.4 (15E65)
Report Version: 11
Anonymous UUID: BA41D661-8DBF-03DD-FB21-F8B96CA8C464
Time Awake Since Boot: 260000 seconds
System Integrity Protection: enabled
Crashed Thread: 17 Dispatch queue: com.apple.root.default-qos
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
ProductBuildVersion: 7D1014
UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** -[NSRegularExpression enumerateMatchesInString:options:range:usingBlock:]: nil argument
UserInfo: (null)
Hints: None
Backtrace:
0 __exceptionPreprocess (in CoreFoundation)
1 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 objc_exception_throw (in libobjc.A.dylib)
3 +[NSException raise:format:] (in CoreFoundation)
4 -[NSRegularExpression(NSMatching) enumerateMatchesInString:options:range:usingBlock:] (in Foundation)
5 -[DVTLocalLogSymbolicator _parseToolStandardError:] (in DVTFoundation)
6 __55-[DVTLocalLogSymbolicator symbolicateLogData:callback:]_block_invoke_3 (in DVTFoundation)
7 _dispatch_call_block_and_release (in libdispatch.dylib)
8 _dispatch_client_callout (in libdispatch.dylib)
9 _dispatch_root_queue_drain (in libdispatch.dylib)
10 _dispatch_worker_thread3 (in libdispatch.dylib)
11 _pthread_wqthread (in libsystem_pthread.dylib)
12 start_wqthread (in libsystem_pthread.dylib)
abort() called
very annoying: xcode keeps crashing when I open one of my projects.
I have no clue why...
this one
XCode 4.3.1 crashes on opening specific project
did not help - this is the crash log - any Ideas ?
Process: Xcode [19761]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 4.5 (1839)
Build Info: IDEApplication-1839000000000000~3
App Item ID: 497799835
App External ID: 10747437
Code Type: X86-64 (Native)
Parent Process: launchd [198]
User ID: 501
Date/Time: 2012-10-01 21:48:52.265 +0200
OS Version: Mac OS X 10.8.2 (12C54)
Report Version: 10
Sleep/Wake UUID: 9ACF0419-50CB-4C8A-9DAB-48BB96BC96BE
Interval Since Last Report: 92224 sec
Crashes Since Last Report: 11
Per-App Interval Since Last Report: 263627 sec
Per-App Crashes Since Last Report: 11
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 4G182
ASSERTION FAILURE in /SourceCache/IDEFoundation/IDEFoundation-1877/Framework/Classes/Model/SourceControl/IDESourceControlUtilities.m:73
Details: Unable to make tmp file
Function: DVTFilePath *IDESourceControl_filePathForTmpFileBasedOnFileName(NSString *)
Thread: <NSThread: 0x40030a1e0>{name = (null), num = 1}
Hints: None
Backtrace:
0 0x0000000101f63a5c -[IDEAssertionHandler handleFailureInFunction:fileName:lineNumber:messageFormat:arguments:] (in IDEKit)
1 0x000000010122a20d _DVTAssertionHandler (in DVTFoundation)
2 0x000000010122a2a5 _DVTAssertionFailureHandler (in DVTFoundation)
3 0x0000000101ad87b5 IDESourceControl_filePathForTmpFileBasedOnFileName (in IDEFoundation)
4 0x00000001092a9c6e -[GitExportFileOperation initWithRequest:] (in IDEGit)
5 0x000000010929e640 -[GitController operationForRequest:] (in IDEGit)
6 0x0000000101a0c0d8 -[IDESourceControlManager performRequest:waitUntilFinished:withCompletionBlock:] (in IDEFoundation)
7 0x0000000101a91d99 __96-[IDESourceControlWorkingTreeGroup temporaryFolderForBranchName:revisionNumber:completionBlock:]_block_invoke_0 (in IDEFoundation)
8 0x0000000101a91c72 -[IDESourceControlWorkingTreeGroup temporaryFolderForBranchName:revisionNumber:completionBlock:] (in IDEFoundation)
9 0x000000010201fd58 -[IDESourceControlWorkingTreeGroup(IDESourceControlDocumentLocationAdditions) exportPrivateTemporaryDocumentForBranchName:revisionName:usingTemplateDocument:completionBlock:] (in IDEKit)
10 0x0000000101eb8a18 -[IDEComparisonEditor _exportSecondaryDocument] (in IDEKit)
Has anyone had problems with Xcode 4.3.3 crashing on OSX Lion (10.7.4)? I am attempting to program a GUI interface and everything was perfect until I opened it to continue working on it today. This file will end up being an expert system for medical diagnosis.
A zip file is located here (http://www.mediafire.com/?14slv9xhb45214t) with all of the program files. Haven't gotten very far besides designing the interface.
I included the crash report below as well.
Process: Xcode [9714]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 4.3.3 (1178)
Build Info: IDEApplication-1178000000000000~3
App Item ID: 497799835
App External ID: 8553856
Code Type: X86-64 (Native)
Parent Process: launchd [273]
Date/Time: 2012-07-05 20:13:12.925 -0400
OS Version: Mac OS X 10.7.4 (11E53)
Report Version: 9
Interval Since Last Report: 197037 sec
Crashes Since Last Report: 12
Per-App Interval Since Last Report: 8746 sec
Per-App Crashes Since Last Report: 10
Anonymous UUID: 7C84D886-82A8-4652-B690-46D441C4DABB
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 4E3002
ASSERTION FAILURE in /SourceCache/IDESourceEditor/IDESourceEditor-1175/Classes/IDESourceCodeAdjustNodeTypesRequest.m:412
Details: symLoc should be an instance inheriting from DVTTextDocumentLocation, but it is <IBDocumentMemberLocation: 0x401dc9a40>
Object: <IDESourceCodeAdjustNodeTypesRequest: 0x401f137e0>
Method: -_processFoundSymbolResults:
Thread: <NSThread: 0x40010a220>{name = (null), num = 1}
Hints: None
Backtrace:
0 0x000000010556eb9f -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit)
1 0x0000000104a1f5d5 _DVTAssertionFailureHandler (in DVTFoundation)
2 0x000000010a625908 -[IDESourceCodeAdjustNodeTypesRequest _processFoundSymbolResults:] (in IDESourceEditor)
3 0x0000000104a3ffc7 __DVTAsyncPerformBlock_block_invoke_0 (in DVTFoundation)
4 0x00007fff826cadfc __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ (in CoreFoundation)
5 0x00007fff82682f02 __CFRunLoopDoBlocks (in CoreFoundation)
6 0x00007fff826aab35 __CFRunLoopRun (in CoreFoundation)
7 0x00007fff826aa486 CFRunLoopRunSpecific (in CoreFoundation)
8 0x00007fff8727b4d3 RunCurrentEventLoopInMode (in HIToolbox)
9 0x00007fff87282781 ReceiveNextEventCommon (in HIToolbox)
10 0x00007fff8728260e BlockUntilNextEventMatchingListInMode (in HIToolbox)
11 0x0000000105b64e31 _DPSNextEvent (in AppKit)
12 0x0000000105b64735 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
13 0x0000000105b61071 -[NSApplication run] (in AppKit)
14 0x0000000105ddd244 NSApplicationMain (in AppKit)
15 0x000000010499beec (in Xcode)
16 0x0000000000000002
objc[9714]: garbage collection is ON
abort() called
Xcode crashes can be caused by a corrupt project file. This has happened to me a couple of times.
Xcode seems intolerant of any errors, and won't even let you get to version control.
If you are using version control you could try repairing this at the command line.
You might want to recreate your project. You should be able to copy your source files and .XIB into a new project.