We are developing our game with Unity 3D for iOS. I recently merged my code branch with another branch and started it using the Unity editor. It works well. But when I launched the application on the iPad, it worked with the message "Ran from type 2 trampolines in the folder /private/var/mobile/Applications//.app/Data/Managed/mscorlib.dll(128)". I found out that such an exception occurred when interfaces are heavily used ( Exit type 2 trampolines ). Indeed, our project contains too many interfaces, and each interface has many methods. A solution was also found - to increase the number of trampolines by typing an option like -aot "nimt-trampolines = 512". Can someone explain to me how the number "512" depends on the number of interfaces (possibly on the number of methods, etc.)? Thanks!
source share