Error: unreachable because it has no entry points

后端 未结 12 1195
小蘑菇
小蘑菇 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 21:00

    Set Your TableViewController an Initial View Controller from the Storyboard

    0 讨论(0)
  • 2021-02-03 21:02

    You need to mark a viewController in your Storyboard and set it to the initial viewController. You do this under the Attributes Inspector. This means that you set which viewController shall open when you start your application.

    0 讨论(0)
  • 2021-02-03 21:05

    This is my error.

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

    I delete the code in ViewController , but I don't disconnect the connect in ViewController of Main.storyborad.

    0 讨论(0)
  • 2021-02-03 21:06

    I fixed this by renaming the default "ViewController.swift" as "MainViewController.swift". Perhaps this is a warning to the user to insure everything is defined as you expect it to be.

    I experienced this issue again and backtracked, eventually clearing the storyboard and then deleting it entirely from the project and the issue was still present. Relaunching Xcode fixed the issue.

    0 讨论(0)
  • 2021-02-03 21:15

    In my case I accidentally deleted Storyboard Entry Point without knowing, and app wasn't starting,

    After several undo's, I saw the problem and corrected it

    0 讨论(0)
  • 2021-02-03 21:16

    I had the same problem. I figured out that I had forgotten to add an "ID" to my Tab Bar Controller. Hope this help somebody.

    0 讨论(0)
提交回复
热议问题