Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.5.6 iOS端分享网络文件的时候,报错,无法拉起微信,整个应用直接卡死掉了;Andriod上分享正常 #647

Open
zjypp opened this issue Oct 16, 2024 · 11 comments

Comments

@zjypp
Copy link

zjypp commented Oct 16, 2024

版本: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上分享图片是正常的。

@JarvanMo
Copy link
Member

分享图片和分享不是文件不是一个逻辑。iOS文件分享我也不是太了解

@zjypp
Copy link
Author

zjypp commented Oct 16, 2024

哦。我想着图片和文件,都是网络图片和网络文件。iOS上分享图片正常,我想着和网络文件逻辑一样。
没想到app就卡死了。
谢谢

@JarvanMo
Copy link
Member

看样子应该是取数据有问题,但是看不到具体代码行数,等我有时间看看能不能复现吧

@LiWenHui96
Copy link

Xcode 16,iOS 18.0.1 系统拉起直接卡死

@LiWenHui96
Copy link

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull data]: unrecognized selector sent to instance 0x1feefb748'
*** First throw call stack:
(0x199f7d08c 0x19727f2e4 0x19a0837c8 0x199f1a888 0x199f1a1b0 0x107e822dc 0x1069a4a30 0x1069a671c 0x1069b6de8 0x1069b69a4 0x199f4ff64 0x199f4d188 0x199f4c5b8 0x1e59e21c4 0x19caa22c0 0x19cb50ddc 0x106fe3eec 0x1bf720d34)
libc++abi: terminating due to uncaught exception of type NSException

@zjypp
Copy link
Author

zjypp commented Oct 16, 2024

和我问题现象看起来一样

@LiWenHui96
Copy link

我的问题现象看起来一样

是的,目前看起来是Xcode改了内容导致的,一会去微信开放社区看下吧

@LiWenHui96
Copy link

@JarvanMo
Copy link
Member

666了

@LiWenHui96
Copy link

作者大大如果解决的话,可以适配下4.x版本吗

@JarvanMo
Copy link
Member

作者大大如果解决的话,可以适配下4.x版本吗

fluwx 没有版本管理,所以适配不了。我现在安装不了xcode 16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants