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.
- Move to another ViewController
- Stop Safari Mobile from giving input buttons rounded corners
- How to exclude Notes and Reminders apps from the UIActivityViewController?
- How to use multiple protocols in Swift with same protocol variables?
- How can you display info screen on iPhone during call
- Xcode 4.2 with iOS 5.0 not detecting iPhone iOS 5.1.1
8 Solutions Collect From Internet About “The document “MainStoryBoard.storyboard” could not be opened”
Try to make sure all the UILabels in the storyboard are using plain text
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.
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.
Kunal Balani has the right answer. It wasn’t that attributed text was adding bad info into the Storyboard. It was that the other machine didn’t have the font files installed.
Custom fonts that were used by the attributed label was missing on the target machine. Installing the font solved the issue for me. Thx Kunal
I had the same problem when i copied a project from one MAC to another. Finally i discover that i need to install some fonts that were being use in the story board.
convert the All UILabels in the storyboard are using plain text
In my case the storyboard file had somehow ended up with execute permissions:
-rwxr-xr-x 1 Luna staff 106K Oct 28 00:07 Main.storyboard
Comparing this to other storyboard files in my project it was clear that was abnormal. Running
chmod -x Main.storyboard fixed the problem:
-rw-r--r-- 1 Luna staff 106K Oct 28 00:07 Main.storyboard
For me editing the storyboard didn’t solve the problem. The only thing that worked was to create a new storyboard file, open the old and the new storyboards as source code (right click -> open as), and copy the xml from the old to the new storyboard. I didn’t take the whole xml, just the scope of the
- Is there any API that could use to call the DES encrypt and decrypt in objective-c?
- Swift Accessing year from UIDatePicker
- How do I use performSegueWithIdentifier: sender:?
- Adding a view controller as a subview in another view controller
- Swift: Exception while trying to print CLLocationSpeed “unexpectedly found nil while unwrapping an Optional value”
- Swift access to variable length array
- How should I handle parameter validation Swift
- How to flip a UIView around the x-axis while simultaneously switching subviews
- Searching on a Background Thread
- How do I define the size of a CollectionView on rotate
- Ignoring the dynamic type in iOS: Accessibility
- How do I have two post routes for the same class in RestKit
- How To Properly Add Child View Controller in iOS 8 With Swift
- target overrides the FRAMEWORK_SEARCH_PATHS build settings
- How do I create connected text fields in ios?