Xcode 6 GM crashes when selecting the main storybo

2020-02-23 07:07发布

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?

13条回答
We Are One
2楼-- · 2020-02-23 07:43

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"
查看更多
男人必须洒脱
3楼-- · 2020-02-23 07:45

What worked for me, and still using AutoLayout

  1. Open the storyboard as source code
  2. Editing useAutolayout="YES" to useAutolayout="NO"
  3. Closing the source code
  4. Open the storyboard as Interface Builder - Storyboard
  5. And this is the most important step: In the File Inspector View (left pane) checking "Use AutoLayout"

Done.

查看更多
淡お忘
4楼-- · 2020-02-23 07:48

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.

查看更多
Anthone
5楼-- · 2020-02-23 07:48

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.

查看更多
【Aperson】
6楼-- · 2020-02-23 07:49

I ran into this on Xcode 8, and I was able to

  • save my corrupt storyboard changes on a git branch.
  • switched to a different branch revert to an older commit before the Storyboard got corrupted
  • view storyboard file in Xcode
  • switch to back to branch with corrupt storyboard, and Xcode didn't crash while still viewing the storyboard file
查看更多
劳资没心,怎么记你
7楼-- · 2020-02-23 07:54

Xcode 7.1 on Mac OS X 10.11.1 crashed and opening same project by right clicking the xcode icon made it crashed again. Then I right the xcode icon and opened some other project from the recent list and then opened the same project which was crashing from xcode's menu recent item and it didn't crash.

查看更多
登录 后发表回答