Set multiple AOT Compilation Options to increase Trampoline values

Some time ago I got the following message when testing an Unity3D Apple iOS app:

Ran out of trampolines of type 2…

I followed the forum thread and fixed the problem by Player Settings → Other Settings → AOT Compilation Options to nimt-trampolines=2048. This worked a treat.

However, Months later and now after several development cycles, the following runtime error is now appearing:

Ran out of trampolines of type 0…

This means I also now need to increase the value of ntrampolines as well as nimt-trampolines. I tried to set both nimt-trampolines and ntrampolines in the Player Settings Other Settings → AOT Compilation Options input field to the following comma separated set of values:

nimt-trampolines=2048, ntrampolines=2048

But this produces a list of around 40 AOT cross compilation errors of the format:

Cross compilation job Apple.dll failed.
UnityEngine.UnityException: Failed AOT cross compiler: C:/Program Files/Unity53/Editor/Data/PlaybackEngines/iOSSupport\Tools/Win/mono-xcompiler.exe --aot=full,asmonly,nodebug,nimt-trampolines=2048, ntrampolines=2048,static,outfile=“Apple.dll.s” “Apple.dll” current dir : C:\Users\User\Documents\Unity5\GrammarAliveProGit3\Temp/StagingArea/Data/Managed
result file exists: False. Timed out: False

I would be grateful if someone can let me know if I am using the correct format in the AOT Compilation Options input field for specifying multiple options. The error message above seems to suggest the syntax is correct.

I need to set both trampoline values. I hope more than one AOT option can be specified using this player setting! Has anyone come across this issue?

Thanks in advance,
Errol.

I have mine the other way around, and no space after the comma.

Thanks. Removing the space did the trick!

1 Like