Editing storyboard in Xcode 5 is very slow
Asked Answered
C

4

7

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!

Coverture answered 9/10, 2013 at 11:29 Comment(11)
Clicking OK for me once resolves the problem :|Erastian
yup...after selecting OK it will never ask againFormulate
Was Xcode also very slow with you guys?Coverture
I repaired but every time I go into a storyboard, beach ball of death for 20-30 seconds .... so annoying !Grabowski
I got the same problem, Opening the storyboard makes everything slow down A LOTProvitamin
Same problem for me. I have quite a large storyboard but it worked ok in Xcode 4. Xcode 5 is really slowYabber
same issue. I am running Xcode 5, Mavericks, Mac Mini Late 2012 (i5, 4 GB ram)Heedless
Did you found any solution to run it fast?Geotaxis
@BrianBoyle : Did you found any solution to run it fast?Geotaxis
Nope. I'm pretty sure its as a result of XCode analysing the storyboard every time you open it to make sure there are no inconsistencies in it. One solution I know of is to split your storyboard up into smaller ones. However, this is a lot of work if, like me, you have a large and complex storyboard.Yabber
Same issue da. cant control my anger. Plz da help me.Marcelina
L
2

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.

Lir answered 20/5, 2015 at 20:28 Comment(1)
Thx! That worked for me. Probably a lot calculation effort to do when Segment Control -> Style is "Plain"!Aspasia
H
1

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!

Homeopathy answered 14/11, 2013 at 9:57 Comment(0)
C
0

Try removing all the layout constraints on the view. Storyboard was unusable due to performance until I did this. I'm trying to learn constraints and must have totally jacked them up.

Its under Editor - Resolve AutoLayout Issues - Clear All Constraints in View Controller"

Cleaner answered 18/1, 2014 at 15:8 Comment(0)
H
0

The thing that finally fixed it for me was to disable snapshots in each of the projects that was having performance problems.

File > Project Settings > Snapshots

Once I had disabled the snapshots, I also nuked all the snapshots. The total disk usage in my snapshots directory in a fairly short period of time was ~3GB.

The default directory for the snapshots to be stored in is :~/Library/Developer/Xcode/Snapshots.

Keep in mind that the snapshot setting is set for each project, so you will need to do this for each every project that you are having the performance issues.

Heligoland answered 21/7, 2014 at 22:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.