简体   繁体   English

如何从Apple获取崩溃日志?

[英]How to get the Crash Log from Apple?

We developed an app, and it works perfectly on several different emulators and devices, not once crashed, but both times we tried submitting to Apple it gets back to us as "2.1 - apps that crash are rejected" (or something). 我们开发了一个应用程序,它可以完美地在几种不同的仿真器和设备上运行,并且一次都不会崩溃,但是两次尝试提交给Apple时,它都会以“ 2.1-崩溃的应用程序被拒绝”(或某种方式)返回给我们。

I cant seem to find the log from them, or any additional infos. 我似乎找不到他们的日志,或任何其他信息。 Is the crash log available anywhere? 崩溃日志在任何地方都可用吗? Or just ANY info? 还是任何信息? They only say that it crashed on an iPad 3rd Gen with iOS 6. We ran on a device like that and it didnt crash for us. 他们只是说它在装有iOS 6的iPad 3rd Gen上崩溃了。我们在这样的设备上运行,但它并没有崩溃。

Unfortunately, Apple doesn't provide detailed logs of their review process, although crash logs are sometimes provided, as indicated by @jsd in the comments below. 不幸的是,尽管有时会提供崩溃日志,但苹果并没有提供其审核过程的详细日志,如以下评论中的@jsd所示。

In theory, crash reports get synchronized with iTunes and can be collected by Apple and provided to you via iTunes Connect, but in practice, that rarely works - or only with large delays. 从理论上讲,崩溃报告可以与iTunes同步,并且可以由Apple收集并通过iTunes Connect提供给您,但是实际上,这种报告很少起作用-或延迟较大。

However, you could integrate some Crash Reporting into your App. 但是,您可以将一些崩溃报告集成到您的应用中。 Here are a few services that allow you to do that without much hassle: 以下是一些服务,可让您轻松完成此操作:

Crash reporting integration in production versions of my apps have been proven to be very helpful, so I'd highly recommend this. 实践证明,将崩溃报告集成到我的应用的生产版本中非常有用,因此,我强烈建议您这样做。 Good crash reporting services provide an SDK to be included in your app, and generate symbolicated, readable, ready-to-use crash reports that make tracking bugs very easy. 良好的崩溃报告服务可提供要包含在您的应用程序中的SDK,并生成符号化,可读性强,易于使用的崩溃报告,从而使跟踪错误非常容易。

As for the cause of your app's crash, here are some basic guesses: 至于您的应用崩溃的原因,以下是一些基本的猜测:

  1. Do you use ARC (Automatic Reference Counting)? 您是否使用ARC(自动参考计数)? You should. 你应该。
  2. Did you run the Static Analyzer in Xcode ( Product ➞ Analyze )? 您是否在Xcode( Product ➞ Analyze )中运行了静态分析器?
  3. Did you test with different environments (eg internet connection via 3G, WiFi or none at all)? 您是否在不同的环境下进行了测试(例如,通过3G,WiFi进行互联网连接或完全不进行测试)?
  4. Have you deleted and reinstalled the app on your device, or did you just update it? 您已在设备上删除并重新安装了该应用程序,还是只是对其进行了更新?

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM