是否可以以编程方式获取已安装的Crashlytics / Fabric版本?如果是这样,怎么样?
答案 0 :(得分:4)
是;见Crashlytics.h
:
@interface Crashlytics : NSObject
@property (nonatomic, readonly, copy) NSString *APIKey;
@property (nonatomic, readonly, copy) NSString *version; // !!!!!
@property (nonatomic, assign) BOOL debugMode;
...
那就是:
NSLog(@"Using Crashlytics version %@", [[Crashlytics sharedInstance] version]);