Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 7.3 is excruciatingly slow when loading Storyboard IB

I recently upgraded to Xcode 7.3. I found that loading up the storyboard can take anywhere from 5 to 10 minutes to complete(and may sometimes result in a crash). I've restarted my Mac several times. I uninstalled Xcode and reinstalled it to no avail. I then cleared my Derived Data as well as com.apple.dt.Xcode to find that this did not help either. Is anyone experiencing a similar issue and possibly has a solution?

like image 993
ChairmanMeowth Avatar asked Mar 25 '16 00:03

ChairmanMeowth


2 Answers

I am using Xcode 7.3.1 and had the same problem. My problem was solved by disabling source control. Go to Xcode->Preferences->Source Control and then Uncheck the Enable Source Control. Worked for me. Thanks.

like image 192
Ashik Avatar answered Oct 13 '22 13:10

Ashik


Yep I had the same problem. In design mode, it's Autolayout that is causing the 5-10 second delay between edits, especially if it's a large storyboard. Turning off Autolayout in the storyboard at design time fixed the issue for me:

Open project Select storyboard from the Project Navigator Open the file inspector Under Interface Builder Document uncheck 'Use Autolayout'

If you need Autolayout at run time, I recommend you layout your Storyboard in design time with this off (to avoid those long delays between edits) then turn it back on afterwards. Or, turn Auto layout on programatically. Or better yet, split your storyboard out into smaller storyboards.

Referenced this question: Can I disable autolayout for a specific subview at runtime?

like image 40
Antonio de Perio Avatar answered Oct 13 '22 13:10

Antonio de Perio