应用程序崩溃并显示消息“Usage:leveldbutil command ...”

问题描述 投票:0回答:2

我正在使用Swift 3和XCode 8.3.3。

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

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

然后它崩溃我找不到任何解决这个问题的方法。

ios iphone swift xcode
2个回答
0
投票

尝试清理项目并重试。

enter image description here


0
投票

检查你的AppDelegate,并找到@UIApplicationMain这句话,如果这不可用,然后放在这个类的上方,就像这样

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

  var window: UIWindow?

  func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
© www.soinside.com 2019 - 2024. All rights reserved.