Xcode 6.3 freezes/hangs after opening XIB file

前端 未结 10 1312
离开以前
离开以前 2020-12-12 13:35

After upgrading to Xcode 6.3 (release version), Xcode now freeze every time I open a XIB/Storyboard file that includes an IB_DESIGNABLE view that uses a cu

相关标签:
10条回答
  • 2020-12-12 14:06

    This bug has been fixed in the 6.4 Xcode beta that came out today. Go to the dev center and log in to download it.

    0 讨论(0)
  • I've already suggested an edit for a more accurate description.

    It only happens when your project contains a custom font. It'll freeze just by visiting any Storyboard/XIB that contains an IBDesignable custom view, not even referencing to that font in your Storyboard/XIB.

    My workaround is to use have an older version of Xcode also installed (Xcode 6.3 beta or Xcode 6.2) and use that to update your Interface Builder files, and never open it in 6.3. open those Storyboard/XIB in a new window in Xcode with option+shift+click the file in the project tree.

    Whenever you encounter the freeze, I use this command to clear the saved state just for that project.

    rm -rf YourProject.xcodeproj/project.xcworkspace/xcuserdata

    0 讨论(0)
  • 2020-12-12 14:14

    @O. Kurnenkov's answer worked for me. It didn't have anything to do with IB_Designable nor custom fonts, Cocoapods, etc.

    For some reason having an "Opaque Navigation Bar" causes the nib file (it doesn't seem to affect storyboards) to constantly change y position; this can be seen in the Size Inspector where the y position will flicker between 0 and 64. This is happening to me with Xcode 8.2 (8C38).

    My guess here is that this causes Xcode to constantly update the layout thus draining resources and causing it to hang/freeze.

    The solution is to use any of the "Translucent" options, Inferred, or None.

    Hope this helps!

    0 讨论(0)
  • 2020-12-12 14:15

    I don't have an answer but found out that simply force-quitting and restarting will re-launch Xcode in the exact same situation. To just be able to restart Xcode, remove the folder ~/Library/Saved Application State/com.apple.dt.Xcode.savedState.

    0 讨论(0)
提交回复
热议问题