7

I had previously installed XCode 7.3 and updated it to 8.1 through the AppStore. When the project opened(XCode 8.1, Swift 3.0, Mac OS X El Capitan 10.11.6) I'm trying to open any file(.swift/.xib/.storyboard/.plist/.coredata etc.) the XCode just crashes.

Here is the my Crash Log of XCode 8.1: https://gist.github.com/anonymous/339bffc7b67100ae5e82012393cb00bd

kb920
  • 3,039
  • 2
  • 33
  • 44
  • are you using version control for project? – Ronak Chaniyara Nov 05 '16 at 08:27
  • Clear the derived data folder(~/Library/Developer/Xcode), and also the XCUserData from your Project. kindly make sure you quit all Xcode and then try these steps.I had faced similar issue and these steps did worked for me. – chitnisprasanna Nov 05 '16 at 10:40
  • If nothing else works you can try deleting `~/Library/Caches/com.apple.dt.Xcode` (when Xcode is quit) it resolves many issues *but* you also lose many preferences that you'll have to set again manually, so use it as a last resort. – Eric Aya Nov 05 '16 at 13:28

3 Answers3

7

Try below steps, it may solve problem:

  • Open a Finder window and navigate to your project
  • Right-click on the .xcodeproj file (it’s a package actually)
  • Select Show Package Contents
  • New window appears
  • Delete a folder called xcuserdata

Also, Clear the derived data folder.

img

Some helpfull links:

  1. http://pinkstone.co.uk/xcode-crashes-every-time-you-open-it-and-how-to-fix-it/

  2. XCode Crashing When Opening Project File

  3. How to add .gitignore file into Xcode project

Community
  • 1
  • 1
Ronak Chaniyara
  • 5,335
  • 3
  • 24
  • 51
  • 2
    For me, Xcode 8.1 started crashing on opening a particular project, this worked great (cleaning derived data in my case was not necessary). – paulvs Dec 07 '16 at 15:28
3

In the Utilities view, put "Top Bar" and "Status Bar" entries to "None". Temporary fix from Apple.

Screenshot

Juri Noga
  • 4,363
  • 7
  • 38
  • 51
Julien
  • 1,009
  • 1
  • 9
  • 11
0

Select Xcode and Follow 4 steps that highlighted in photo and remove derived data then restart your project.enter image description here

Hemant Solanki
  • 894
  • 10
  • 24