Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 8 crashes right after opening project (Seems to be Scene Editor related)

So Xcode 8 has been pretty buggy and seems to crash constantly when using the Sprite Kit scene editor and tile maps...

The error occurred while I had a scene open in the scene editor and was using tile maps.

Now I can't even open my project for more than 3 seconds without Xcode crashing... Kind of at a loss as to what to do...

I've tried uninstalling and reinstalling Xcode...but that did nothing.

Here's a pastebin of the crash report. Any help would be extremely appreciated.

http://pastebin.com/kDMjPYec

like image 432
Corey F Avatar asked Oct 11 '16 00:10

Corey F


4 Answers

Clearing the Xcode's derived data folder worked for me. you can find the derived data location in Xcode -> Preferences -> Locations tag.

like image 117
krishnan Avatar answered Jan 03 '23 22:01

krishnan


I had a similar problem (unrelated to SceneKit though) — Xcode would just crash when opening a certain project. Deleted my UserInterfaceState.xcuserstate file from under the xcworkspace directory and that solved it.

like image 22
villapossu Avatar answered Jan 03 '23 22:01

villapossu


I had this issue. Got it solved using Solution 2.

Solution 1 :

  1. Press cmd + comma (,) to open Xcode Preference window
  2. Goto Locations Tab (last one)

Screenshot 1

  1. In Derived Data section check arrow present next to path. Click on that.
  2. This opens a new window with location of Derived data
  3. Delete all the content of this folder. It is created everytime you build project.

Screenshot 2

Solution 2 :

  1. Goto location where your project workspace is present
  2. Right click on workspace and select Show Package content

Screenshot 3

  1. This opens a window with content of workspace. Delete xcuserdata folder. This folder is like cache viz storing details of all you have done with project such as number of debugger set etc.

Screenshot 4

like image 31
Jayprakash Dubey Avatar answered Jan 04 '23 00:01

Jayprakash Dubey


I believe the Git reset command was made for moments like this. So rather than pointing the finger at Xcode, it's better to have a workflow that acknowledges that things sometimes go wrong. Git reset would take you back to a known good state.

like image 30
Mark Brownsword Avatar answered Jan 04 '23 00:01

Mark Brownsword