- Home /
Failed Builds. What is the cause?
I'm building a webplayer game and over the last month or so whenever I do a build around 70% of the time I get the following error: Error building Player: IOException: Failed to Copy File..bla.
Up until now I've just gotten around the problem by hitting build again and again until eventually it just works, but I'd like to know why this is happenening and how I can prevent it..
Why does it fail to copy the file?
Answer by CHPedersen · Apr 12, 2011 at 02:11 PM
I need a little more information, I'm afraid. :P Which file is it? One of the source files? A prefab? A texture? Etc.
Is the file open in some other program, preventing Unity from accessing it? Might there be an orphaned thread that didn't terminate properly during some previous run, that still has the file open?
Or perhaps the file was added to the project from a removable drive, that has since been ejected?
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
xcode build fail - Mach-o linker error 3 Answers
Can't use BuildFile.path. 0 Answers
Unity builds with hardcoded paths 0 Answers
How can I automatically add a file to Application DataPath on build? 1 Answer