fluwx
fluwx copied to clipboard
4.5.6 iOS端分享网络文件的时候,报错,无法拉起微信,整个应用直接卡死掉了;Andriod上分享正常
版本:4.5.6上。 // 创建待分享的文件模型 WeChatFile weChatFile = WeChatFile.network(fileNetUrl); WeChatShareFileModel fileModel = WeChatShareFileModel(weChatFile, title:title, description: desc, scene: wxScene, );
try {
Global.fluwx.share(fileModel);
}catch(e){
print(e);
}
这个地方直接导致app卡死了。在Xcode上看到报错: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull data]: unrecognized selector sent to instance 0x20a0fbd40' *** First throw call stack: (0x1a2850f20 0x19a6fb2b8 0x1a295a480 0x1a27edfb4 0x1a27ed8d0 0x103aef1e4 0x104d60b98 0x104d627bc 0x104d72d58 0x104d7290c 0x1a2823710 0x1a2820914 0x1a281fcd8 0x1e72751a8 0x1a4e5aae8 0x1a4f0ed98 0x1039e0ab0 0x1c5fff154) libc++abi: terminating due to uncaught exception of type NSException
在安卓手机上,没有问题,可以正常分享文件;
是iOS需要做什么配置吗?但是iOS上分享图片是正常的。