xcode - 警告 : Scene is unreachable due to lack of entry point and does not have an identifier for runtime access. swift

标签 xcode swift warnings uistoryboard

我对这个警告做了一些搜索。我很确定我在所有 View Controller 中都有所有 Storyboard ID,并且我确实选择了一个初始 Controller 。但是,警告仍然存在。我仍然想知道的唯一一件事是我还需要为导航 Controller 设置 Storyboard ID 吗?如果不是这种情况,有什么建议吗?谢谢。

最佳答案

我认为您没有选择初始 ViewController。转到您的事件 Storyboard,选择您的初始 ViewController,然后单击 Xcode 右上角的属性检查器,然后单击“In Initial View Controller”标记。有关更多信息,请查看图像 enter image description here

关于xcode - 警告 : Scene is unreachable due to lack of entry point and does not have an identifier for runtime access. swift ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36111842/

相关文章:

ios - 如何在 Xcode 9 中添加自定义库

iphone - 如何在 iPhone 应用程序中拥有 2 个 leftBarButtonItems,并让 1 个成为默认后退按钮?

ios - 动画 UIView 离开屏幕然后从底部无休止地离开屏幕

PHP:为什么将 "Strict standards: Declaration of x should be compatible with y"应用于静态方法?

php - 警告 : preg_match() [function. 预匹配]:未知修饰符 'v'

iphone - 未声明的标识符 Objective C

c++ - 我在Mac上安装Caffe时出现错误 "clang: warning: argument unused during compilation: ' -pthread' "

swift - 地幔忽略 JSON 中的键

ios - 有没有更短的方法来使用 indexPath.row?

c++ - 未初始化警告需要-O2