Search Unity

IL2CPP build error

Discussion in 'iOS and tvOS' started by xmanreturn, Jul 29, 2017.

  1. xmanreturn

    xmanreturn

    Joined:
    Mar 11, 2015
    Posts:
    14
    Hi, I am using unity 5.6.2f1 on mac, trying to build a project, the project was created in windows unity of same version.

    The project could not build for iOS platform, however, the game can run in play mode, and building is successful for Windows desktop and Android.

    The error says "IL2CPP error for type 'UnityEngine.Object' in UnityEngineObjectBindings.gen.cs:52
    Additional information: Attempting to constrain a value of type 'System.Boolean
    modreq(System.Runtime.CompilerServices.IsVolatile)' to type 'System.Boolean'
    "
    and two other error messages, please see the detailed message in the attachment;

    Great thanks for any solution, thanks!!
     

    Attached Files:

  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,936
    @xmanreturn

    This looks like a bug on the Unity side. Can you submit a bug report and include this project? We would like to correct this.
     
  3. xmanreturn

    xmanreturn

    Joined:
    Mar 11, 2015
    Posts:
    14
    Hi, I've done that,and I've got feed back already, it's a "volatile" keyword causing the problem, and it will be fixed in later version.

    Thanks!
     
    JoshPeterson likes this.