WatchOS调试崩溃日志

时间:2019-02-08 11:30:29

标签: ios swift watch-os symbolicate

我们从存档文件中获得了dsyms文件和崩溃日志,该文件用于在xcode中生成IPA。 我已经在终端中使用以下命令来获取项目中的文件名和崩溃位置。

atos -arch armv7k -o  dSymfilelocation -l LoadAddress AddressToSymbolicate

使用上述命令,大多数结果显示为不带lineNumber。

1->我得到的结果指向stringConstants文件,行号指向serviceName常量。

struct Keys {
     static let serviceName = "serviceName"
     // More constants....
}

2->另一个结果是指向WKInterfaceController中的locationmanager委托。但是在类中已经分配了位置管理器。

private let locationManager = CLLocationManager()

override func awake(withContext context: Any?) {
        super.awake(withContext: context)

        // Configure interface objects here.

        locationManager.delegate = self
    }

上述崩溃的原因是什么?

对于大多数崩溃日志,我得到的文件名,函数名和行号均为0。对于某些崩溃日志,SymbolicatedAddress显示为结果。

即使我尝试使用命令SymbolicateCrash。但是,它返回与崩溃日志相同的文件,但是崩溃日志和符号文件之间没有区别。

symbolicatecrash CrashLog.crash dsymFileLocation > Symbolicated.crash

崩溃日志文件:

Exception Type:  EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: CAROUSEL, Snapshot watchdog transgression. Exhausted CPU time allowance of 2.00 seconds. Elapsed total CPU time (seconds) 7.69 (user 7.69, system 0.00), 99% CPU. Elapsed application CPU time (seconds) 2.79, 35% CPU.
Termination Description: SPRINGBOARD, CSLSceneSnapshotAction watchdog transgression: com.usa.com.usa.watchkitapp.watchkitextension exhausted CPU time allowance of 2.00 seconds | <FBExtensionProcess: 0xb060d20; NissanLeaf Watc (com.usa.com.usa.watchkitapp.watchkitextension); pid: 669; typeID: com.apple.watchkit; host: Carousel:30> Elapsed total CPU time (seconds): 7.690 (user 7.690, system 0.000), 96% CPU | Elapsed application CPU time (seconds): 2.794, 35% CPU, lastUpdate 2019-01-20 14:51:53 +0000
Triggered by Thread:  0

0 个答案:

没有答案