iOS crash reports: atos not working as expected

前端 未结 4 677
终归单人心
终归单人心 2020-11-22 13:53

I\'m looking at a crash report provided by Apple

Hardware Model:      iPhone4,1
Version:         ??? (???)
Code Type:       ARM (Native)
Parent Process:  la         


        
4条回答
  •  抹茶落季
    2020-11-22 14:21

    A simpler alternative: you can use the atos -l flag to make it do the maths for you.

    Say you've got the following line in your crash log that you want to symbolicate:

    5   MyApp                   0x0044e89a 0x29000 + 4348058
    

    The first hex number is the stack address, and the second hex number is the load address. You can ignore the last number. You don't need to worry about slide addresses either.

    To symbolicate, do the following:

    atos -o MyApp.app/MyApp -arch armv7 -l 0x29000 0x0044e89a
    

    If you can't find your MyApp.app/MyApp file, rename your '.ipa' file to a '.zip', unzip it, and it'll be in the Payload folder.

    And if you're not sure which architecture to use (for example, armv7 or armv7s), scroll to the 'Binary Images' part of the crash file and you can find it in there.

    Cheers

提交回复
热议问题