knah / Il2CppAssemblyUnhollower

A tool to generate Managed->IL2CPP proxy assemblies
GNU Lesser General Public License v3.0
503 stars 87 forks source link

未经处理的异常: System.ArgumentNullException: 值不能为 null。 #48

Closed zyc900329 closed 3 years ago

zyc900329 commented 3 years ago

C:\Users\Administrator\Downloads\Il2CppAssemblyUnhollower.0.4.15.1>AssemblyUnhollower --input=C:\Users\Administrator\Downloads\Il2CppDumper-v6.6.2\DummyDll --output=C:\Users\Administrator\Desktop\ttt111 --mscorlib=C:\Users\Administrator\Downloads\Il2CppDumper-v6.6.2\DummyDll\mscorlib.dll Reading assemblies... Done in 00:00:00.1612040 Reading system assemblies... Done in 00:00:00.0047727 Creating rewrite assemblies... Done in 00:00:00.0163156 Computing renames... Done in 00:00:00.0525007 Creating typedefs... Done in 00:00:00.0412334 Computing struct blittability... Done in 00:00:00.0077098 Filling typedefs... Done in 00:00:00.0090349 Filling generic constraints... Done in 00:00:00.0040606 Creating members... Done in 00:00:00.5208839 Scanning method cross-references... Done in 00:00:00.0053586 Finalizing method declarations... Done in 00:00:00.4741855 0 total potentially dead methods Filling method parameters... Done in 00:00:00.0639566 Creating static constructors... Done in 00:00:00.3964237 Creating value type fields... Done in 00:00:00.0964819 Creating enums... Done in 00:00:00.0510904 Creating IntPtr constructors... Done in 00:00:00.0514518 Creating type getters... Done in 00:00:00.0231261 Creating non-blittable struct constructors... Done in 00:00:00.0217440 Creating generic method static constructors... Done in 00:00:00.0091972 Creating field accessors... Done in 00:00:00.5083132 Filling methods... Done in 00:00:00.4963606 Generating implicit conversions...

未经处理的异常: System.ArgumentNullException: 值不能为 null。 参数名: type 在 Mono.Cecil.Mixin.CheckType(Object type) 在 Mono.Cecil.ModuleDefinition.ImportReference(TypeReference type, IGenericParameterProvider context) 在 AssemblyUnhollower.Passes.Pass60AddImplicitConversions.AddDelegateConversions(RewriteGlobalContext context) 在 AssemblyUnhollower.Passes.Pass60AddImplicitConversions.DoPass(RewriteGlobalContext context) 在 AssemblyUnhollower.Program.Main(UnhollowerOptions options) 在 AssemblyUnhollower.Program.Main(String[] args) Done in 00:01:31.9494710

请问这是什么原因引起的?

knah commented 3 years ago

First, please use English. Second, --mscorlib should point at mod loader mscorlib (or at the very least GAC mscrolib), not dummy dll mscorlib.

19245222 commented 1 year ago

what do you mean by mod loader mscorlib? can you explain it more explicitly? Is this the right path that --mscorlib should point at? image