Xcode 6.3 Crash when switching from storyboard to another Swift 1.2 file

I installed Xcode 6.3, which includes support for Swift 1.2. A ton of error messages have appeared that mainly affect casting issues.

I switched to the storyboard and cannot return to any other .swift without crashing. I have a forced shutdown, restart, and even reinstall, and I still cannot go from the Main.storyboard file.

I tried the description described here to open the storyboard as code, make some changes, revert those changes, save and try again, and still no luck.

Is something in my code breaking Xcode? Is anyone else experiencing this? I have successfully used Xcode 6.3 beta with the same code base.

Update: This is now fixed in Xcode 6.3.1 , released on April 21, 2015.

+79
ios xcode swift
Apr 09 '15 at 15:11
source share
8 answers

I am going to from the Apple developer forums that this is @IBDesignable problem. Especially in projects that use custom fonts, extra xib, etc.

I somehow fixed my problem by removing all @IBDesignable from the quick definitions of the UIView class. You can open the project directory using TextMate or another, find and delete all "@IBDesignable"

However, I still think this is a MAJOR bug that needs to be worked on. So keep reporting bug reports to Apple.

+67
Apr 09 '15 at 16:18
source share

Temporary solution:

By opening the "New Window" (the same project).

One for the code, one for the storyboard or , first down, freely working with the second window.

You can save @IBDesignables




EDIT: Bug fixed -> Update Xcode 6.3.1

+22
Apr 10 '15 at 9:57
source share

Running Xcode while holding shift fixed it for me.

(This suppresses Xcode state recovery.)




Update: Xcode 6.3.1 released today fixes this problem.

+15
Apr 11 '15 at 6:25
source share

Update Xcode 6.3.1

Everything works for me!

+4
Apr 22 '15 at 6:30
source share

Temporary solution:

If you currently have an open helper editor , navigate to another file using alt+click . You can save @IBDesignables .

0
Apr 10 '15 at 9:37
source share

Here's how I get around this weird error:

  • Before starting Xcode, rename the storyboard file to finder so that Xcode does not find it (for example, add the extension .temp)
  • Running Xcode - works great even if it hanged itself earlier, as it cannot display the storyboard editor
  • Open a new window in Xcode
  • Rename the storyboard file to its original name.
  • In a new window in Xcode - select a storyboard - Xcode does not hang
  • Minimize the new window and work as usual in the original window. Now you can select any file - even a storyboard - without hanging Xcode

One problem remains, though, at least for me. Every time I select a file or edit something, Xcode needs to recompile the storyboard. Have not decided this yet.

0
Apr 13 '15 at 17:20
source share

I can confirm this error. I was stuck in the storyboard and could not do anything to get out of it (I could not even open the assistant). As a workaround, when the storyboard is open, right-click the .storyboard file and select Open As - Source Code . This will switch the storyboard to code, and you can go to any file.

0
Apr 14 '15 at 14:33
source share

This is not a mistake, as Apple fixed it in Xcode 6.3.1 .

0
Apr 21 '15 at 17:24
source share



All Articles