Storyboard breaks Xcode when opened

Whenever I try to open my storyboard, Xcode crashes with the following error message

Crash report

The funny thing is that the application works fine in the simulator and builds without errors. What causes this crash? I see two possible failures:

Exception reason: UITableView dataSource is not set

but should this not cause the storyboard to fail?

Details:  Failed to compute auto layout status IBLayoutConstraint, IBUIButton, IBUIDatePicker, IBUITextField, IBUIView, IBUIViewController, and IBUIViewControllerAutolayoutGuide.

Which does not give much information.

I have been using the storyboard with Xcode 5 for some time, so the question does not seem to be related to the transition from Xcode 4 to 5. I can open the storyboard as XML, and I can just open my storyboard for the iPhone.

+4
source share
4 answers

( XML) . , 4 , .

0

git, .

git, , xml , :

1) . 2) . 3) Xcode , "move to trash". 4) .

Ive Xcode 5 git, .

0

: UITableView dataSource

: IBLayoutConstraint, IBUIButton, IBUIDatePicker, IBUITextField, IBUIView, IBUIViewController IBUIViewControllerAutolayoutGuide.

, , , , viewcontroller viewcontroller.h/viewcontroller.m. , , , , view ( ), (), , . .h/.m , .

0
source

What you need to do is reopen the project in Xcode 5 and then go on to the storyboard. Then, on the right side, select “Identity and Type”, and then set “opens” in Xcode 4.6 to open it in Xcode 4.6. And turn off the automatic layout, anyway, when you open it in xcode 5, it will ask you to update it, I think that you did it without thought, it happened to me too :)

enter image description here

-1
source

All Articles