Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode 5 Storyboard Internal Inconsistencies

In XCode 5 DP6 and now GM, I have a problem with all of my projects not allowing me to use an Image Asset in more than one place on a storyboard without getting an error upon launch from XCode stating "The document 'main.storyboard' has X internal inconsistencies that were found and repaired. Please save this document to fix the inconsistencies."

If you choose to list the inconsistencies, you see that it's saying that every UIButton, or UIImageView that uses an image from your asset catalog, past the first use of it, is duplicated in the Storyboard. I try to save the document, but it does nothing, and when I relaunch the project, I get the same error.

Correct me if I'm wrong, but it's quite possible to use an Image Asset more than once in a project, right? I do not need to make a duplicate image for each time I want to use it, do I?

Has anyone else run into this problem? It occurs in every project I make, on two separate machines, in both XCode 5DP6, and XCode 5GM.

like image 423
cdeangelus Avatar asked Sep 11 '13 13:09

cdeangelus


2 Answers

same bug here. you should file a bug report (https://developer.apple.com/bug-reporting/).

For me it's seem like it's the message is also incorrect. If I check the diff before and after this error I have this:

-  <rect key="frame" x="0.0" y="0.0" width="320" height="310"/>
+  <rect key="frame" x="0.0" y="0.0" width="319.99999999999994" height="310"/>
like image 198
Hugues BR Avatar answered Nov 05 '22 10:11

Hugues BR


I have the same results using the GM. In my case I have saved a copy of the storyboard file before and after the "repair." The diff indicates that the files are binary equals.

like image 2
user2791976 Avatar answered Nov 05 '22 11:11

user2791976