0


【AGC】flutter之agconnect_crash在ios上崩溃

问题背景

flutter agconnect_crash-1.2.0+300 运行在ios平台上,出现了如下这个崩溃

cke_812.png

NSInvalidArgumentException: *** +[NSJSONSerialization dataWithJSONObject:options:error:]: value parameter is nil

0 CoreFoundation 0x00000001830d005c 0x183037000 + 626780

1 libobic.A.dylib Ox000000019b5eaf54 0x19b5d5000 + 89940

2 Foundation 0x00000001848d5eac 0x184861000 + 478892

3 Runner-[AGCCrashCustomLogger filterLogArrayWithMaxSize:]

4 Runner -[AGCCrashCustomLogger logWithLevel:message:]

5 Runner -[AGCCrash logWithLevel:message:]

6 Runner-[AGConnectCrashPlugin handleMethodCall:result:] AGConnectCrashPlugin.m:66

7 Flutter Ox0000000104603c54 0x104114000 + 5176404

8 Flutter Ox0000000104150664 0x104114000 + 247396

9 Flutter 0x00000001044d0204 0x104114000 + 3916292

10 Flutter 0x00000001043#0d8 0x104114000 + 3059928

11 Flutter 0x00000001044026a4 0x104114000 + 3073700

12 CoreFoundation0x00000001830e5278 0x183037000 + 713336

13 CoreFoundation Ox0000000183069c50 0x183037000 + 207952

14 CoreFoundation0x000000018306444c 0x183037000 + 185420

15 CoreFoundation0x0000000183042c68 0x183037000 + 48232

16 CoreFoundation0x00000001830563c8 0x183037000 + 127944

17 GraphicsServices 0x00000001986738c 0x19e866000 + 5004

18 UIKitCore 0x00000001859fcObc 0x1854e 1000 + 5353660

19 UlKitCore 0x0000000185779be8 0x1854e 1000 + 2722792

20 Runner _main AppDelegate.swift:5

21 (null) 0x0000000103861a24 0x0 + 4354087460

解决该问题

这个问题产生的原因是Flutter插件依赖的版本号太低了。您可以手动修改下crash插件里的podspec,把ios SDK升级到1.4版本,platform也可以修改成9.0:

cke_13339.png

欲了解更多更全技术文章,欢迎访问https://developer.huawei.com/consumer/cn/forum/?ha_source=zzh

标签: ios flutter swift

本文转载自: https://blog.csdn.net/weixin_44708240/article/details/127897105
版权归原作者 华为开发者论坛 所有, 如有侵权,请联系我们删除。

“【AGC】flutter之agconnect_crash在ios上崩溃”的评论:

还没有评论