Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 7 beta 3 crash at startup

I have a problem after XCode7 beta 3 installation: is not possible for me to use Xcode because every time it crash at startup! I have only the crash report but I don't understand where is the problem. My Xcode 6.4 works without problem. Can someone help me? Here the first line of crash report...

Process:               Xcode [1012]
Path:                  /Applications/Xcode-beta.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               7.0 (8163.8)
Build Info:            IDEFrameworks-8163008000000000~7
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Xcode [1012]
User ID:               501

Date/Time:             2015-07-11 09:37:48.062 +0200
OS Version:            Mac OS X 10.10.4 (14E46)
Report Version:        11
Anonymous UUID:        9AE5A2B5-E5A8-37F4-E7B7-C9E99A3CB864

Sleep/Wake UUID:       60DC0ED0-51DA-4158-B5FF-F5B35B44D0A4

Time Awake Since Boot: 9200 seconds
Time Since Wake:       6500 seconds

Crashed Thread:        0  Dispatch queue: IDESourceControlTree Change Queue

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Application Specific Information:
ProductBuildVersion: 7A152u
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-8163.8/IDEFoundation/SourceControl/Model/IDESourceControlTree.m:82
Details:  (location) should not be nil.
Object:   <IDESourceControlRepository: 0x7fcdf0385930>
Method:   -_initWithLocation:sourceControlManager:
Thread:   <NSThread: 0x7fcdebf0a540>{number = 1, name = main}
Hints:   None
Backtrace:
like image 690
Lorenzo Avatar asked Jul 11 '15 07:07

Lorenzo


2 Answers

After seeing a suggestion here, I solved this issue by deleting Xcode's preferences. The most reliable way to do that is the following terminal command, issued after quitting Xcode:

defaults delete com.apple.dt.Xcode

ETA: Other suggestions have involved changing or removing certain individual preference settings, but after trying a few of those, none worked for me. There seem to be multiple incompatibilities in the preferences between 6 and 7b3, so trashing the prefs entirely should work around them all.

like image 162
Siobhán Avatar answered Sep 23 '22 15:09

Siobhán


Worked for me by doing the following: in the previous version of Xcode(6.4) Preferences > Accounts and delete all the repositories entries. Xcode 7 stopped crashing.

like image 32
Zsolt Avatar answered Sep 19 '22 15:09

Zsolt