简体   繁体   English

如何在不使用任何第三方库的情况下跟踪来自iOS中所有设备的生产应用程序错误/崩溃

[英]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. 我有一个要求,就像我必须从所有设备跟踪App Store生产应用程序中的所有错误和崩溃。

 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. 而且我知道在应用程序内打印所有日志,然后通过API调用将它们转发到服务器,但是,如果应用程序崩溃,则应用程序除了Terminate委托方法外无法执行任何代码。 Even though we can't able to call the api request. 即使我们无法调用api请求。

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

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. 关于崩溃管理器使用崩溃管理器可以查看由报告服务为您使用TestFlight分发或通过App Store分发的应用程序生成的崩溃报告。

Important: For apps released in the App Store, the user must agree to share user crash and energy data with developers. 重要提示:对于在App Store中发布的应用,用户必须同意与开发人员共享用户崩溃和能源数据。 (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. (TestFlight用户自动与开发人员共享这些日志。)只有团队代理或管理员角色或App Store Connect用户可以查看这些报告。

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开始刷新所选应用程序版本的崩溃报告,包括嵌入式应用程序扩展。 Xcode downloads the top crash reports—crash reports with the most number of occurrences on unique devices—that occurred during the past two weeks. Xcode下载最常见的崩溃报告,即在过去两周内在唯一设备上发生次数最多的崩溃报告。 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. 但是,从首次分发应用程序到Xcode中提供崩溃报告之间,最多可能会有一天的延迟。

For more information, check here by clicking this link https://help.apple.com/xcode/mac/current/#/dev861f46ea8 有关更多信息,请单击此处链接以查看此处https://help.apple.com/xcode/mac/current/#/dev861f46ea8

as per my knowledge if you have created an archived build from your machine and uploaded it to app store then you can open Windows -> Organizer from Xcode tool options, then in Organizer you can select the Crash tab at the top, you can see its automatically downloads the crash information if it has linked with developer account. 据我所知,如果您已经从计算机创建了一个存档版本并将其上传到应用商店,则可以从Xcode工具选项中打开Xcode Windows -> Organizer ,然后在Organizer中选择顶部的Crash选项卡,即可看到其如果崩溃信息已与开发者帐户关联,则会自动下载崩溃信息。 Also in itunes connect also you can check the reports. 此外,在iTunes Connect中,您还可以检查报告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 iOS 应用程序中使用 GIF,而不使用 UIKit 在 Swift 5 中的任何第三方库? - How to use GIFs inside an iOS App without any Third Party Library in Swift 5 using UIKit? 如何使用任何第三方库在iOS应用程序中编辑现有pdf文档。 - How to edit an existing pdf document in an iOS application using any third party libraries. 如何在不使用第三方库的情况下在 swift2 中下载页面? - How to download a page in swift2 without using third party libraries? 如何在iOS中正确链接第三方库 - How to link third party libraries properly in iOS 如何在iOS中从我的应用程序启动第三方应用程序? - How to start third-party app from my app in iOS? 没有第三方应用的iOS Universal深度链接 - iOS Universal deeplinking without third party app 从第三方iOS应用程序打开Flickr - Open Flickr From Third Party iOS App 有没有其他方法可以使用自定义标头和正文在不使用第三方库的情况下发送HTTP“ POST”请求? - Is there a different way how to send a HTTP “POST” request without using third party libraries using custom header and body? 如何在 iOS 上调试没有响应的第三方应用程序? - How to debug a third party app on iOS that is not responding? 如何在Xamarin.iOS项目中添加第三方库/框架? - How to add third party libraries/frameworks in Xamarin.iOS project?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM