简体   繁体   中英

Can't open storyboard in Xcode 6.1

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

This is the error that I see every time I click on storyboard of project.

Had the same error when opening a storyboard in Xcode 6 for the first time.

One solution is to open the storyboard with your text editor of choice and manually set auto layout to false: useAutolayout="NO" . Problem with this approach is that you'll loose all of your layout constraints.

Another option that worked well for me, was to install Xcode 5.1, open the storyboard and, in File Inspector in section Interface Builder Document , update Opens in option to use Default (5.1) , then open the storyboard again in Xcode 6.

In my case the storyboard files had .XML Extension! by removing .xml extension my problem was solved.

name should be like:

Main.storyboard

and NOT :

Main.storyboard.xml

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM