gpt4 book ai didi

ios - 无法为 UIMainStoryboardFile 'Main' 实例化默认 View Controller - 也许未设置指定的入口点?

转载 作者:IT老高 更新时间:2023-10-28 11:20:56 32 4
gpt4 key购买 nike

我在一个新创建的应用程序中使用 Xcode,当我运行该项目时,它没有显示在 iOS 模拟器中,并且我收到以下消息:

Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set?

当然,我已经在 Google 上搜索过了,每个人都指出这是因为 Xcode 还不知道哪个 View Controller 是最初的 View Controller 。但奇怪的是,我将应用程序创建为基于页面的应用程序(也尝试了单 View 和选项卡式应用程序选项),而 Xcode 已经为它定义了一个 Storyboard。

另外,当我进入项目的主界面选项时, Storyboard(由 Xcode 本身命名为“Main”)被设置,并且在 Storyboard中,我的 View Controller 被设置为“初始 View Controller ”

Is Initial View Controller

怎么了?

最佳答案

在属性检查器中检查Is Initial View Controller

enter image description here

关于ios - 无法为 UIMainStoryboardFile 'Main' 实例化默认 View Controller - 也许未设置指定的入口点?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20875823/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com