xcode 9 crash when open storyboard

前端 未结 14 2106
说谎
说谎 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:50

    There is a known bug with tab bars containing system tab bar items. The Xcode 9.1 release notes acknowledge this, and suggest a workaround:

    Interface Builder

    A UITabBarItem configured as a system item in a storyboard or xib causes a build failure. (34197132)

    Workaround: Configure as a custom item in Interface Builder, then reset the tab bar item to the desired system item in the awakeFromNib method of the view controller.

提交回复
热议问题