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

前端 未结 13 813
滥情空心
滥情空心 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:20

    If people are using multiple tabs that might be an issue. My Xcode 6.0.1 was becoming unresponsive whenever the same storyboard was opened in more than one tab...

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

    One solution to this is to open the xib in Xcode 5 and let it change a bunch of settings. Then open in Xcode 6.

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

    I've been wrestling with the same problem after upgrading from Xcode 5 to 6.0.1. Trying to load my large and complicated iPad storyboard would freeze Xcode, bring up the Pinwheel Of Death, and eventually crash it out. Sometimes it would show errors on build as well, mentioning missing OIDs.

    I ended up rolling back the Storyboard file in Git (via the command line since Xcode wouldn't let me get that far) all the way back to the very first straight-from-the-template version. I cleaned the project and rebuilt it, and the storyboard loaded properly.

    I then went forward in time commit by commit, cleaning and building every time. I expected I would get to a point where things broke again - but I got all the way up to the most recent commit without any freezes.

    When I tried jumping ahead by several weeks, though, I got the freeze-ups and crashes again.

    I wonder if the new Storyboard editor in 6.0.1 just needs to build up its internal representations (and caches?) in smaller easy steps rather than the giant leap of a full complicated file.

    This rollback/roll forward/rebuild process took about 45 minutes for me, but that's a whole lot less time than it would take for me to rebuild this storyboard. Hope this helps you.

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

    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.

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

    Was this from an earlier version of Xcode, or was it from one of the earlier Xcode 6 releases? If the latter, then the solution will be to recreate it.

    You might be able to take a look inside the storyboard file and find out if it's a valid document - the file is XML based so you should be able to see if there are any missing elements or problems introduced by a merge conflict, for example. You may also be able to try deleting particular screens to see if that resolves your problem - perhaps the issue is in relation to one particular screen.

    I'd also suggest checking if your objects have implemented an IBDesignable attribute and if you used that in the storyboard; if so, it might be a failure of the NSCoder to be able to restore the object from the file.

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

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