ios - 应用程序崩溃并显示消息 "Usage: leveldbutil command..."

标签 ios iphone swift xcode

我使用的是 Swift 3 和 XCode 8.3.3。

我的应用程序在启动之前崩溃,它打印:

Usage: leveldbutil command...
   dump files...         -- dump contents of specified files

然后它崩溃了,我没有找到这个问题的任何解决方案。

最佳答案

检查你的AppDelegate并找到@UIApplicationMain 如果此语句不可用,则将其放在类上方,如下所示

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

  var window: UIWindow?

  func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

关于ios - 应用程序崩溃并显示消息 "Usage: leveldbutil command...",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46837144/

相关文章:

ios - 在 iOS 8 上选中时 TableView 单元格跳转

ios - 如何在 iOS 中创建在每台 iPhone 中正确显示的按钮列表

ios - 核心数据 - 检测获取对象中的相等属性

ios - Google AdMob 返回 "Configuration does not have valid Google App ID"

swift - 尝试使用 Material 设计芯片设计 tableviewcell

ios - 删除警告

ios - UIGestureRecognizer - 在多层上使用

ios - 使用 MKAnnotationView centerOffset 后奇怪的定位

iOS 转换为 BOOL

ios - obj-c 图像自动调整大小...?