Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcode 6 interface builder very slow performance when showing viewcontrollers with constraints

I have an problem with Xcode 6 really responding very slowly to user interactions, e.g. editing code, scrolling areas etc. This particularly happens when the interface builder show the view controllers with constraints in the storyboard (4/14 vcs has constraints i just begin the project) additional i use extra monitor.

I'm wondering if there is anything I can do to improve performance changing xcode options or other way.

My development machine is a MacBook Pro Retina (Retina, 15-inch, Late 2013) with 2.3Ghz Intel Core i7 and 16 GB RAM (1600 MHz DDR3), running OSX 10.9.5 (Mavericks).

like image 952
fabrizotus Avatar asked Oct 14 '14 20:10

fabrizotus


2 Answers

I had this same problem where performance plummeted on an external display.

What I ended up discovering was that the external monitor issue was indicating that there was a UIView that interface builder couldn't quite figure out properly for auto-layout.

In my case it was a UIToolbarBarItem that contained a UIView that contained a UILabel. Once I removed the offending UIToolbarBarItem the performance issue resolved itself. It went from being completely unusable to smooth scrolling.

You should check if you have a UIView inside something that might cause auto-layout to freak out.

like image 23
Gordon Tucker Avatar answered Jan 22 '23 18:01

Gordon Tucker


Do you use an external monitor? If yes, probably that's the problem. Try moving to the main macbook screen and try again.

That solved the problem for me.

EDIT: sorry, just read you have an external monitor. So yes, move to the main screen and check if that solves the problem.

EDIT 2: seems like Apple fixed the problem, no more issues using my external monitor!

EDIT 3: meh! Problem persists, not sure why it stopped happening, and happens again now.

like image 112
Alan Sikora Avatar answered Jan 22 '23 18:01

Alan Sikora