Find crash logs on iOS 8 device

后端 未结 6 1027
耶瑟儿~
耶瑟儿~ 2020-12-29 18:55

Crash logs used to be accessible through the Settings app. I can\'t find that in iOS 8. Where did that go? It\'s not gone now is it.

6条回答
  •  余生分开走
    2020-12-29 19:13

    When your app crashes, Xcode will enter the debugger and show you more information about the crash:The most important parts are:

    The red arrow

    The red arrow displays which line of code crashed & why it crashed.

    The debugger console

    Many crashes log more information to the debugger console. It should automatically appear when the app crashes, but if it’s not there, show the debugger by selecting the button in the top-right corner of Xcode, and show the console by clicking the button in the bottom-right corner of the debugger.

    The stack trace

    The stack trace lists the functions the program came from before it got to the code that crashed.

    Part of the stack trace is displayed in the Debug Navigator on the left of the screen, and the debugger controls allow you to select a stack frame to view in the debugger:

    If you enter the bt command at the (lldb) prompt in the debugger and press return , you will get a textual representation of the stack trace that you can copy and paste:

    Ref:https://medium.com/@javedmultani16/finding-information-about-a-crash-ios-642902134469

提交回复
热议问题