Search Unity

  1. Check out the Unite LA keynote for updates on the Visual Effect Editor, the FPS Sample, ECS, Unity for Film and more! Watch it now!
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Build Error with il2cpp backend

Discussion in 'Windows' started by Bagazi, Nov 5, 2018.

  1. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    47
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    3,413
    It looks like the link is broken. Can you paste the text from the error instead?
     
  3. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    47
  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    3,413
    This usually happens when there is some permission error with the directory of the Unity project. It looks like the Unity editor is unable to write to the Temp directory. Are there any odd permissions here or other tools that might be using this directory?
     
  5. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    47
    It seems the appointed path cannot be found according to the hint.... upload_2018-11-6_13-18-20.png Actually, I can not find the SymbolMap folder in my project... I created a new blank Project on my C Drive and run the Unity as admin,the same mistake happened
     
  6. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    3,413
    The SymbolMap file should be created by il2cpp.exe. Can you provide the Editor.log file when this happens? I'd like to see how il2cpp.exe is being called.
     
  7. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    47
    Asset 'KittyAnimController': Transition 'AnyState -> KittyLanding' in state 'AnyState' doesn't have an Exit Time or any condition, transition will be ignored
    UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
    UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:170)
    UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:94)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun(Boolean) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:180)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:174)

    [C:\buildslave\unity\build\Editor/Src/Animation/StateMachine.cpp line 1814]
    (Filename: C:/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs Line: 170)

    Asset 'KittyAnimController': Transition 'AnyState -> ThrowSomething' in state 'AnyState' doesn't have an Exit Time or any condition, transition will be ignored
    UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
    UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:170)
    UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:94)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun(Boolean) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:180)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:174)

    [C:\buildslave\unity\build\Editor/Src/Animation/StateMachine.cpp line 1814]
    (Filename: C:/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs Line: 170)

    Invoking UnityLinker with arguments: -out="C:\WorkSpace\GameTrail\Temp\StagingArea\Data\Managed\tempStrip" -x="C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\Core.xml" -x "C:\Users\ADMINI~1\AppData\Local\Temp\tmpa814d5e.tmp" -x "C:\Users\ADMINI~1\AppData\Local\Temp\tmp2c88aa4a.tmp" -x "C:\Users\ADMINI~1\AppData\Local\Temp\tmp322721a7.tmp" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\Accessibility.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\AI.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\Animation.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\AR.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\AssetBundle.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\Audio.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\Cloth.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\ClusterInput.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\ClusterRenderer.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\Core.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\CrashReporting.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\Director.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\GameCenter.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\Grid.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\ImageConversion.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\IMGUI.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\Input.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\JSONSerialize.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\Localization.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\ParticlesLegacy.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\ParticleSystem.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\PerformanceReporting.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\Physics.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\Physics2D.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\ScreenCapture.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\SharedInternals.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\SpriteMask.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\SpriteShape.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\Streaming.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\StyleSheets.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\Substance.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\Terrain.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\TerrainPhysics.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\TextRendering.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\Tilemap.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\UI.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\UIElements.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\UNET.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\UnityAnalytics.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\UnityConnect.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\UnityWebRequest.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\UnityWebRequestAssetBundle.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\UnityWebRequestAudio.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\UnityWebRequestTexture.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\UnityWebRequestWWW.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\Vehicles.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\Video.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\VR.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\Wind.xml" -x "C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\XR.xml" -d "C:\WorkSpace\GameTrail\Temp\StagingArea\Data\Managed" -a "C:\WorkSpace\GameTrail\Temp\StagingArea\Data\Managed\Assembly-CSharp-firstpass.dll" -a "C:\WorkSpace\GameTrail\Temp\StagingArea\Data\Managed\Assembly-CSharp.dll" -a "C:\WorkSpace\GameTrail\Temp\StagingArea\Data\Managed\UnityEngine.UI.dll" -a "C:\WorkSpace\GameTrail\Temp\StagingArea\Data\Managed\Reserved.dll" -a "C:\WorkSpace\GameTrail\Temp\StagingArea\Data\Managed\UnityEngine.Analytics.dll" -a "C:\WorkSpace\GameTrail\Temp\StagingArea\Data\Managed\ProBuilderCore.dll" --dotnetruntime=il2cpp --dotnetprofile=unityjit --use-editor-options
    C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\il2cpp/build/UnityLinker.exe exited after 4482 ms.
    Invoking il2cpp with arguments: --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityjit" --compile-cpp --libil2cpp-static --platform="WindowsDesktop" --architecture="x64" --configuration="Release" --outputpath="C:\WorkSpace\GameTrail\Temp/StagingArea/Data\Native\GameAssembly.dll" --cachedirectory="C:\WorkSpace\GameTrail\Assets\..\Library/il2cpp_cache" --map-file-parser="C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --assembly="C:\WorkSpace\GameTrail\Temp\StagingArea\Data\Managed\Assembly-CSharp-firstpass.dll" --assembly="C:\WorkSpace\GameTrail\Temp\StagingArea\Data\Managed\Assembly-CSharp.dll" --assembly="C:\WorkSpace\GameTrail\Temp\StagingArea\Data\Managed\UnityEngine.UI.dll" --assembly="C:\WorkSpace\GameTrail\Temp\StagingArea\Data\Managed\Reserved.dll" --assembly="C:\WorkSpace\GameTrail\Temp\StagingArea\Data\Managed\UnityEngine.Analytics.dll" --assembly="C:\WorkSpace\GameTrail\Temp\StagingArea\Data\Managed\ProBuilderCore.dll" --assembly="C:\WorkSpace\GameTrail\Temp\StagingArea\Data\Managed\UnityEngine.dll" --generatedcppdir="C:\WorkSpace\GameTrail\Temp\StagingArea\Data\il2cppOutput"
    C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\Data\il2cpp/build/il2cpp.exe exited after 47044 ms.
    IOException: Failed to Move File / Directory from 'Temp/StagingArea/Data\Native\Data\SymbolMap' to 'Temp/StagingArea\SymbolMap'.
    at UnityEditor.FileUtil.MoveFileOrDirectory (System.String source, System.String dest) [0x0003f] in C:\buildslave\unity\build\Editor\Mono\FileUtil.bindings.cs:76
    at DesktopStandalonePostProcessor.ProcessIl2CppOutputForBinary (UnityEditor.Modules.BuildPostProcessArgs args) [0x000aa] in C:\buildslave\unity\build\Editor\Mono\BuildPipeline\DesktopStandalonePostProcessor.cs:271
    at DesktopStandalonePostProcessor.SetupStagingArea (UnityEditor.Modules.BuildPostProcessArgs args, System.Collections.Generic.HashSet`1[T] filesToNotOverwrite) [0x00147] in C:\buildslave\unity\build\Editor\Mono\BuildPipeline\DesktopStandalonePostProcessor.cs:246
    at DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) [0x00017] in C:\buildslave\unity\build\Editor\Mono\BuildPipeline\DesktopStandalonePostProcessor.cs:41
    UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
    UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:170)
    UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:94)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun(Boolean) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:180)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:174)

    (Filename: C:/buildslave/unity/build/Editor/Mono/FileUtil.bindings.cs Line: 76)

    Unloading 253 Unused Serialized files (Serialized files now loaded: 0)
    System memory in use before: 200.6 MB.
    System memory in use after: 194.8 MB.

    Unloading 2794 unused Assets to reduce memory usage. Loaded Objects now: 4015.
    Total: 57.137097 ms (FindLiveObjects: 1.628100 ms CreateObjectMapping: 0.330240 ms MarkObjects: 41.966405 ms DeleteObjects: 13.210538 ms)

    Load scene 'Temp/__Backupscenes/0.backup' time: 1.502165 ms
    Unloading 8 Unused Serialized files (Serialized files now loaded: 0)
    System memory in use before: 170.7 MB.
    System memory in use after: 170.9 MB.

    Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 4443.
    Total: 44.961222 ms (FindLiveObjects: 1.423795 ms CreateObjectMapping: 0.165346 ms MarkObjects: 43.354413 ms DeleteObjects: 0.016308 ms)


    *** Cancelled 'Build.Player.WindowsStandaloneSupport' in 299 seconds (298681 ms)

    Build completed with a result of 'Failed'
    UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    UnityEngine.Logger:Log(LogType, Object)
    UnityEngine.Debug:LogError(Object)
    UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:186)
    UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:94)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun(Boolean) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:180)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:174)

    (Filename: C:/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs Line: 186)

    UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x0021f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:187
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:94
    UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    UnityEngine.Logger:Log(LogType, Object)
    UnityEngine.Debug:LogError(Object)
    UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:99)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun(Boolean) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:180)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:174)

    (Filename: C:/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs Line: 99)

    - Starting compile Library/ScriptAssemblies/Unity.ProGrids.dll
    - Starting compile Library/ScriptAssemblies/Unity.PackageManagerUI.Editor.dll
    - Starting compile Library/ScriptAssemblies/UnityEditor.StandardEvents.dll
    - Starting compile Library/ScriptAssemblies/Unity.ProBuilder.AddOns.Editor.dll
    - Finished compile Library/ScriptAssemblies/Unity.ProGrids.dll
    Symbols will be read from Temp\Unity.ProGrids.dll.mdb
    Script Module: Unity.ProGrids.dll
    Pass: 0 took 32 milliseconds
    Pass: 1 took 0 milliseconds
    - Starting compile Library/ScriptAssemblies/Unity.ProGrids.Editor.dll
    - Finished compile Library/ScriptAssemblies/UnityEditor.StandardEvents.dll
    - Finished compile Library/ScriptAssemblies/Unity.ProBuilder.AddOns.Editor.dll
    - Finished compile Library/ScriptAssemblies/Unity.PackageManagerUI.Editor.dll
    Refresh: detecting if any assets need to be imported or removed ...
    Refresh: elapses 0.882686 seconds
    Refreshing native plugins compatible for Editor in 5.42 ms, found 9 plugins.
    Preloading 2 native plugins for Editor in 1.64 ms.

    ----- Total AssetImport time: 0.939554s, AssetImport time: 0.000000s, Asset hashing: 0.000000s [0 B, 0.000000 mb/s]

    Refresh completed in 1.076793 seconds.
    - Finished compile Library/ScriptAssemblies/Unity.ProGrids.Editor.dll
    - Starting compile Library/ScriptAssemblies/Assembly-CSharp-firstpass.dll
     
  8. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    3,413
    This is rather odd. The command line for il2cpp.exe looks correct. If the file at Temp/StagingArea/Data\Native\Data\SymbolMap was not written, there should be another error, but the log seems to suggest that it was written, but then someone deleted.

    Have you successful built a player with IL2CPP on any version of Unity on this computer?
     
  9. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    47
    Not yet... I am going to build one on Unity 2019
     
  10. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    47
    Boring.... upload_2018-11-7_20-47-42.png

    Similar mistake on Unity 2019
     
  11. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    47
    0a7\Editor\Data\PlaybackEngines\windowsstandalonesupport\Whitelists\XR.xml" -d "C:\1\Pro\Temp\StagingArea\Data\Managed" --dotnetruntime=il2cpp --dotnetprofile=unityaot --use-editor-options --rule-set=Conservative
    C:\Program Files\Unity\Hub\Editor\2019.1.0a7\Editor\Data\il2cpp\build/UnityLinker.exe exited after 4325 ms.
    Invoking il2cpp with arguments: --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="WindowsDesktop" --architecture="x64" --configuration="Release" --outputpath="C:\1\Pro\Temp/StagingArea/Data\Native\GameAssembly.dll" --cachedirectory="C:\1\Pro\Assets\..\Library/il2cpp_cache" --map-file-parser="C:\Program Files\Unity\Hub\Editor\2019.1.0a7\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --directory="C:\1\Pro\Temp\StagingArea\Data\Managed" --generatedcppdir="C:\1\Pro\Temp\StagingArea\Data\il2cppOutput"
    C:\Program Files\Unity\Hub\Editor\2019.1.0a7\Editor\Data\il2cpp/build/il2cpp.exe exited after 20572 ms.
    IOException: Failed to Move File / Directory from 'Temp/StagingArea/Data\Native\Data' to 'Temp/StagingArea/Data\il2cpp_data'.
    at UnityEditor.FileUtil.MoveFileOrDirectory (System.String source, System.String dest) [0x0003f] in C:\buildslave\unity\build\Editor\Mono\FileUtil.bindings.cs:77
    at DesktopStandalonePostProcessor.ProcessIl2CppOutputForBinary (UnityEditor.Modules.BuildPostProcessArgs args) [0x0008a] in C:\buildslave\unity\build\Editor\Mono\BuildPipeline\DesktopStandalonePostProcessor.cs:276
    at DesktopStandalonePostProcessor.SetupStagingArea (UnityEditor.Modules.BuildPostProcessArgs args, System.Collections.Generic.HashSet`1[T] filesToNotOverwrite) [0x00147] in C:\buildslave\unity\build\Editor\Mono\BuildPipeline\DesktopStandalonePostProcessor.cs:253
    at DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) [0x00017] in C:\buildslave\unity\build\Editor\Mono\BuildPipeline\DesktopStandalonePostProcessor.cs:46
    UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck()


    Looks like IOException error....
     
  12. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    5,689
  13. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    47
  14. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    47
    upload_2018-11-8_22-28-49.png

    This is my wpr setting
     
  15. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    5,689
    yeah. Just upload it somewhere (dropbox, google drive, etc) and send me a private message with a link to it.
     
  16. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    5,689
    Thanks. I've got the Trace. Looks like IL2CPP crashes in function called "Unity.IL2CPP.Building.CppProgramBuilder::ThrowIfCannotBuildInCurrentEnvironment". This usually means you don't have Visual Studio with C++ support installed on your machine. The fix would be to run Unity installer again and make sure Visual Studio checkbox is checked in the installer.

    However, I have no idea why Unity doesn't detect this and print a reasonable error message. Do you have any software that might interfere crashes on machine? One particular outlier I see in the trace is "QQPCTray.exe", which becomes active when IL2CPP crashes. Could it be intercepting IL2CPP errors?
     
  17. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    47
    QQTray

    Thank you very much. Cause I used the vs 2015 instead of vs2017 (cause I get a Unity attaching problem when I used Vs2017 ,that is very slow and sometimes like no response... ). Is there some fix for it,like install some component? upload_2018-11-9_9-57-44.png


    The QQPCTray is supposed to be a tecent program for anti-virus.. I am not sure there is any information in common of this topic...
    https://answers.unity.com/questions/1482506/build-error-moving-tempstagingareadata-to-tempstag.html
     

    Attached Files:

  18. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    5,689
    VS2015 works, but you need to make sure C++ components are installed. Looks like they're not on your machine.
     
  19. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    47
    Oh,Thanks... But how can I check out whether the C++ components are installed? Or is it with a specific name so I can check it on my program list . Thanks very much
     
  20. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    47
    upload_2018-11-9_12-4-28.png

    Is this component?
     
  21. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    5,689
    Nope. Right click on "Microsoft Visual Studio Professional 2015" and click Modify. It will be called something like "Common Tools for C++".
     
  22. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    47

    It works! Thanks very much!