我有来自 App Store 中的 iPhone 应用程序的崩溃日志(通过 iTunes Connect 检索),在符号化后有一堆来自 CodeData 和 CoreFoundation 的“<redacted>”方法名称。
来自 iTunes Connect 的原始崩溃日志文件如下所示:
Last Exception Backtrace:
0 CoreFoundation 0x34a0929e __exceptionPreprocess
1 libobjc.A.dylib 0x32d1997a objc_exception_throw
2 CoreData 0x3631fec2 -[NSSQLCore _obtainOpenChannel]
3 CoreData 0x363cfd9c newFetchedRowsForFetchPlan_MT
4 CoreData 0x363b3be6 -[NSSQLCore newFetchedPKsForSourceID:andRelationship:]
5 CoreData 0x363a6008 -[NSSQLCore newValueForRelationship:forObjectWithID:withContext:error:]
6 CoreData 0x3635690a -[NSFaultHandler retainedFulfillAggregateFaultForObject:andRelationship:withContext:]
7 CoreData 0x36326d48 -[_NSFaultingMutableSet willRead]
8 CoreData 0x3632767c -[_NSFaultingMutableSet allObjects]
在我的 Mac 上符号化后的日志如下所示:
Last Exception Backtrace:
0 CoreFoundation 0x34a0929e <redacted> + 158
1 libobjc.A.dylib 0x32d1997a objc_exception_throw + 26
2 CoreData 0x3631fec2 <redacted> + 230
3 CoreData 0x363cfd9c <redacted> + 948
4 CoreData 0x363b3be6 <redacted> + 2590
5 CoreData 0x363a6008 <redacted> + 528
6 CoreData 0x3635690a <redacted> + 478
7 CoreData 0x36326d48 <redacted> + 220
8 CoreData 0x3632767c <redacted> + 20
9 [myappname] [memory addresses here]
...
谁能帮助找出为什么“<redacted>”被添加到符号化版本中?我自己的应用程序中的符号符号化得很好,正如您在上面看到的基本 libobjc 符号一样。
更新:在 Kerni 的回答之后切换日志更清晰