|
/

集成统计和性能检测后 初始化崩溃

Ddueda
发布于 5 年前
536
移动统计 U-App

Swift项目集成移动统计和性能监控后 初始化会崩溃, 崩溃日志如下

================开启网络模块的开发者必读提醒!!!=================

========同时集成U-UAPM网络模块和NSURLProtocol特别注意如下========

========保证NSURLProtocol先初始化,U-UAPM网络模块后初始化=========

=========================示例代码如下:========================

[NSURLProtocol registerClass:[UMURLProtocol class]];

UMAPMConfig* config = [UMAPMConfig defaultConfig];

config.networkEnable = YES;

[UMCrashConfigure setAPMConfig:config];

[UMConfigure initWithAppkey:UMAPPKEY channel:UMChannel];

FAQ链接如下:

https://developer.umeng.com/docs/193624/detail/352123

=============================================================

2022-04-14 16:40:26.589370+0800 soudafuDoctor[61015:3133537] [Reporter] SDK init success

2022-04-14 16:40:26.702512+0800 soudafuDoctor[61015:3133537] +[UMZid getSDKVersion]: unrecognized selector sent to class 0x10507f270

2022-04-14 16:50:25.384891+0800 soudafuDoctor[61015:3133537] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[UMZid getSDKVersion]: unrecognized selector sent to class 0x10507f270'

*** First throw call stack:

(0x184f55d3c 0x19c2ba6a8 0x1850256b0 0x184eeff6c 0x184eef1dc 0x1047c1a78 0x107829f94 0x10782b914 0x1047c161c 0x103074e24 0x10300c028 0x10300cec0 0x187536448 0x18770cc7c 0x1876f5ed4 0x187562944 0x1873c69c4 0x1874eabe0 0x1876012c4 0x18782cf60 0x1877bcba0 0x1873c78ac 0x187483c4c 0x1873c963c 0x1874aeebc 0x187909db8 0x1873f7910 0x187439770 0x1875674dc 0x1874ad2d8 0x195b26aac 0x195b490cc 0x195b090f0 0x195b0a4f8 0x107829f94 0x10782d49c 0x195b0a7d0 0x195b09cdc 0x195b0de44 0x184f762b0 0x184f862d8 0x184ec9678 0x184eceaa8 0x184ee1e1c 0x1a523c9a0 0x187715600 0x1874aab08 0x103011bd0 0x1079d8250)

libc++abi: terminating with uncaught exception of type NSException

dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib:/Developer/Library/PrivateFrameworks/GPUTools.framework/libglInterpose.dylib

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[UMZid getSDKVersion]: unrecognized selector sent to class 0x10507f270'

terminating with uncaught exception of type NSException

(lldb)

5个回答
 
5 年前

2022-04-14 16:40:26.589370+0800 soudafuDoctor[61015:3133537] [Reporter] SDK init success

2022-04-14 16:40:26.702512+0800 soudafuDoctor[61015:3133537] +[UMZid getSDKVersion]: unrecognized selector sent to class 0x10507f270

看样子是初始化成功了,没获取到SDK的版本号啊

楼主,试试更新SDK,另外,有两个包是必须集成的,基础包

 
5 年前

提个工单问问官方的技术官

 
5 年前

可以先集成统计在集成性能检测。
FAQ链接如下:

https://developer.umeng.com/docs/193624/detail/352123

这个无法解决?

 
5 年前

有没有使用最新版的SDK

 
5 年前

你遇到的这个问题比较特殊,建议你提交个工单反馈,入口:个人中心-客服中心-提交反馈

Loading ...
登录社区,分享你的经验