|
本帖最后由 Cover-L 于 2021-12-3 08:58 编辑
在一个界面写了两个picker组件,mode="multiSelector"时,在安卓和ios上都没有问题,当mode="selector"在安卓上没有问题,但在iOS上却闪退报错,是一个页面不能存在两个picker 组件,还是什么原因
错误信息:
[2021-11-29 16:14:37][ERROR] Exception name:NSInvalidArgumentException
Exception reason:*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]
Exception stack
0 CoreFoundation 0x00000001a4de2768 4FBDF167-161A-324C-A233-D516922C67E5 + 1218408
1 libobjc.A.dylib 0x00000001b98a97a8 objc_exception_throw + 60
2 CoreFoundation 0x00000001a4e54a18 4FBDF167-161A-324C-A233-D516922C67E5 + 1686040
3 CoreFoundation 0x00000001a4e52444 4FBDF167-161A-324C-A233-D516922C67E5 + 1676356
4 CoreFoundation 0x00000001a4cc3a10 4FBDF167-161A-324C-A233-D516922C67E5 + 43536
5 CoreFoundation 0x00000001a4cbe4c4 4FBDF167-161A-324C-A233-D516922C67E5 + 21700
6 UZApp 0x0000000104831188 UZApp + 528776
7 UIKitCore 0x00000001a730ef1c 33B02AB5-5DAF-3249-8DC6-5872DF830EC5 + 7376668
8 UIKitCore 0x00000001a7318868 33B02AB5-5DAF-3249-8DC6-5872DF830EC5 + 7415912
9 UIKitCore 0x00000001a7315480 33B02AB5-5DAF-3249-8DC6-5872DF830EC5 + 7402624
10 UIKitCore 0x00000001a73149f0 33B02AB5-5DAF-3249-8DC6-5872DF830EC5 + 7399920
11 UIKitCore 0x00000001a7308bc8 33B02AB5-5DAF-3249-8DC6-5872DF830EC5 + 7351240
12 UIKitCore 0x00000001a7307f74 33B02AB5-5DAF-3249-8DC6-5872DF830EC5 + 7348084
13 UIKitCore 0x00000001a7816c2c 33B02AB5-5DAF-3249-8DC6-5872DF830EC5 + 12651564
14 UIKitCore 0x00000001a77f06e8 33B02AB5-5DAF-3249-8DC6-5872DF830EC5 + 12494568
15 UIKitCore 0x00000001a7879b60 33B02AB5-5DAF-3249-8DC6-5872DF830EC5 + 13056864
16 UIKitCore 0x00000001a787e574 33B02AB5-5DAF-3249-8DC6-5872DF830EC5 + 13075828
17 UIKitCore 0x00000001a7875974 33B02AB5-5DAF-3249-8DC6-5872DF830EC5 + 13039988
18 CoreFoundation 0x00000001a4d5c9e8 4FBDF167-161A-324C-A233-D516922C67E5 + 670184
19 CoreFoundation 0x00000001a4d5c8e4 4FBDF167-161A-324C-A233-D516922C67E5 + 669924
20 CoreFoundation 0x00000001a4d5bbe8 4FBDF167-161A-324C-A233-D516922C67E5 + 666600
21 CoreFoundation 0x00000001a4d55bc8 4FBDF167-161A-324C-A233-D516922C67E5 + 641992
22 CoreFoundation 0x00000001a4d55360 CFRunLoopRunSpecific + 600
23 GraphicsServices 0x00000001bc393734 GSEventRunModal + 164
24 UIKitCore 0x00000001a77d0584 33B02AB5-5DAF-3249-8DC6-5872DF830EC5 + 12363140
25 UIKitCore 0x00000001a77d5df4 UIApplicationMain + 168
26 UZApp 0x000000010492a6a4 UZApp + 1549988
27 libdyld.dylib 0x00000001a4a11cf8 E574A365-9878-348A-8E84-91E163CFC128 + 7416
)
[2021-11-29 16:14:37][ERROR] Exception name:NSSignalException
Exception reason:Signal SIGABRT was raised!
Exception stack
"0 UZApp 0x0000000104914de4 UZApp + 1461732",
"1 UZApp 0x000000010491497c UZApp + 1460604",
"2 libsystem_platform.dylib 0x00000001f0a5829c 4F256518-F4E4-35C7-BA0E-3F0C26B9D24E + 21148",
"3 libsystem_pthread.dylib 0x00000001f0a5da9c pthread_kill + 272",
"4 libsystem_c.dylib 0x00000001ae190b90 abort + 104",
"5 libc++abi.dylib 0x00000001b998abb8 F6119D35-3D88-37D2-AA8E-88DFC6F2A00D + 80824",
"6 libc++abi.dylib 0x00000001b997bec8 F6119D35-3D88-37D2-AA8E-88DFC6F2A00D + 20168",
"7 libobjc.A.dylib 0x00000001b988805c 266E9238-111C-3F2D-A0D2-604474E3CDC4 + 28764",
"8 libc++abi.dylib 0x00000001b9989fa0 F6119D35-3D88-37D2-AA8E-88DFC6F2A00D + 77728",
"9 libc++abi.dylib 0x00000001b998ceac __cxa_rethrow + 148",
"10 libobjc.A.dylib 0x00000001b98a9904 objc_exception_rethrow + 44",
"11 CoreFoundation 0x00000001a4d5544c CFRunLoopRunSpecific + 836",
"12 GraphicsServices 0x00000001bc393734 GSEventRunModal + 164",
"13 UIKitCore 0x00000001a77d0584 33B02AB5-5DAF-3249-8DC6-5872DF830EC5 + 12363140",
"14 UIKitCore 0x00000001a77d5df4 UIApplicationMain + 168",
"15 UZApp 0x000000010492a6a4 UZApp + 1549988",
"16 libdyld.dylib 0x00000001a4a11cf8 E574A365-9878-348A-8E84-91E163CFC128 + 7416"
)
|
|