My app got rejected from Apple and I have got crash reports in .txt format instead of .crash format.
How can I symbolicate or read the crash report ?
My app got rejected from Apple and I have got crash reports in .txt format instead of .crash format.
How can I symbolicate or read the crash report ?
When you get your crash report as a .txt file just follow these steps :
Change the file extension .txt
to .crash
(eg mycrash.txt
to mycrash.crash
).
Create a new folder in desktop and copy the mycrash.crash
file to the
newly created folder.
Copy the .dSYM file:
https://appstoreconnect.apple.com/WebObjects/iTunesConnect.woa/ra/ng/app/[appID]/activity/ios/builds/[version]/[build]/details
Open the Archives window in Xcode by navigating the menus: xcode -> window -> orgnizer
or xcode -> product -> Archive
:
Select any Archives of your app Right click on it, then select Show in Finder
Right-click on appname.xcarchive
and select Show Package Contents.
Open the dSYMs folder and get the .dSYM file, and paste it too in the newly created folder.
Copy the .app file from the same xcarchive to the new folder.
Go to path /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/
Copy the symbolicatecrash
file to the newly created folder.
Open terminal, navigate to your folder path and then run:
$ export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"
Then run the symbolicate command on your crash like so:
$ ./symbolicatecrash mycrash.crash > symbolicated.crash
Can't add a comment to Shakti's answer, but I had trouble with steps 5 and 6 as it was complaining about DEVELOPER_DIR not being specified.
Some googling later I found out that the part 5 should have been:
5 now open terminal cd your folder path and then type this
export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"
So, the "export" is also a keyword and a part of the command, just in case anyone else gets the same problem.
It worked for me ,might help some one else also
Apple gives you crash log in .txt format , which is unsymbolicated
**
With the device connected
**
We will be able to see symbolicated crash logs over there
Please see the link for more details on Symbolicating Crash logs
By dragging the .crash file in organiser was not completely symbolicating my crash. So i tried another way of doing it.
If archived builds is already on your computer. Then you don't need to give .app and dsym file. Just run below commands in terminal.
export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"
Hit enter
/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash /Your/Crash/File/Path/c.crash > /Your/Symbolicated/Crash/File/Path/c.crash
Hit enter and check the path you have given.
© 2022 - 2024 — McMap. All rights reserved.
atos
command following apple's guide. It works just take a while to do it line by line... developer.apple.com/library/content/technotes/tn2151/… – Chimerical