Error: unreachable because it has no entry points

后端 未结 12 1224
小蘑菇
小蘑菇 2021-02-03 20:15

Using Swift I got the error that my \"TableViewController\" is unreachable because it has no entry points and no runtime access via [UIStoryboard instantiateViewControllerWithId

12条回答
  •  无人共我
    2021-02-03 20:54

    For me I just had a view controller that wasn't attached to anything, i.e. I had a UITabBar Controller, and a few View Controllers attached to the TabBar, but there was one View Controller that was stranded, with out any connection to another view.

    From my experience, the error message was,

    “View Controller“ is unreachable because it has no entry points, and no identifier for runtime access via -[UIStoryboard instantiateViewControllerWithIdentifier:].

    The View controller name was the text in quotes, i.e. “View Controller“.

    Hope this helped someone!

提交回复
热议问题