Crash logs generated by iPhone Simulator?

前端 未结 7 1963
野性不改
野性不改 2020-12-22 21:49

Are there any crash logs generated by iPhone Simulator?

the Simulator crashes a lot but not leaving any traces in Console... the crash log will be useful.

7条回答
  •  星月不相逢
    2020-12-22 21:56

    This is much more reliable. In only a few steps I was able to find the source line number & method name:

    1. cd to the dir having the .app & .dSYM files
    2. run /Developer/Platforms/iPhoneOS.platform/Developer/usr/libexec/gdb/gdb-arm-apple-darwin MyApp.app/MyApp
    3. set print asm-demangle on
    4. set print symbol-filename on
    5. p/a 0×00015c64 -> address got by opening the crash log in “Console” app or just double clicking the the .crash file.

提交回复
热议问题