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

打包到客户端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 this issue Jan 28, 2024 · 3 comments

Comments

@tanyq198617
Copy link

tanyq198617 commented Jan 28, 2024

#381

#343

@tanyq198617
Copy link
Author

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

@tanyq198617
Copy link
Author

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
Copy link

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.

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

2 participants