|
@@ -33,21 +33,21 @@ void UncaughtExceptionHandler(NSException *exception) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/** 应用信息 */
|
|
/** 应用信息 */
|
|
|
- NSDictionary* infoDict =[[NSBundle mainBundle] infoDictionary];
|
|
|
|
|
|
|
+ NSDictionary *infoDict =[[NSBundle mainBundle] infoDictionary];
|
|
|
// 当前应用名称
|
|
// 当前应用名称
|
|
|
- NSString *app_Name = [infoDict objectForKey:@"CFBundleDisplayName"];
|
|
|
|
|
|
|
+ NSString *app_name = [infoDict objectForKey:@"CFBundleDisplayName"];
|
|
|
// 当前应用版本号码
|
|
// 当前应用版本号码
|
|
|
- NSString* build =[infoDict objectForKey:@"CFBundleVersion"];
|
|
|
|
|
|
|
+ NSString *app_build =[infoDict objectForKey:@"CFBundleVersion"];
|
|
|
// 当前应用软件版本
|
|
// 当前应用软件版本
|
|
|
- NSString* version =[infoDict objectForKey:@"CFBundleShortVersionString"];
|
|
|
|
|
- //设备名称
|
|
|
|
|
- NSString* deviceName = [[UIDevice currentDevice] systemName];
|
|
|
|
|
- //手机系统版本
|
|
|
|
|
- NSString* phoneVersion = [[UIDevice currentDevice] systemVersion];
|
|
|
|
|
- //手机型号
|
|
|
|
|
- NSString* phoneModel = [[UIDevice currentDevice] model];
|
|
|
|
|
-
|
|
|
|
|
- NSString *device_info = [NSString stringWithFormat:@"Version:%@ %@\nBuild:%@\nDevice:%@ %@ %@",app_Name,version,build,deviceName,phoneModel,phoneVersion];
|
|
|
|
|
|
|
+ NSString *app_version =[infoDict objectForKey:@"CFBundleShortVersionString"];
|
|
|
|
|
+ // 系统名称
|
|
|
|
|
+ NSString* system_name = [[UIDevice currentDevice] systemName];
|
|
|
|
|
+ // 系统版本
|
|
|
|
|
+ NSString* system_version = [[UIDevice currentDevice] systemVersion];
|
|
|
|
|
+ // 设备
|
|
|
|
|
+ NSString *device_name = [[UIDevice currentDevice] model];
|
|
|
|
|
+
|
|
|
|
|
+ NSString *device_info = [NSString stringWithFormat:@"Version:%@ %@\nBuild:%@\nDevice:%@ %@ %@",app_name,app_version,app_build,device_name,system_name,system_version];
|
|
|
|
|
|
|
|
/** 异常信息 */
|
|
/** 异常信息 */
|
|
|
NSArray *callStack = [exception callStackSymbols];
|
|
NSArray *callStack = [exception callStackSymbols];
|