Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 7.x crashes when editing storyboards

Xcode is crashing very often when I edit storyboards.

I'm working with OS X El Capitan 10.11 and Xcode 7.0.1 (7A1001).

I've experienced crashes mostly when I edit view background colors and view alphas.

The only way to keep going for the moment has been saving after every edition.

It's really annoying though. Have you experience these crashes? Do you know any workaround? Thanks in advance.

EDIT

It also crashes often when editing constraints.

Here's the crash log:

Process:               Xcode [10557]
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               7.0.1 (8228)
Build Info:            IDEFrameworks-8228000000000000~5
App Item ID:           497799835
App External ID:       813434267
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Xcode [10557]
User ID:               501

Date/Time:             2015-10-14 12:38:50.754 +0200
OS Version:            Mac OS X 10.11 (15A284)
Report Version:        11
Anonymous UUID:        AE86FBDD-3DF0-170B-2EDC-C5C7B67C46E0

Sleep/Wake UUID:       A5845897-DD62-4799-B12E-DF0EB270E578

Time Awake Since Boot: 95000 seconds
Time Since Wake:       90000 seconds

System Integrity Protection: enabled

Crashed Thread:        36  Dispatch queue: com.apple.root.user-interactive-qos

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x000000012639b000
Exception Note:        EXC_CORPSE_NOTIFY

VM Regions Near 0x12639b000:
    CG backing stores      0000000126387000-000000012639b000 [   80K] rw-/rw- SM=PRV  
--> 
    CoreAnimation          000000012639c000-00000001263cb000 [  188K] rw-/rwx SM=PRV  

Application Specific Information:
ProductBuildVersion: 7A1001

EDIT 2

I was hoping that new updates would fix this issue but Xcode 7.1 (7B91b) is still crashing when editing constraints in storyboards, using OS X El Capitan 10.11.1

like image 770
crubio Avatar asked Oct 13 '15 16:10

crubio


1 Answers

Like I told you in the comments a cleaning of Xcode and the simulator might solve the issue. This is what i followed in the past:

  • Quit Xcode and clean out ~/Library/Developer/Xcode/DerivedData manually
  • clean and reset Xcode
  • reset Simulator
  • restart Xcode
  • eventually restart your macbook

You can also do this but there may be some loss. Some times it helps though:

  • delete ~/Library/Caches/com.apple.dt.Xcode

edit: Changing the resolution of your retina to "more space" will most likely fix your issue and you will get no more storyboard crashes. Thanks @Julian Ko!

like image 192
Korpel Avatar answered Oct 20 '22 10:10

Korpel