Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The document "MainStoryBoard.storyboard" could not be opened

The document "MainStoryBoard.storyboard" could not be opened. The operation couldn’t be completed. (com.apple.InterfaceBuilder error -1.)

Our team using SVN and when one of our developer committed the code, the others are get above message and are unable to open the MainStoryBoard. Also we have tried checking out the whole repository, but still the error exists.

Any help will be greatly appreciated.

Thanks.

like image 778
Say2Manuj Avatar asked Oct 04 '12 10:10

Say2Manuj


2 Answers

Try to make sure all the UILabels in the storyboard are using plain text

UILabel text attribute = PLAIN

This solve the problem for me after almost 4 hours of trying everything!!!!

And also make sure you have installed on your system the fonts you are trying to use.

like image 51
David Cespedes Avatar answered Oct 03 '22 02:10

David Cespedes


We had this problem today - a remote developer could not open a storyboard that worked fine on two machines here. Xcode 4.5.1 and iOS 6.0.

I opened the storyboard file in BBEdit and used the "Zap Gremlins" command. It found several gremlins, all in a few attributed strings (that we were styling as a frill, not at all necessary). I closed BBEdit without saving, went back into Xcode, and removed these strings from the storyboard file. Xcode is now able to open the storyboard.

like image 22
Michael J. Avatar answered Oct 03 '22 01:10

Michael J.