Prerequisite: Keep the myapp.xcarchive file at the time of packing the release (note: Can be found in xcode-window-organizer-archives, the command package needs to be backed up under this file)
1. Get Myapp.app.dSYM and MyApp two files from myapp.xcarchive and put them in the same folder
2, found a version of the app in the Friend League bug statistics crash log, where you can find the crash address information such as:0x1001ed424
League of Friends statistics crash log
Application received signal SIGSEGV (NULL)( 0Corefoundation0x000000018400e5b8<redacted> + the 1LIBOBJC. A.dylib0x00000001947600e4Objc_exception_throw + - 2Corefoundation0X000000018400E4DC<redacted> +0 3MyApp0X1005D0FDCMyApp +6098908 4Libsystem_platform.dylib0x0000000194f7c94c_sigtramp + the 5MyApp0x1001ed424MyApp +2020388 6MyApp0x1001ed240MyApp +2019904 7MyApp0x1001ed364MyApp +2020196 8MyApp0x1001e6654MyApp +1992276 9MyApp0x10024a85cMyApp +2402396 TenLibdispatch.dylib0x0000000194da53ac<redacted> + - OneLibdispatch.dylib0x0000000194da536c<redacted> + - ALibdispatch.dylib0x0000000194da9980_DISPATCH_MAIN_QUEUE_CALLBACK_4CF +932 -Corefoundation0x0000000183fc5fa4<redacted> + A -Corefoundation0x0000000183fc404c<redacted> +1492 theCorefoundation0x0000000183ef10a4Cfrunlooprunspecific +396 -Graphicsservices0x000000018d0935a4Gseventrunmodal +168 -UIKit0x00000001888263c0Uiapplicationmain +1488 -MyApp0X10029B5DCMyApp +2733532 +Libdyld.dylib0x0000000194dcea08<redacted> +4) DSYM uuid:bf6d8b68-25ad-3d83-9efa-2ec4662771cccpu Type: arm64Slide Address:0x0000000100000000Binary image:myappbase Address:0x0000000100064000
3, open the terminal, switch to the folder, run the following command terminal will show the details of the error appears
arm64 0x1001ed424
Or
0x1001ed424 arm64 Myapp.app.dSYM
Note: For some special complex bugs caused by the crash, through the analysis of this command, there is no useful error message hint.
About dSYM
DSYM in the packaging process generated by the Save App 16 binary function address mapping information of the transit file, through the wrong function address to query the DSYM file the corresponding function name and file name, resulting in error details.
IOS Friends League Statistics bug Analysis