N+1 way to get crash logs on iOS

Under normal circumstances, after the program crashes, there will be a crash log saved in our mobile phone, when the crash, we can find our crash log through the following ways.

Method 1: Export it from the privacy Settings of the machine

When this machine crashes, you can go to System Settings > Privacy > Analysis & Improvement to find your crash log. Usually, your crash log format contains the package name, time, and the suffix IPS or beta. Click in, click share in the upper right corner to share in various ways

Method 2: Export crash logs using Xcode

1. Connect the PC to the mobile phone, open Xcode, select Windows from the top menu bar, and selectDevices and Simulators

To open.

2. In the dialog box that is displayed, select your device under Devices. On the right, select View Devices Logs

3. Select the log you want to export and right click to export and parse

Method 3: Use Xcode to export crash logs of online published apps

1. Connect the PC to the mobile phone, open Xcode, select Windows from the top menu bar, and selectOrganizer

2. Select Crash, APP name and version to view various Crash logs

Method 4: View crash logs that TF users have agreed to report in Apple Connets (TF, iOS13 or later)

1. Log in to App Store Connects, select your App, select the TestFlight option, and see a crash reported by a TF user

2. Click a crash log and select Download in the upper right corner of the dialog box

Method 5: Use the App Store Connects API to log crashes from the Apple background.

Apple has extended more than 200 App Store Connect apis with WWDC 20, including the addition of a crash log retrieval API. Due to the limited conditions, it is not allowed to obtain without permission. If you want to learn more about WWDC, you can check WWDC session, which has more detailed information and API description.

WWDC20 Expanding automation with the App Store Connect API

Method 6: Integrate Bugly, Firebase, Ummon, Listen cloud and other well-known performance/crash crawling components

1.Bugly

2.firebase

3. Their Allies

4. Listen to the cloud

Method 7: Integrate KSCrash, PLCrashReport and other open source components to collect crash logs

1.KSCrash

2.PLCrashReport

Method 7… There is no 😁, even if there was, I don’t know.