Xcode:“由于缺少入口点而无法到达场景"但找不到 [英] Xcode: "Scene is unreachable due to lack of entry points" but can't find it
问题描述
Xcode 4.5.2给我以下警告:
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:.
很遗憾,我无法识别出所涉及的场景.在问题导航器"中选择警告不会在情节提要中突出显示任何内容.我有一个相当复杂的故事板(超过30个场景).
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).
有什么建议吗?
推荐答案
虽然该线程很旧,但我没有看到描述对我有用的答案,所以去了...
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.
我尝试在情节提要中命名所有17个视图控制器(如@bobnoble的回答).我使用了基于视图控制器长名称的命名约定,例如"Jobs View Controller"的"jvc".当我尝试构建时,我收到一条错误消息,指出其中一个视图控制器具有重复的名称.往下看,我发现我有一个真正的 duplicate ,实际上是一个视图控制器完全叠放在其双胞胎的顶部.我怀疑这是由于用户界面实验造成的剪切和粘贴损坏,我没有完全退出.
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.
无论如何,删除未连接的双胞胎可以解决我的问题.此后,我删除了所有VC名称,因为它们没有在代码中引用.
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.
这篇关于Xcode:“由于缺少入口点而无法到达场景"但找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!