Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Editing storyboard in Xcode 5 is very slow

I have Xcode 5 and storyboard editing is very slow. Each time I start Xcode I get the message:

"The document "MainStoryboard.storyboard" had 26 internal inconsistencies that were found and repaired."

and

"Multiple resources have the same name: yellowbutton.png, etc. The preceding issues may have occurred due to an SCM operation such as merging."

Standard solutions as deleting the workspace file did not help. How can I solve this?

Thanks!

like image 699
Rudolf J Avatar asked Oct 09 '13 11:10

Rudolf J


2 Answers

I had a similar result when I added a segmented control inside a uitoolbar. It would crawl but only when Xcode was on my external monitor. What did the trick, oddly enough, is making sure the segment control style is set to Bar.

like image 200
Sean Avatar answered Sep 23 '22 11:09

Sean


I had the same issue. Whenever I opened the storyboard after the inconsistencies message was displayed, Xcode would consume 60%+ CPU and essentially make it unusable.

I (very slowly) found which images were being reported as problems, then deleted them through finder and restarted Xcode. You may also need to remove any references to these images in the storyboard.

Xcode now runs fine - hope it helps!

like image 28
Tim Windsor Brown Avatar answered Sep 25 '22 11:09

Tim Windsor Brown