Search code examples
iosswiftiphonecrash-reports

How to track production app bugs/crashes from all devices in iOS without using any third party libraries


I have one requirement like I have to track all the bugs and crashes from my production app of App Store from all devices.

I have idea tracking bugs or crashes by using Crashlytics library by integrating to my iOS project. And I have seen some other libraries too to achieve this.

But, my requirement is without using any third party library, I have to achieve this task.

And I know printing all the logs inside the apps and forwarding them to server by API call, but, if application gets crash app can't execute any code except Terminate delegate method. Even though we can't able to call the api request.

Can anyone suggest me, how to achieve this? I want implement this in Swift.


Solution

  • Finally found the answer from Apple docs.

    About Crashes organizer Use the Crashes organizer to view crash reports generated by the report service for apps that you distribute using TestFlight or distribute through the App Store.

    Important: For apps released in the App Store, the user must agree to share user crash and energy data with developers. (TestFlight users automatically share these logs with developers.) Only the Team Agent or Admin role, or an App Store Connect user can view these reports.

    To view crash reports, choose Window > Organizer, then click Crashes. Xcode begins refreshing the crash reports for the selected app version, including embedded app extensions. Xcode downloads the top crash reports—crash reports with the most number of occurrences on unique devices—that occurred during the past two weeks. However, there may be up to a one-day delay between when you first distribute your app and when crash reports are available in Xcode.

    For more information, check here by clicking this link https://help.apple.com/xcode/mac/current/#/dev861f46ea8