Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I workaround this new warning in Xcode 4.3.1: "Scene is unreachable due to lack of entry points..."?

I have an iOS project with a storyboard. I recently upgraded to Xcode 4.3.1, and now this new warning appears:

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

The problem is that I have some Navigation Controllers in the storyboard with no entry points to them. The reason I have them is so that I can embed other views in them to see the nav bar at design time in Xcode. The actual navigation controller these views are pushed onto at runtime are not in the storyboard (old code that hasn't been ported to the storyboard yet).

Has anyone found a nice workaround for this? I would like to keep my code clean without warnings.

like image 623
brians Avatar asked Mar 17 '12 01:03

brians


1 Answers

You can just set an identifier. In Xcode >5 on the identity inspector on the right pane, you'll find a field called "Storyboard ID". Put any string in there, and Xcode will be happy again.

It just wants to know you could reach it (via that identifier) if you wanted to.

like image 145
danh Avatar answered Oct 11 '22 17:10

danh