How to obtain crash logs from users running iOS 9

后端 未结 2 686
小蘑菇
小蘑菇 2021-01-24 20:26

While we used to be able to obtain crash logs when users sync\'d with iTunes Connect at ~/Library/Logs/CrashReporter/MobileDevice/, now most users don\'t do this. T

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-24 20:51

    Have you ever try Crashlytics yet? It send crash log automatically and report call stack for you and other useful details.

    1) Install library using your Podfile

    # Crashlytics
    pod 'Fabric'
    pod 'Crashlytics'
    

    2) Import in AppDelegate

    Objective C

    #import 
    #import 
    

    Swift

    import Fabric
    import Crashlytics
    

    3) Initial crashlytics in didFinishLaunchingWithOptions

    Objective C

    [Fabric with:@[[Crashlytics class]]];
    

    Swift

    Fabric.with([Crashlytics.self])
    

提交回复
热议问题