Error com.apple.InterfaceBuilder -1. Storyboard cannot be opened

I came across a slight complication of the project and need some help.

I recently purchased a Mac Mini and want to get started on some of my application projects. So I copied the files from one machine to another. Both computers have Xcode version 4.6.3 installed. Of the 5 projects copied, 4 of them came up just fine. However, the fifth (and, naturally, the one I would like to continue) cannot open the storyboard file. I get the following error when I click on a Storyboard file in my project:

Unable to open document "MainStoryboard.storyboard". The operation could not be completed. (error com.apple.InterfaceBuilder -1.)

Check the console log for more information.

I am aware of another thread that is here: It is not possible to open the storyboard (com.apple.InterfaceBuilder -1. Error) , which is trying to deal with this problem, but I have a slightly different set of variables. I am the only developer who worked on my projects. I never tried to copy or move my applications from folder locations until this copy tries to use another machine. Also some time ago in the project, I remember that I accidentally deleted the Storyboard file and had to dig it out of the garbage and paste it into the project. Not sure if this is what causes my current problem or not, but came to the conclusion that it is worth mentioning.

So my questions are these; Does anyone know what causes this storyboard error and how can I fix it so that I can work on my projects on other computers?

Thanks for the recommendation!

+2
ios interface-builder storyboard
source share
4 answers

This error may occur when using an additional but not installed font. Install this font and re-open the storyboard.

+4
source share

If the error was after git merge , I suggest you clear the inferredMetricsTieBreakers at the bottom of the Storyboard .

  • Open Storyboard as a Source Code (what else could you do?)
  • find inferredMetricsTieBreakers block
  • delete all <segue reference=""/>
  • Open storyboard as Interface Builder - Storyboard
  • Profit!
+13
source share

I would venture to suggest that the place where the project file is used is most likely not the same as the one you copied. This can happen easily if you pull the file from outside your project directories. Quick manual reconnection can be done as follows:

  • Find the file in the Project Navigator. Right-click on it (or equivalent) and select Delete. In the pop-up window that appears, select "Delete link."
  • In the “Project Navigator”, right-click the folder in which the file was previously indicated and select “Add Files to“ Your Project Name. ”Track the location of the file and add it. It should appear in the Project Navigator again.
0
source share

I don’t know how my experience is related to yours, but I had the same problem and finally managed to resolve it by deleting the activity indicator representation via XML storyboards. In particular, the code I deleted was as follows:

 <activityIndicatorView hidden="YES" opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" hidesWhenStopped="YES" style="gray" id="XNx-FL-WkR"> <rect key="frame" x="15" y="80" width="20" height="20"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> </activityIndicatorView> 

When I deleted these XML lines and switched back to the interface builder view, Xcode deleted the output to which the indicator was connected (just one line).

Hope someone helps! I will update my answer if I find an explanation of why this fixed the problem for me.

0
source share

All Articles