When building with il2cpp, there is an error that occurs when the number of scenes is large.
When the number of scenes reaches 800, the build succeeds.
If you increase the number of scenes by a certain number here, the above error occurs and the build does not work!
Any help would be greatly appreciated !!
Can you submit a bug report for this issue and include the project?
The project that creates the bug situation is too large to contain a lot of scenes, and unfortunately it can't be sent.
But I found out the cause of the problem.
It seems to be a problem of '$$anonymous$$axJsonLength'.
When extracting apk with il2cpp, if there are many scenes or resources or the file name is long, it is not extracted due to 'maxjsonlength'.
If the path and file name of the scene required for simply building becomes longer, the amount of the scene that can extract apk with il2cpp is significantly reduced.
I've tried in many ways for this, but can't solve it.
We just have to wait for Unity developers to patch it.
Answer by koyongsung · Apr 09, 2020 at 07:19 PM
The project that creates the bug situation is too large to contain a lot of scenes, and unfortunately it can't be sent.
But I found out the cause of the problem.
It seems to be a problem of 'MaxJsonLength'.
When extracting apk with il2cpp, if there are many scenes or resources or the file name is long, it is not extracted due to 'maxjsonlength'.
If the path and file name of the scene required for simply building becomes longer, the amount of the scene that can extract apk with il2cpp is significantly reduced.
I've tried in many ways for this, but can't solve it.
We just have to wait for Unity developers to patch it.
Answer by nih_ · May 07, 2020 at 02:29 PM
The issue has been acknowledged on the issue tracker here:
https://issuetracker.unity3d.com/issues/cil-linker-fails-when-there-are-many-scenes-in-build
Your answer
Follow this Question
Related Questions
icl2pp not building correctly for android.,IL2cpp not building correctly for android. Mono worked. 1 Answer
Android app dosen't load scenes from obb on install, until device restart 0 Answers
Failed running il2cpp.exe --platform="Android" --architecture="x86" 1 Answer
Unity 5.4 Android OBB - Blank scene being loaded with Camera over-draw 1 Answer