hengsen
hengsen
  • 发布:2023-02-15 15:49
  • 更新:2023-02-15 15:53
  • 阅读:467

【报Bug】uni.chooseImage在iOS中闪退

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: Big Sur 11.7.3

HBuilderX类型: 正式

HBuilderX版本号: 3.6.15

手机系统: iOS

手机系统版本号: iOS 16

手机厂商: 苹果

手机机型: SE2\11

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

具体做法是,在uni.chooseImage第一次调用后选择“选中的图片”,系统弹出框选择照片,此时返回会闪退。

预期结果:

不闪退

实际结果:

闪退

bug描述:

经App用户反馈,从相册选择照片时闪退,用户机型iPhone 11。开发在iPhone SE 2也发现会闪退。XCode报错如下:
2023-02-15 15:06:53.582559+0800 [9688:5308861] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSBundle initWithURL:]: nil URL argument'
First throw call stack:
(0x1b41b8e38 0x1ad3538d8 0x1ae59d178 0x1ae59d07c 0x104f41768 0x104e88afc 0x104e88990 0x1060cdff0 0x1060cfb60 0x104e8892c 0x104e857a8 0x104e82b44 0x104f243d4 0x104f23ef8 0x1060cc53c 0x1060cdff0 0x1060de800 0x1060de344 0x1b42496c8 0x1b422b02c 0x1b422feb0 0x1ee425368 0x1b6725668 0x1b67252cc 0x104bdb934 0x1d2b28960)
libc++abi: terminating with uncaught exception of type NSException
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSBundle initWithURL:]: nil URL argument'
terminating with uncaught exception of type NSException
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSBundle initWithURL:]: nil URL argument'
terminating with uncaught exception of type NSException

2023-02-15 15:49 负责人:DCloud_iOS_WZT 分享
已邀请:
DCloud_iOS_WZT

DCloud_iOS_WZT

如果是离线SDK 看一下是不是 DCTZImagePickerController.bundle
DCMediaEditingController.bundle 这两个文件没加

  • hengsen (作者)

    解决了,谢谢

    2023-02-15 16:01

  • y***@163.com

    回复 hengsen: 你好 请问你怎么解决的呀 什么原因导致的

    2023-11-15 10:17

要回复问题请先登录注册