Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

ExecutionEngineException: Attempting to JIT compile method

Discussion in 'iOS and tvOS' started by trunkz, Jul 13, 2015.

  1. trunkz

    trunkz

    Joined:
    Jul 18, 2014
    Posts:
    29
    Hi, sorry for bad english.
    I've create a plugin for IOS. With Unity 4.5 and xcode 6 it's work, but with unity 3.5 and xcode 4.5 i got this bug.
    ExecutionEngineException: Attempting to JIT compile method '(wrapper native-to-managed) EntagPartyHybridSDKScript:FuncOnGetWalletFinished (int,int)' while running with --aot-only.
    Here the code :

    [MonoPInvokeCallbackAttribute(typeof(FuncGetWalletTaskListener))]

    private static void FuncOnGetWalletFinished(bool isSuccess, int coin) {

    Debug.Log ("FuncOnGetWalletFinished("+isSuccess+", "+coin+")");

    if(getWalletFunc != null){

    getWalletFunc(isSuccess, coin);

    }

    }
    Thanks,



     
  2. trunkz

    trunkz

    Joined:
    Jul 18, 2014
    Posts:
    29
    Anybody help me !
     
  3. trunkz

    trunkz

    Joined:
    Jul 18, 2014
    Posts:
    29
  4. MatthewLeeFarmer

    MatthewLeeFarmer

    Joined:
    Jul 31, 2012
    Posts:
    14
    I can't remember when, but at some point, mono was updated, which has support for MonoPInvokeCallbackAttribute. This was not available in earlier verisions of mono which was available in 3.5 =(