Hey all,
am using unity 3 b5 and have this error i cant solve when i build.
Error building Player: FileNotFoundException: Could not find file “/Users/christopher/Desktop/Go Go Samurai/Temp/StagingArea/iPhone-Trampoline/Unity-iPhone.xcodeproj/christopher.pbxuser”.
UnityEditor.HostView:OnGUI()
This is probably the result of absolute pathnames being used to locate assets (if the project folder has moved then the paths might be incorrect). You should be able to fix this by deleting the assets referred to in the error and adding them back into the project. Alternatively, just move the project folder back to its original location.
This problem is a known and logged bug in Unity but wasn’t detected in time for the 3.0 release. It is scheduled to be fixed in the next version.
my error is the same but I don’t know what asset this error is referring to
Error building Player: FileNotFoundException: Could not find file “/Users/glennjones/src/dev/matchPoint/Temp/StagingArea/iPhone-Trampoline/Unity-iPhone.xcodeproj/glennjones.pbxuser”.
UnityEditor.HostView:OnGUI()
That file is not on my machine, how and when is it created. I get this when tryinh to build a universal application.
Think its a problem with the project file, i created a new project, duplicated all the assets, and references all the scripts and textures, and it built normally. This is fine because its a small project, but for larger projects i don’t think this solution would be viable.
[EDIT] After creating the new project, i found that the temp folder in my older project directory had been deleted, so i opened the old project again and built it and it worked. Guess it just needed to recreate the temp folder?
Just wanted to add that I just got this error too.
Out of nowhere my project won’t build and keeps showing that error.
Re-imported all assets. No good.
Re-started Unity. No good.
Deleted temp file. No good.
Re-started computer. No good.
I’m re-creating the whole project right now. I’m not happy, and my boss is even less happy after I told him ‘Something went wrong and the whole project is f*cked and I don’t know how to fix it’.
Hmmm… ok, maybe instead of getting angry I should ask for help.
I have possibly accidentally flicked or switched or done something. Now when I build in Unity (just build, not build and run), Unity doesn’t open up Xcode like it used to.
I’ve re-created the project and I no longer get the error mentioned in the OP, but some xcode build scripts are not running now because Unity is not opening up the xcode project.
I am having this problem too and have not found a solution. I have not moved any assets or my projects folder. The only thing I did was set a texture to import at 2048 instead of 1024, then I put it back to 1024 when I saw this error. ???
The error happens when I use “build” or “build and play”.
After exporting all assets to a Unity Package, the original project now works again! I never even created the new project, in fact I accidentally “built and played” the old one and it worked.
This problem started happening in our project. I can append to an existing Xcode project, but whenever I try to build the project new for iOS, I get the error quoted by the original poster. Deleting the Temp folder and/or quitting Unity has no effect.
I even tried renaming user.pbxuser to danielbrauer.pbxuser during the build process (the generic file gets created near the beginning of the build, whereas the error moving the specific name happens near the end). This caused a different error:
Error building Player: IOException: Failed to Copy File / Directory from 'Temp/StagingArea/iPhone-Trampoline/Unity-iPhone.xcodeproj/project.pbxproj' to '/Users/danielbrauer/ [path to project] /Unity-iPhone.xcodeproj/project.pbxproj'.
I can’t fix this myself, because that file does exist. The use of absolute and relative paths might be related to the known problem that andeeee mentioned.
In my case it seemed the error occurred because I renamed my Unity parent project folder. I changed the name back to the original name, and it worked fine.
It seems Unity / xCode builds, doesn’t favor changing the name for the project parent folder(directory).