Failed to Copy File

Hello,

I am encountering the following error while building with IL2CPP in Unity:

IOException: Failed to Copy File / Directory from 'C:/Program Files/Unity/Hub/Editor/2023.1.0b20/Editor/Data/PlaybackEngines/WindowsStandaloneSupport/Variations/win64_player_nondevelopment_ıl2cpp/WindowsPlayer.exe' to 'Temp/StagingArea/WindowsPlayer.exe'.

I have tried the following solutions without success:

  • Deleted the Temp folder: Removed the Temp folder from the project directory.
  • Disabled Antivirus Software: Temporarily turned off my antivirus software.
  • Checked Disk Space: Ensured there is enough disk space available.
  • Updated Visual C++ Redistributable and IL2CPP: Installed the latest versions of Visual C++ Redistributable and IL2CPP.

Despite these efforts, the issue persists. Has anyone else experienced this issue or found a solution?

**System Information:

  • Operating System: Windows 11
  • RAM: 4 GB
  • Unity Version: 2023.1.0b20

Thank you for your help!

1 Like

Have you tried delete library?

I tried but it didn’t work

I can see that you use 2023 unity version which is Unity 6. I suggest update to lastest version. For me a good version without bug on 6000.0.5f1.

Before upgrade make sure delete library folder and csproj.