Symbolicate crash log - Xcode 8 / macOS app

Finally, I found how to symbolicate my crashlog for macOS app!

I've followed the instruction in the gist below and obtained human-readable lines.

How to symbolize OSX crash logs -gist

Thus, briefly speaking, for instance for this line:

0   com.MY_DOMAIN.MY_APP        0x000000010febce85 0x10fdc1000 + 1031813

run the following line in Terminal:

atos -o MY_APP.app/Contents/MacOS/MY_APP -arch x86_64 -l 0x10fdc1000 0x000000010febce85

then you'll get the readable line:

Document.init() -> Document (in MY_APP) (DefaultKey.swift:85)

Use this command to symbolicate the whole file. Replace MyApp and MyCrashFile with the appropriate values and the memory address (0x102e27000) so the following line:

Thread 0 Crashed: 0 com.bundle.identifier 0x0000000102f0bfb5 0x102e27000 + 937909

becomes:

xcrun atos -o MyApp.app/Contents/MacOS/MyApp -arch x86_64 -l 0x102e27000 -f MyCrashFile.crash > c.sym.txt && open c.sym.txt

Tested on Mojave with Xcode 10.3