xcode 9 crash when open storyboard

前端 未结 14 2108
说谎
说谎 2020-12-09 15:05

XCode 9 GM Candidate 1 is currently crashing when opening a storyboard.

ProductBuildVersion: 9A235

UNCAUGHT EXCEPTION (NSInternalInconsistencyExcepti         


        
14条回答
  •  没有蜡笔的小新
    2020-12-09 15:38

    I was having the same issue: a storyboard created in Xcode 8 would hang in Xcode 9. After taking my Storyboard apart by exporting the views one by one (using Editor / Refactor to Stoyboard - a feature I didn't know existed until I was struck by this issue) I found that two specific views were causing Xcode to hang.

    In both these views, I had added more than one item to a UITabBar - a button on the left, a flexible space and a button on the right. If Xcode tried to display this, it would hang. If I quickly clicked to any other Storyboard once these "poisoned" views were seen, it would also hang.

    The solution is therefore to open the project in Xcode 8, remove all but one item from the TabBar, delete any Derived Data folders, quit Xcode 8, load Xcode 9, do a Product / Clean, and if you're lucky, you'll be good to go.

提交回复
热议问题