iOS: ExecutionEngineException: Attempting to JIT compile method...

Options
Hi,
when I tried to connect to Photon on my iOS device I see this:

ExecutionEngineException: Attempting to JIT compile method 'ExitGames.Client.Photon.SupportClass/ThreadSafeRandom:Next ()' while running with --aot-only.

Why ?
And how I can fix this ?

Thanks

Comments

  • vadim
    Options
    Which PUN and Unity versions do you use?
    Did you try demos from PUN package?
    DemoBoxes works fine for me in Unity 5.4.0 with PUN 1.75
  • FreeS
    Options
    Unity 5.4.0p3, PUN 1.75
    But project was updated from unity 4.x and some older PUN version.

    I can't find any similar errors with PUN here or in google at all.
    So I understand that this problem is local for this project.
    But I can't imagine how and where, and why this happened.
  • FreeS
    Options
    Fixed by changing Api Compatibility Level to NET2.0 (without subset)
  • vadim
    Options
    PUN requires full NET2.0 Api Compatibility Level since one of the recent updates.
    With wrong level set, it failed for us during export (UnusedBytecodeStripper2.exe error). We tested it with il2cpp backend.
    Now, when you mentioned compatibility option, we can reproduce your case with backend set to Mono 2x.
    We were not aware of such behavior with Mono 2x.
    Thanks for report and solution.