Unity iPhone Build Error

Hi all,

I’ve just tried building my game to my iPhone and before it even attempts to open up Xcode I get the following error in the console:

IOException: Failed to Copy File / Directory from '/Applications/Unity iPhone/Unity iPhone.app/Contents/Frameworks/UnityEngine.dll' to 'Temp/BuildingPlayer/Data/UnityEngine.dll'.
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.String iPhoneBundleIdentifier, iPhoneBuildSettings buildSettings, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options)   (at /Users/build/builds/unity-iphone-1.5/iphone-1.1/Editor/Mono/PostprocessBuildPlayer.cs:588)

If anyone can shed any light on this, i’d be extremely grateful. I read a similar (but not quite the same) thread on the forum and someone’s solution was to recreate the project and copy the assets in and set it all up again. Since it’s a small game I did this and got the exact same error.

Thanks a lot

Mat

Hi, welcome to the forum!

Is it possible that you have moved the project folder while Unity is running? This can often cause problems. If so, it might be worth trying to move it back to the original location temporarily.