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

前端 未结 13 724
滥情空心
滥情空心 2020-12-29 07:59

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

相关标签:
13条回答
  • 2020-12-29 08:11

    (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 :)

    0 讨论(0)
  • 2020-12-29 08:13

    My Xcode crashed when I dragged a button on Main.storyboard to create a IBOutlet.

    I found it caused by a build settings item -- [Objective-C Automatic Reference Counting].

    If it is set to "No", Xcode will crash on creating a IBOutlet.

    OS X Version: Yosemite 10.10.1 
    
    Xcode Version: 6.1.1 (6A2008a)
    

    Hope this helps.

    0 讨论(0)
  • 2020-12-29 08:15

    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.

    0 讨论(0)
  • 2020-12-29 08:16

    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.

    0 讨论(0)
  • 2020-12-29 08:18

    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.

    0 讨论(0)
  • 2020-12-29 08:19

    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"
    
    0 讨论(0)
提交回复
热议问题