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!


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.


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!


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"

链接地址: http://www.djcxy.com/p/16486.html

上一篇: 缓冲到MediaCodec的表面输入

下一篇: 在Xcode 5中编辑故事板非常慢