InjectFix icon indicating copy to clipboard operation
InjectFix copied to clipboard

打包到客户端System.Exception: assembly may be not injected yet, cat find IFix.ILFixInterfaceBridge, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null

Open YANGHONG996633 opened this issue 4 years ago • 12 comments

在unity编辑器里可以正常加载补丁,打包成客户端就报错,求大佬帮助

YANGHONG996633 avatar Nov 08 '21 08:11 YANGHONG996633

assembly may be not injected yet,没注入

chexiongsheng avatar Nov 08 '21 08:11 chexiongsheng

注入了。打包的时候

YANGHONG996633 avatar Nov 08 '21 08:11 YANGHONG996633

报这错就是手机包没注入。 你是凭啥认为是注入了呢?你反编译手机包看了?

chexiongsheng avatar Nov 08 '21 08:11 chexiongsheng

injectfix不能用于Pc端吗

YANGHONG996633 avatar Nov 08 '21 08:11 YANGHONG996633

我查看IfixEditor下,打包时会自动调用注入,我加了一个debug,打包的时候成功输出了,所以认为打包成功了

YANGHONG996633 avatar Nov 08 '21 08:11 YANGHONG996633

这不算。 比如注入成功后,也可能你打包某个地方又触发了编译,覆盖了结果。

chexiongsheng avatar Nov 08 '21 08:11 chexiongsheng

好的,老师这个能用于PC端吗。

YANGHONG996633 avatar Nov 08 '21 08:11 YANGHONG996633

可以。

chexiongsheng avatar Nov 08 '21 08:11 chexiongsheng

那怎样的注入方法是比较好的呢

YANGHONG996633 avatar Nov 08 '21 08:11 YANGHONG996633

注入你理解为修改就可以了,反正确保dll il2cpp执行前被改掉就可以了

chexiongsheng avatar Nov 08 '21 08:11 chexiongsheng

注入你理解为修改就可以了,反正确保dll il2cpp执行前被改掉就可以了

有推荐的时机吗?比如:OnPostBuildPlayerScriptDLLs

LBCross avatar Jul 25 '22 08:07 LBCross

Temp/StagingArea/Data/Managed 2021.3需要注入这个目录的dll

haiyaojing avatar Jan 17 '23 11:01 haiyaojing