Xcode 8 hangs / unresponsive when opening storyboard

前端 未结 16 1397
南方客
南方客 2021-01-31 17:48

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

相关标签:
16条回答
  • 2021-01-31 18:27

    How I solve the storyboard hanging issue:

    1. Back up the problematic storyboard file.
    2. Delete it in the project.
    3. Create a new storyboard with the same name and location as the deleted one.
    4. Edit the 2 storyboards with text editor.
    5. Copy the xml data after the </dependencies> tag from the old one to the new one.
    0 讨论(0)
  • 2021-01-31 18:27

    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.

    0 讨论(0)
  • 2021-01-31 18:28

    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!

    0 讨论(0)
  • 2021-01-31 18:29

    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/
    
    0 讨论(0)
提交回复
热议问题