xcode 9 crash when open storyboard

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

    I had the same issue, but in my case it was not solved by removing nil keys. As highlighted by Vlad Valentin, it was related to a UITabBarViewController I had in my Storyboard.

    The issue, as stated in the error thrown in the Xcode crash report:

    UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Could not find class named UIImage
    

    related to a background image I had assigned to the tabBar. Once I removed the image from the Storyboard source code, I could then open Interface Builder again.

    Remove:

    
    

    When I tried re-adding the image using Interface Builder, Xcode threw the same exception. I have resorted to loading the image programmatically. Hope this helps, and will save some people having to fully re-create their UITabBarViewController's.

提交回复
热议问题