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. Dismiss Notice

Unity 2019 -- Copying assembly failure

Discussion in 'Editor & General Support' started by bmarinariSparky, Apr 30, 2019.

  1. bmarinariSparky

    bmarinariSparky

    Joined:
    Jan 5, 2018
    Posts:
    10
    We are attempting to upgrade to Unity 2019 from 2018.3.11, and when we attempt to make standalone (Windows so far) builds, we get the error:
    Copying assembly from 'Temp/Unity.Timeline.dll' to 'Library/ScriptAssemblies/Unity.Timeline.dll' failed

    Sometimes it is a different dll. It seems to randomly succeed on maybe 1/20 attempts. Another engineer has tried to fix this, and he can see the "missing" file in the Temp folder, and then it gets deleted before the error is generated.

    There is a thread with this error in the 2019.1 beta forum, but I'm getting this on 2019.1.0f2.
     
  2. bmarinariSparky

    bmarinariSparky

    Joined:
    Jan 5, 2018
    Posts:
    10
    Once again I have discovered that the quickest way to solve your own problem is to ask for help. :)
    Noticed this in the editor log:
    [ScriptCompilation] Recompiling all scripts because: Recompiling all scripts before player build because Auto Refresh is disabled.


    Sure enough, turning Auto Refresh back on (which is HORRIBLE from a workflow point of view by the way), fixes the issue. It appears there is a race condition with the script compilation and the player build.