ios - iOS 应用程序可在 iPhone(12.4.5) 上运行,但不能在 iPad (13.3.1) 上运行
问题描述
这是我的问题:我有一个正在开发的 iOS 应用程序。它在装有 iOS 12.4.5 的 iPhone 6 上运行良好。当我想在装有 iOS 13.3.1 的 iPad Mini 上运行它时;我在 Xcode 的调试控制台(版本 11.3.1)中得到了这个:
2020-03-02 ... *** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: 'Could not find a storyboard named 'Main' in bundle NSBundle
</private/var/containers/Bundle/Application/5...1/MyApp.app> (loaded)'
*** First throw call stack:
(0x1824e8a48 0x18220ffa4 ..... 0x1822ea360)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
对任何人都有意义吗?
它说“找不到故事板......”。事实上,我已经删除了故事板,因为我不想要它,这在我的 iPhone 上没问题。我是否需要检查(或做)更多事情才能使其在 iPad 上运行?
有关信息,这里是 AppDelegate 中的相关代码,以防它可能有用。
class AppDelegate: UIResponder,UIApplicationDelegate, UNUserNotificationCenterDelegate,CLLocationManagerDelegate {
var window: UIWindow?
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions:
[UIApplication.LaunchOptionsKey: Any]?) -> Bool {
window = UIWindow(frame: UIScreen.main.bounds)
let navigatCtrlr = UINavigationController(), topVC = ViewController()
navigatCtrlr.viewControllers = [topVC]
navigatCtrlr.navigationBar.tintColor = UIColor.darkGray
window!.rootViewController = navigatCtrlr
window!.makeKeyAndVisible()
.....
return true
}
.....
}
此外,主故事板已从 Info.plist 中删除
解决方案
推荐阅读
- entity-framework - aspnetboilerplate EventCloud 示例 - 设计模式
- php - 解析 RSS 附件 URL - PHP
- java - Gson 不能 de-json-lize 它 json-lized 的内容?
- c# - 如何使用autofac动态更改更改DI?
- java - 阿拉伯字母转??在excel中使用java
- python - DF.topandas() - 未能在 hadoop 二进制路径中找到 winutils 二进制文件
- python - python列表到列
- select - 从多个表中选择一个内部表
- c# - 在 if/else 中找不到按钮的变量
- android - 如何使用导航架构组件从片段中获取结果?