I have a project with 2 storyboards built in Xcode 5.1. When I open either of those in Xcode 6 I get this error. They never opened in any beta so I don't think it's a bug of Xcode. Last tried in Xcode 6 GM.
The document "Main_iPhone.storyboard" could not be opened. The operation couldn’t be completed. (com.apple.InterfaceBuilder error -1.)
Log says this:
ibtoold[1880:1335652] Exception raised while unarchiving document objects - -[NSTaggedPointerString getCharacters:range:]: Range {0, 10} out of bounds; string length 9
Recovery Suggestion: Check the console log for additional information.
Made it work when cleared Image property of some UIImageViews with .png format. I'm afraid, at the end of the day, it was a bug in Xcode 6. Hopefully, this question will help someone.
This problem is not exclusively for StoryBoards. I have the same error when opening a regular UIViewController that contains a PNG image.
I edited the XIB in a text editor to remove a PNG image I had on a button. I could then open the XIB in Xcode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With