Ran out of trampolines of type 0

前端 未结 2 769
渐次进展
渐次进展 2021-01-15 06:12

I\'m writing an app for the Iphone using Monotouch. When I deploy the application on my iphone I get the error at runtime Thu Mar 10 23:38:36 unknown UIKitApplication:com.xx

相关标签:
2条回答
  • 2021-01-15 06:38

    Type 0 are method trampolines. The parameter you want is

    -aot "ntrampolines=4048"
    

    From the mono man pages:

    ntrampolines=[number] When compiling in full aot mode, the method trampolines must be precreated in the AOT image. You can add additional method trampolines with this argument. Defaults to 1024.

    0 讨论(0)
  • 2021-01-15 06:42

    Alchemy already provided a good answer (upvote for that), I just want to sum up the different types and their default values.

    Mono trampolines:

    • type 0 (generic methods?): -aot "ntrampolines=xxxx" (default: 1024)
    • type 1 (recursive generics): -aot "nrgctx-trampolines=xxxx" (default: 1024)
    • type 2 (interfaces): -aot "nimt-trampolines=xxxx" (default: 128)

    source: http://www.kurokatta.org/grumble/2012/02/out-of-trampolines

    0 讨论(0)
提交回复
热议问题