Scene is unreachable due to lack of entry points and does not have an identifier for runtime access

使用Storyboard时出现以下警告:

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

这个警告一般出现在你往 Storyboard 拖了一个控制器, 但是没有连线到, 就会提示, 如果是用不到的, 删除这个控制器即可

大意是为了在程序中动态访问Scene,需要给其设置一个Storyboard ID,所以给出了警告,解决方法:设置一个Storyboard ID即可

Scene is unreachable due to lack of entry points and does not have an identifier for runtime access

上一篇:while loading persisted sessions 异常解决方法


下一篇:ios 设置状态栏文本颜色为白色