Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 6 GM crashes when selecting the main storyboard or a xib

I just downloaded the Xcode 6 GM and every time I select the main storyboard (and a specific xib) Xcode crashes.

The error to be sent to Apple contains the following info

ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-6238/InterfaceBuilder/Documents/IBCocoaTouchPlatform.m:531 Details: Returned status computation result is not an IBMarshallingResult, it's {

Anyone experiencing the same problem?

like image 212
abinop Avatar asked Sep 11 '14 12:09

abinop


4 Answers

I've heard that it could be an autolayout problem, so I tried to disable it manually and it worked!

If you right click on the storyboard file, open as source code, and REMOVE the useAutolayout="YES", then clean, rebuild, you should be able to open with no problems.

like image 103
Edgar Carvalho Avatar answered Nov 19 '22 09:11

Edgar Carvalho


This was causing me a ton of trouble, and re-creating the storyboard wasn't an option. I got past it by ctrl/right clicking on the storyboard and doing

"Open As" > "Source Code"

I then made a small change, undid it and re-saved the file. Then I did

"Open As" > "Interface Builder - Storyboard"

It opened without crashing Xcode.

like image 15
averydev Avatar answered Nov 19 '22 09:11

averydev


To fix this problem:

  1. open a Finder window and navigate to your project
  2. right-click on the .xcodeproj file (it’s a package actually)
  3. select Show Package Contents
  4. a new window appears
  5. delete a folder called xcuserdata

How to avoid this in the future: once added to .gitignore, you must issue the following command:

git rm --cached ProjectFolder.xcodeproj/project.xcworkspace/xcuserdata/yourUserName.xcuserdatad/UserInterfaceState.xcuserstate

git commit -m "Removing file thats driving me insane"
like image 8
Ricardo Anjos Avatar answered Nov 19 '22 10:11

Ricardo Anjos


(1) Have you cleaned and rebuilt the project?

(2) Have you tried to empty the xcuserdata folder? The folder contains ui states and can be the reason for such an issue, especially when xcode was updated. The xcuserdata folder can be found in your project directory when you right-click your .xcodeproj "file" and select "show package content". Close Xcode, empty the xcuserdata folder and reopen the .xcodeproj file.

Hope one of these helps :)

like image 3
Eike Avatar answered Nov 19 '22 09:11

Eike