Tencent / InjectFix

InjectFix is a hot-fix solution library for Unity
Other
1.97k stars 417 forks source link

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

Open tanyq198617 opened 10 months ago

tanyq198617 commented 10 months ago

https://github.com/Tencent/InjectFix/issues/381

https://github.com/Tencent/InjectFix/issues/343

tanyq198617 commented 10 months ago

我用的是unity 2019 4.40的版本,通过上面那两个连接方式处理完后,还是没能成功,还是同样的错误,我看我自动化打包化打包的日志的时间记录也是正常注入了,但一出完包,装上手机就报没注入,实在没招了,我把日志也贴出来,麻烦大伙帮忙瞅一眼。 custom_build.log unity_build.log

tanyq198617 commented 10 months ago

BuildPlayer begin_time==============>20240128120715 PlayerAssets.updateInfoURL=>https://lbq-sandbox-1253412057.cos.ap-beijing.myqcloud.com/Assets/Sandbox/iOS/202401262040/updateinfo.json PlayerAssets.downloadURL=>https://lbq-sandbox-1253412057.cos.ap-beijing.myqcloud.com/Assets/Product/iOS 执行到了 OnAssemblyCompilationFinished 编译完成: Library/ScriptAssemblies/Assembly-CSharp-firstpass.dll time=>20240128120955 执行到了 OnAssemblyCompilationFinished 编译完成: Library/ScriptAssemblies/Assembly-CSharp.dll time=>20240128121011 执行到了 OnAssemblyCompilationFinished 编译完成: Library/PlayerScriptAssemblies/Assembly-CSharp-firstpass.dll time=>20240128121126 编译完成: Library/PlayerScriptAssemblies/Assembly-CSharp-firstpass.dll time=>20240128121126 执行到了 OnAssemblyCompilationFinished 编译完成: Library/PlayerScriptAssemblies/Assembly-CSharp.dll time=>20240128121140 编译完成: Library/PlayerScriptAssemblies/Assembly-CSharp.dll time=>20240128121140 编译完成: allSuccess___True time====>20240128121140 OnPostBuildPlayerScriptDLLs调用注入开始,time=>20240128121148 report.steps.Length=>11 InjectAllAssemblys=>injecting...ScriptAssemblies/Assembly-CSharp IFixEditor_CallIFix==>Assembly-CSharp.dll process success IFixEditor_CallIFix_assemblyCharpDllInjectIFix==>True time=>20240128121155 InjectAllAssemblys=>injecting...ScriptAssemblies/Assembly-CSharp-firstpass IFixEditor_CallIFix==>Assembly-CSharp-firstpass.dll process success IFixEditor_CallIFix_firstPassDllInjectIFix==>True time=>20240128121157 InjectAllAssemblys=>injecting...PlayerScriptAssemblies/Assembly-CSharp IFixEditor_CallIFix==>Assembly-CSharp.dll process success IFixEditor_CallIFix_assemblyCharpDllInjectIFix==>True time=>20240128121203 InjectAllAssemblys=>injecting...PlayerScriptAssemblies/Assembly-CSharp-firstpass IFixEditor_CallIFix==>Assembly-CSharp-firstpass.dll process success IFixEditor_CallIFix_firstPassDllInjectIFix==>True time=>20240128121205 InjectAllAssemblys=>Done! OnPostBuildPlayerScriptDLLs调用注入结束,time=>20240128121205 BuildPlayer end_time==============>20240128121633 processing ProcessPlayerBuildStep.OnEnd CostTime==>-1628254 processing ProcessIOSPbxFileStep.OnStart startTime==>0.5134913 iOS XCode工程配置修改完成 SUCCESS! 我还打印了关键步骤的时间,看起来时序也没问题,也没有什么注入之后 ,又产生了重新编译的情况,实在想不通了,求救

ammariqais commented 7 months ago

Go to the Library folder and search for the file "Assembly-CSharp.dll." You will find more than one file. Remove all these files but keep the one in the ScriptAssemblies folder.

Innland commented 2 months ago

您好,注入失败的问题解决了吗,啥原因啊?我今天也遇到了这个问题