通过相册选择图片
- 发布:2021-02-07 13:43
- 更新:2021-02-20 16:00
- 阅读:1212
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: Windows 10
HBuilderX类型: 正式
HBuilderX版本号: 3.0.7
手机系统: iOS
手机系统版本号: IOS 14
手机厂商: 苹果
手机机型: iPhone 7
页面类型: vue
打包方式: 离线
项目创建方式: HBuilderX
操作步骤:
预期结果:
打开手机相册
打开手机相册
实际结果:
崩溃
崩溃
bug描述:
准备从相册选择图片时崩溃:
HBuilder`+[DCTZImagePickerConfig sharedInstance]:
0x10457fc78 <+0>: stp x29, x30, [sp, #-0x10]!
0x10457fc7c <+4>: mov x29, sp
0x10457fc80 <+8>: adrp x8, 1394
0x10457fc84 <+12>: ldr x8, [x8, #0xc20]
0x10457fc88 <+16>: cmn x8, #0x1 ; =0x1
0x10457fc8c <+20>: b.ne 0x10457fca0 ; <+40> [inlined] _dispatch_once at DCTZImagePickerController.m:995
0x10457fc90 <+24>: adrp x8, 1394
0x10457fc94 <+28>: ldr x0, [x8, #0xc28]
0x10457fc98 <+32>: ldp x29, x30, [sp], #0x10
0x10457fc9c <+36>: b 0x1047cb580 ; symbol stub for: objc_retainAutoreleaseReturnValue
0x10457fca0 <+40>: adrp x0, 1394
0x10457fca4 <+44>: add x0, x0, #0xc20 ; =0xc20
0x10457fca8 <+48>: adrp x1, 962
0x10457fcac <+52>: add x1, x1, #0xc18 ; =0xc18
0x10457fcb0 <+56>: bl 0x1047cad34 ; symbol stub for: dispatch_once
-> 0x10457fcb4 <+60>: b 0x10457fc90 ; <+24> at DCTZImagePickerController.m:1002:12
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSBundle initWithURL:]: nil URL argument'
terminating with uncaught exception of type NSException
2021-02-07 13:38:01.360928+0800 HBuilder[2522:186026] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSBundle initWithURL:]: nil URL argument'
*** First throw call stack:
(0x1920019d8 0x1a636ab54 0x1931d1f00 0x1931d1df4 0x1045b393c 0x10457fe84 0x10457fd18 0x10593d528 0x10593ee6c 0x10457fcb4 0x10457c9ac 0x104579888 0x1045abec8 0x1045abc1c 0x10593bce4 0x10593d528 0x10594b994 0x191f815e0 0x191f7ba88 0x191f7aba0 0x1a8cb8598 0x19486a3d8 0x19486f958 0x1042bbf88 0x191c59568)
libc++abi.dylib: terminating with uncaught exception of type NSException
使用HBuilder-Hello工程尝试也是如此。
liaol
官方DEMO里面有这个资源包。需要删除重新添加吗?
2021-02-20 11:03