iPhone-在iPhone应用程序中保存崩溃日志的位置

iPhone-在iPhone应用程序中保存崩溃日志的位置,iphone,objective-c,crash-reports,Iphone,Objective C,Crash Reports,我想在没有第三方库的情况下访问iPhone应用程序中的崩溃日志。 你知道在iPhone应用程序中崩溃日志保存在哪里吗 我知道iPhone应用程序文件夹结构如下: Documents/ Library/ Preferences/ MyApp.app/ Default.png icon.png Info.plist tmp/ 编辑: 如果崩溃未存储在应用程序文件夹中, 你知道UKCrashReporter和其他第三方库是如何做到这

我想在没有第三方库的情况下访问iPhone应用程序中的崩溃日志。 你知道在iPhone应用程序中崩溃日志保存在哪里吗

我知道iPhone应用程序文件夹结构如下:

Documents/  
Library/  
      Preferences/  
MyApp.app/  
    Default.png  
    icon.png  
    Info.plist  
tmp/  
编辑:
如果崩溃未存储在应用程序文件夹中,

你知道UKCrashReporter和其他第三方库是如何做到这一点的吗?

你需要连接到iPhone设备,然后选择窗口->管理器设备日志

我有一个越狱的iOS设备,这样我可以轻松回答你问题的第一部分(尽管您自己可能已经这样做了)。标准崩溃日志存储在设备上的以下文件夹中:

/private/var/mobile/Library/Logs/CrashReporter/
如果您没有越狱设备,并且日志在Xcode中不可见,那么您应该能够使用iOS文件浏览器(如i-FunBox)访问文件,即使没有越狱,它也应该能够访问文件系统

至于你问题的第二部分,我认为至少有一些第三方崩溃报告员将崩溃数据保存在应用程序文件夹中,这是根据以下目录判断的(这些目录是空的,因为应用程序尚未在我的设备上崩溃):


同样,您可以使用iOS文件浏览器验证这一点。

我认为它不存储在应用程序的目录中。@MacMake:您知道它们在哪里以及如何获取它们吗?
// ... was the identifier for the app path, removed for readability
/private/var/mobile/Applications/.../Library/Caches/com.plausiblelabs.crashreporter.data
/private/var/mobile/Applications/.../Library/Caches/com.plausiblelabs.crashreporter.data/SkobblerUS
/private/var/mobile/Applications/.../Library/Caches/com.plausiblelabs.crashreporter.data/SkobblerUS/queued_reports
/private/var/mobile/Applications/.../Library/Caches/crashes