{"record":{"id":"be15ff768e6bac19","repo":"GopeedLab/gopeed","slug":"error","errorCode":"ERROR","errorMessage":"error.debugDescription","messagePattern":"error\\.debugDescription","errorType":"error_code","errorClass":"FlutterError","httpStatus":null,"severity":"error","filePath":"ui/flutter/ios/Runner/AppDelegate.swift","lineNumber":25,"sourceCode":"    override func application(\n        _ application: UIApplication,\n        didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?\n    ) -> Bool {\n        let controller : FlutterViewController = window?.rootViewController as! FlutterViewController\n        let batteryChannel = FlutterMethodChannel(name: \"gopeed.com/libgopeed\",\n                                                  binaryMessenger: controller.binaryMessenger)\n        batteryChannel.setMethodCallHandler({\n            (call: FlutterMethodCall, result: @escaping FlutterResult) -> Void in\n            switch call.method {\n            case \"start\":\n                let args = call.arguments as? Dictionary<String, Any>\n                let cfg = args?[\"cfg\"] as? String\n                let portPrt = UnsafeMutablePointer<Int>.allocate(capacity: MemoryLayout<Int>.stride)\n                var error: NSError?\n                if LibgopeedStart(cfg, portPrt, &error){\n                    result(portPrt.pointee)\n                }else{\n                    result(FlutterError(code: \"ERROR\", message: error.debugDescription, details: nil))\n                }\n            case \"stop\":\n                LibgopeedStop()\n                result(nil)\n            default:\n                result(FlutterMethodNotImplemented)\n            }\n        })\n        \n        GeneratedPluginRegistrant.register(with: self)\n\n        SwiftFlutterForegroundTaskPlugin.setPluginRegistrantCallback(registerPlugins)\n        if #available(iOS 10.0, *) {\n            UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate\n        }\n        return super.application(application, didFinishLaunchingWithOptions: launchOptions)\n    }\n}","sourceCodeStart":7,"sourceCodeEnd":43,"githubUrl":"https://github.com/GopeedLab/gopeed/blob/7b7327ffb30816273a74b142cccc0bc10c5a4c67/ui/flutter/ios/Runner/AppDelegate.swift#L7-L43","documentation":"Error \"error.debugDescription\" thrown in GopeedLab/gopeed.","triggerScenarios":"Thrown at ui/flutter/ios/Runner/AppDelegate.swift:25 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b7327ffb30816273a74b142cccc0bc10c5a4c67","analyzedAt":"2026-08-16T02:51:03.250Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}