Unity-Technologies / com.unity.uiwidgets

UIWidgets is a Unity Package which helps developers to create, debug and deploy efficient, cross-platform Apps.
https://unity.cn/uiwidgets
627 stars 78 forks source link

DllNotFoundException: libUIWidgets on mac M1 #261

Open opop4m opened 3 years ago

opop4m commented 3 years ago

image

image

已经严格按照你说的版本去操作了,怎么弄都是这个问题。

opop4m commented 3 years ago

使用的是 https://github.com/Unity-Technologies/com.unity.uiwidgets ,master分支 当前最新版本

zhuxingwei commented 3 years ago

Hi 多谢您的反馈!

我们的项目使用了github lfs来做大文件支持,麻烦您先确认一下com.unity.uiwidgets/Runtime/Plugins/osx/目录下是否存在libUIWidgets.dylib这个文件且文件是否是一个正常的库文件(可以确认一下大小是否为66MB左右)。如果它只是一个很小的文本文件,那么应该就是lfs的问题。您需要通过安装对应的github插件来解决这个问题;

如果库文件正常,那么可能会是处理器问题。从您的电脑版本上看您的电脑使用的是M1处理器。因为我们目前还未在使用M1处理器的计算机上测试过UIWidgets,因此不排除存在CPU架构问题。如果确实是这种情况,我们将会尽快安排测试和相应的修复工作。

多谢您的帮助!

tomcatter commented 2 years ago

@zhuxingwei Is M1 now supported?

zhuxingwei commented 2 years ago

I am sorry that UIWidgets is not ready for M1 yet.

Generally, the only blocking issue is that we need to compile the flutter engine for M1 architecture. Currently, we are still investigating and testing the proper way to do so.

According to this flutter wiki, it turns out to be not a straight-forward thing. So we don't have a clear ddl to land the M1 support for now. We will report our progress in this thread and any advice from your guys is always welcome !

zhuxingwei commented 2 years ago

our latest progress is at https://github.com/Unity-Technologies/com.unity.uiwidgets/issues/337#issuecomment-1233881779