Open teslabyte opened 3 years ago
If you see an error like Type 'X' is already defined
it's probably due to a naming conflict. Fix that naming conflict and it should work.
Having the same issue. The "Type 'X' is already defined" error appears for me, starting at the "Application types from method calls" segment of code. The specifics that appear are:
Error C:\path\cpp\appdata\il2cpp-types.h:2404: Type 'Object' is already defined
Error C:\path\cpp\appdata\il2cpp-types.h:2436: Type 'String' is already defined
Error C:\path\cpp\appdata\il2cpp-types.h:2440: Type 'Boolean' is already defined
Error C:\path\cpp\appdata\il2cpp-types.h:2528: Type 'Byte' is already defined
Error C:\path\cpp\appdata\il2cpp-types.h:2711: Type 'Object' is already defined
Error C:\path\cpp\appdata\il2cpp-types.h:2712: Syntax error near: }
Error C:\path\cpp\appdata\il2cpp-types.h:2725: Type 'Object' is already defined
Error C:\path\cpp\appdata\il2cpp-types.h:2727: Syntax error near: }
Error C:\path\cpp\appdata\il2cpp-types.h:2776: Type 'String' is already defined
Error C:\path\cpp\appdata\il2cpp-types.h:2777: Type 'String' is already defined
Error C:\path\cpp\appdata\il2cpp-types.h:2778: Type 'String' is already defined
Error C:\path\cpp\appdata\il2cpp-types.h:2781: Syntax error near: }
Error C:\path\cpp\appdata\il2cpp-types.h:2788: Type 'Object' is already defined
Error C:\path\cpp\appdata\il2cpp-types.h:2797: Syntax error near: }
Error C:\path\cpp\appdata\il2cpp-types.h:2804: Type 'Object' is already defined
Error C:\path\cpp\appdata\il2cpp-types.h:2814: Syntax error near: }
Error C:\path\cpp\appdata\il2cpp-types.h:2821: Type 'Object' is already defined
Error C:\path\cpp\appdata\il2cpp-types.h:2831: Syntax error near: }
Error C:\path\cpp\appdata\il2cpp-types.h:2847: Type 'String' is already defined
Error C:\path\cpp\appdata\il2cpp-types.h:2848: Type 'String' is already defined
After this, I have the same errors as teslabyte above, with none (or almost none, there's far too many errors for me to manually go through every one) of the functions having their types properly set. I'm not really sure where the naming conflict could come into play, especially since there are syntax errors and the such in here.
I used the command line version of Il2CppInspector, generated from source. I'm using IDA 7.5. The il2cpp and metadata file I'm working with can be found here, as well as the full console output of the script in a text file. (While I would love to just run the Il2CppInspector generated script for Ghidra, I don't have the ability to let a script run for 20+ days on my machine very easily.)
Using the latest GUI version of Il2cppInspector and IDA 7.0 (also tried 7.5 where the same thing happens). One part of IDA's output window (it's very long):
The metadata and il2cpp file can be downloaded here