Unity 5.2.1f1 IL2CPP iOS: missing header files

Hi,

when building our project for il2cpp iOS, the resulting XCode project does not compile.
il2CppAttributes.cpp tries to #include “MFMLibrary_MFMLibrary_(bla_bla_bla)_gen_35.h” through “…gen_40.h” which do not exist. There are such files for “…_gen_1.h” through “…gen_34.h” however.

MFMLibrary is an assembly we build externally (outside of Unity) and put in the Assets/Plugins folder.

We are able to build the same project (excluding the Unity 5 migration) successfully for Unity 4.6.8p1.

What might be cause of this problem? How could I approach finding a solution or at least a workaround?
I’m not sure whether it is a bug, but I reported it as 735369 to be safe.

Best,
Thomas

@Thomas_GF

Thanks for reporting this, it sounds like it is a bug in il2cpp.exe, as it should never generate C++ code that does not compile. We will investigate the bug report.

You might be able to work around the issue by commenting out the #include directives for the missing files in the generated code. I’m not sure if that will work though.

Hi JoshPeterson,

yes, removing those includes actually makes the project build successfully.
Thanks for the tip.

@Thomas_GF

Ok, I’m glad you have a work around. We will look at correcting this bug then.

I have this bug also in Unity 5.4.2f2 too with building IOS with IL2CPP, I have made a bug report for this (Case 845847)

@dev_runeofdark

Thanks, we will investigate this!