Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't open Storyboard with Xcode 6

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.
like image 702
Yaroslav Avatar asked Mar 18 '23 12:03

Yaroslav


2 Answers

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.

like image 199
Yaroslav Avatar answered Apr 26 '23 06:04

Yaroslav


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.

like image 34
joehanna Avatar answered Apr 26 '23 05:04

joehanna