Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

IL2CPP issues with Easy Save 2

Discussion in '5.6 Beta' started by Silverlode, Jan 1, 2017.

  1. Silverlode

    Silverlode

    Joined:
    Apr 9, 2013
    Posts:
    40
    Hi There,

    When I try to build for iOS with Unity 5.6.0b1 and 5.6.0b3, (on Windows 7)the build fails due to IL2CPP issues. (See below). I'm using the latest ES2 (2.7.1). I appreciate this could be an Easy Save 2 issue, but it maybe a IL2CPP issue too, so I figure its best to mention this here.

    Steps:

    New project, import ES2, add ES2 example scene: "Save and Load Prefabs" to the build, then attempted to build for iOS.

    ES2 works ok if

    I use Unity 5.5
    OR
    Select monox2 as the backend.

    I'm not technical enough to understand the changes to IL2CPP for 5.6, but it does get mentioned a lot in the change notes.

    The error I get:


    Code (CSharp):
    1. Failed running C:\Program Files\Unity\Editor\Data\Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe --api NET_2_0_Subset -out "C:\Users\Mark\Desktop\Angpad2 - Copy\Temp\StagingArea\Data\Managed\tempStrip" -l none -c link -b True -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\Core.xml" -f "C:\Program Files\Unity\Editor\Data\il2cpp\LinkerDescriptors" -x "C:\Users\Mark\Desktop\Angpad2 - Copy\Temp\StagingArea\Data\Managed\..\platform_native_link.xml" -x "C:\Users\Mark\Desktop\Angpad2 - Copy/Temp/StagingArea/Data/methods_pointedto_by_uievents.xml" -x "C:\Users\Mark\Desktop\Angpad2 - Copy\Temp\StagingArea\Data\preserved_derived_types.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\AI.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\Animation.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\Audio.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\Cloth.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\Core.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\CrashReporting.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\IMGUI.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\JSONSerialize.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\ParticlesLegacy.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\ParticleSystem.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\Physics.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\Physics2D.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\Terrain.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\TerrainPhysics.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\TextRendering.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\UI.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\UNET.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\UnityAds.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\UnityAnalytics.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\UnityConnect.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\UnityWebRequest.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\Vehicles.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\VR.xml" -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\Web.xml" -x "C:\Users\Mark\Desktop\Angpad2 - Copy\Assets\link.xml" -d "C:\Users\Mark\Desktop\Angpad2 - Copy\Temp\StagingArea\Data\Managed" -a  "C:\Users\Mark\Desktop\Angpad2 - Copy\Temp\StagingArea\Data\Managed\Assembly-CSharp-firstpass.dll" -a  "C:\Users\Mark\Desktop\Angpad2 - Copy\Temp\StagingArea\Data\Managed\Assembly-CSharp.dll" -a  "C:\Users\Mark\Desktop\Angpad2 - Copy\Temp\StagingArea\Data\Managed\Assembly-UnityScript.dll" -a  "C:\Users\Mark\Desktop\Angpad2 - Copy\Temp\StagingArea\Data\Managed\UnityEngine.UI.dll" -a  "C:\Users\Mark\Desktop\Angpad2 - Copy\Temp\StagingArea\Data\Managed\DOTween.dll" -a  "C:\Users\Mark\Desktop\Angpad2 - Copy\Temp\StagingArea\Data\Managed\ES2.dll"
    2.  
    3. stdout:
    4. SweepReport:
    5. Mono.Cecil.MethodDefinition => System.Void .ctor(System.String,MoodkieSecurity.AESBits,System.Byte[])System.String Encrypt(System.String)System.String Decrypt(System.String)System.String get_Password()System.Void set_Password(System.String)
    6. Mono.Cecil.FieldDefinition => System.String internalPostfixSystem.Int32 FirstPrimeSystem.Int32 SecondPrimeSystem.String TRIAL_DURATIONAdvertisingIdentifierCallback OnAdvertisingIdentifierCallback
    7. System.RuntimeType => Mono.Cecil.TypeDefinitionMono.Cecil.TypeDefinitionMono.Cecil.TypeDefinitionMono.Cecil.TypeDefinitionMono.Cecil.TypeDefinition
    8. Fatal error in Mono CIL Linker
    9. Mono.Cecil.ResolutionException: Failed to resolve UnityEngine.WWWAudioExtensions
    10.    at UnusedBytecodeStripper2.AddUnresolvedStubsStep.Process()
    11.    at Mono.Linker.Steps.BaseStep.Process(LinkContext context)
    12.    at Mono.Linker.Pipeline.Process(LinkContext context)
    13.    at Mono.Linker.Driver.RunDriver(Driver driver, IEqualityComparer`1 typeComparer, IEqualityComparer`1 methodComparer)
    14. stderr:
    15.  
    16. UnityEngine.Debug:LogError(Object)
    17. UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:96)
    18. UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:104)
    19. UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String[], String[], String, String, String&, String&, String, IIl2CppPlatformProvider, IEnumerable`1, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:97)
    20. UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(String, IEnumerable, String, String[], String[], String, IIl2CppPlatformProvider, RuntimeClassRegistry, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:196)
    21. UnityEditorInternal.AssemblyStripper:StripAssemblies(String, IIl2CppPlatformProvider, RuntimeClassRegistry, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:128)
    22. UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:118)
    23. UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:32)
    24. UnityEditor.HostView:OnGUI()
    25.  
     
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    4,772
    If, as you mentioned, the same project works with IL2Cpp in Unity 5.5, I would assume it's a software regression introduced in Unity 5.6 beta and submit a bug-report.

    Don't miss to post the bug-report Case number from the bug-report confirmation email here as well, this allows Unity to find your bug-report if they look at this forum post.
     
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    7,299
    This indeed looks like a bug in our code - this code path was definitely changed in 5.6. Can you fill a bug report with a repro project so we could fix it in a timely manner? We'll need a bug report to fix it, though.
     
  4. Silverlode

    Silverlode

    Joined:
    Apr 9, 2013
    Posts:
    40
    Thankyou. I have filed a bug report. Case: 866611.
     
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    7,299
unityunity