I have just installed Crashlitycs using this official instruction.
I have set Debug Information Format is “DWARF with dSYM File” for both Debug and Release and disabled Bitcode (some people wrote that it could help):
AppDelegate:
Fabric.sharedSDK().debug = true
Fabric.with([Crashlytics.self])
To simulate a crash I use
Crashlytics.sharedInstance().crash()
and
var ggg: Int!
print(ggg)
Crashlitics collects some information about sessions. For example it updates bundle versions info:
So connection with Crashlitics works. However crash information is empty:
I am using XCode 8 and iOS 9/10. What I am doing wrong?
EDIT:
I have tested it on simulator and device without XCode debugger connection (i.e. launching from sumulator/device screen)
Finally I have received some Crashlytics reports after 7-8 hours after crashes. I expected them earlier because according to documentation:
Within a few minutes, you should see the crash appear on your Fabric
Dashboard.
However I did not receive all crashes I was waiting for. During my experiments I have tried different ways to initialise Crashlytics:
Fabric.with([Crashlytics.self])
and
Fabric.with([Crashlytics.self()])
Could it be the reason? I have also found the similar unanswered question.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…