I\'ve recently upgraded to Xcode 8 and updated my project to Swift 3. All worked fine for a little while. Storyboard loading has always been slow (even when still running Xcode
How I solve the storyboard hanging issue:
</dependencies>
tag from the old one to the new one.I had this problem shortly after upgrading to Xcode 9, any time I changed anything in the storyboard (even moving a view by 1 px), it would hang with the spinning beachball of death for at least 10s.
I didn't want to clear my entire xcuserdata folder and lose all my breakpoints etc, but just deleting UserInterfaceState.xcuserstate
and restarting Xcode worked for me.
I just upgraded to Xcode 8.3 and this storyboard hanging issue came...I've tried all that mentioned above, none of them works.
Finally I noticed there's some auto-layout warning saying that one of the navigation controller scene's navigation bar size is not correct. It insists that its width should be 320 while the chosen device is iPhone 7. I switched back to Xcode 8.2.1(8.3 is just too slow to change anything!), then changed the viewing device to iPhone SE...all fixed!
I had a similar problem: Interface Builder was slow to the point of being almost completely unresponsive.
I found that clearing my xcuserdata
directory restored IB to normal speed.
Presumably some bad state had crept in that was causing the slowdown.
rm -rf Project.xcodeproj/xcuserdata/
rm -rf Project.xcworkspace/xcuserdata/