[iOS] Checking the source location in the app crash log

Writing time : 2015-06-01 00:02:38

Checking the source location in the app crash log

I registered the app in the app store and waited for a review, but the reason for rejection is an app crash. I sent the crash log file together, but I couldn't check the source location where the crash occurred, so I shoved it.

find binary files

To check the source location, the binary file used when registering the app is required.
Run Xcode and select the item that used Window-Organizer to register the app, then run the option menu and select the Show In Finder menu.

Select the archive file registered in Finder and open the option menu to view the contents of the file by selecting View Package Contents. Select the .app file from the Product-Applicatinos folder and copy it to the appropriate folder.

Checking the source location

When you open the log file sent by the reviewer, there is a crash log. The required part here is the address value to the right of the registered app name (refer to the bolded part).

0   libsystem_kernel.dylib            0x0000000198587270 0x19856c000 + 111216  
1   libsystem_pthread.dylib           0x000000019862516c 0x198620000 + 20844  
2   libsystem_c.dylib                 0x00000001984feb14 0x19849c000 + 404244  
3   libc++abi.dylib                   0x00000001975bd414 0x1975bc000 + 5140  
4   libc++abi.dylib                   0x00000001975dcb88 0x1975bc000 + 134024  
5   libobjc.A.dylib                   0x0000000197df03bc 0x197de8000 + 33724  
6   libc++abi.dylib                   0x00000001975d9bb0 0x1975bc000 + 121776  
7   libc++abi.dylib                   0x00000001975d9474 0x1975bc000 + 119924  
8   libobjc.A.dylib                   0x0000000197df0200 0x197de8000 + 33280  
9   CoreFoundation                    0x00000001865cc214 0x1864a4000 + 1212948  
10  CoreFoundation                    0x00000001864d0178 0x1864a4000 + 180600  
11  YourAppName                          0x0000000100012aa4 0x10000c000 + 27300  
12  CoreBluetooth                     0x00000001862343cc 0x186230000 + 17356  
13  CoreBluetooth                     0x0000000186234988 0x186230000 + 18824  
14  libdispatch.dylib                 0x0000000198441990 0x198440000 + 6544  
15  libdispatch.dylib                 0x0000000198441950 0x198440000 + 6480  
16  libdispatch.dylib                 0x000000019844c0a0 0x198440000 + 49312  

If you enter the command including the address value as below, you can see the location of the source file where the crash occurred.

Enter the application file name for YourAppName.app in YourAppName.app/YourAppName section, and for YourAppName enter the app name recorded in the log file.

xcrun atos -o YourAppName.app/YourAppName -arch armv7 -l 0x0000000100012aa4 0x10000c000  

Reference URL


Previous post

Other posts in the category