backtrace still not readable after symbolicating i

2019-04-01 23:17发布

i have these crash logs and after i drop them in the organizer the get symbolicated automatically but the result is always the same. the iOS calls get symbolicated and my app calls don't.

I tried copying the dysm and app file into the same folder, deleting and copying back again. nothing helped.

Any idea whats going on ? So I am getting something like this:

    Last Exception Backtrace:
0   CoreFoundation                  0x36d4088f __exceptionPreprocess + 163
1   libobjc.A.dylib                 0x31071259 objc_exception_throw + 33
2   CoreData                        0x350337ab -[NSPersistentStoreCoordinator removePersistentStore:error:] + 227
3   MyApp                           0x00139fbb 0x2e000 + 1097659
4   MyApp                           0x0013998d 0x2e000 + 1096077
5   MyApp                           0x00139a5d 0x2e000 + 1096285
6   libdispatch.dylib               0x3171d61f dispatch_once_f$VARIANT$mp + 47
7   MyApp                           0x001399ff 0x2e000 + 1096191
8   MyApp                           0x00139b47 0x2e000 + 1096519
9   MyApp                           0x0008915d 0x2e000 + 373085
10  MyApp                           0x0008a11b 0x2e000 + 377115
11  UIKit                           0x36ffbd3d -[UIViewController _setViewAppearState:isAnimating:] + 145
12  UIKit                           0x36ffeaa3 -[UINavigationController _startTransition:fromViewController:toViewController:] + 815
13  UIKit                           0x36ffe6ab -[UINavigationController _startDeferredTransitionIfNeeded] + 251
14  UIKit                           0x36ffe56b -[UILayoutContainerView layoutSubviews] + 179
15  UIKit                           0x36fbd0bd -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 149

you can see that the UIKit functions got symbolicated but not MyApp

1条回答
疯言疯语
2楼-- · 2019-04-01 23:45

You need the dSYM file and the app binary of the exact build that generated the crash report. Usually you get this result in Xcode if the dSYM wasn't found using the symbolication script via spotlight. If this is from a debug build, and you created a new build in the meantime, you are out of luck. Otherwise make sure the directory where the debug build is stored to, is indexed by Spotlight. If this is from a build that is archived, make sure the archived directory is indexed by Spotlight.

The crash report contains a section title "Binary Images", and on the top of that your app binary is referenced with the binaries UUID. It looks like c42a118d722d2625f2357463535854fd, which needs to be changed to uppercase and the format 8-4-4-4-12 and will then look like this: C42A118D-722D-2625-F235-7463535854FD.

You can use that to search the dSYM via spotlight in a terminal via:

mdfind "com_apple_xcode_dsym_uuids == C42A118D-722D-2625-F235-7463535854FD"

查看更多
登录 后发表回答