Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode: "Scene is unreachable due to lack of entry points" but can't find it

Xcode 4.5.2 gives me the following warning:

Unsupported Configuration     Scene is unreachable due to lack of entry points and does not have an identifier  for runtime access via -instantiateViewControllerWithIdentifier:. 

Unfortunately I can't identify the incriminated scene. Selecting the warning in the Issue Navigator doesn't highlight anything in the Storyboard. I have a fairly complicated storyboard (30+ scenes).

Any suggestions?

Screenshot for warning

like image 632
Wolfy Avatar asked Nov 23 '12 14:11

Wolfy


2 Answers

In your storyboard, select each of the view controller (red arrow in image below) and look at the Storyboard ID field (red oval). None of the Storyboard ID fields should be blank. When you find one that is, that is the culprit.

enter image description here

like image 163
bobnoble Avatar answered Oct 13 '22 04:10

bobnoble


While this thread is old, I didn't see an answer describing what worked for me, so here goes...

I had this error and visual examination of the storyboard showed that all of the view controllers appeared to be connected to the root view controller.

I tried naming all 17 of the view controllers in the storyboard (as in @bobnoble's answer). I used a naming convention based on the long name of the view controller, e.g. "jvc" for "Jobs View Controller". When I tried to build, I got an error message pointing to one of the view controllers as having a duplicate name. Tracking things down, I found that I had an actual duplicate of a view controller stacked exactly on top of its twin. I suspect it was cut-and-paste damage from a user interface experiment that I didn't back out completely.

Anyway, deleting the unconnected twin solved my problem. After that, I removed all of the VC names as they're not referenced in the code.

like image 23
Bob H Avatar answered Oct 13 '22 06:10

Bob H