xcode 9 crash when open storyboard

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

    The issue is a nil key tag (at least for my case)

    or more generally

    That has its counterpart

    or more generally

    < key="generic_name"/>

    Removing all of them solves the issue.

    1. Open the storyboard as Source Code
    2. Search and remove: or any (replace with your particular tag name)
    3. Search and remove their counter part: or any << generic_name > key="generic_name"/> (replace with your particular tag name)
    4. Save and open your storyboard normally
    5. Enjoy

    EDIT:

    This tags seems to be related and are in the Storyboard Source Code of UITabBarControllers however their counterparts are scattered around UIViewControllers connected to the UITabBarController. Can be one, two or more levels below.

提交回复
热议问题