- Home /
Xcode: Build and Archive error "No such file or directory"
When I try to use "Build and Archive" in Xcode to build an ad-hoc distribution of my game, I get an alert with the error message:
The operation couldnt be completed. No such file or directory
Unfortunately it doesn't say what file or directory is missing.
Just building the game does not cause any problems, nor does "Build and Debug". How do I fix this?
I'm using Unity iPhone 1.7 and Xcode 3.2.2.
I just upgraded to Xcode 3.2.3 and still get the same problem.
It happens even with a completely empty Unity project.
Answer by malcolmryan · Jul 15, 2010 at 01:35 AM
Petey on the forum provided the answer:
Open your Xcode project Select Unity-iPhone in targets (Double click so it opens the info) find "Generate Debug Symbols" and check it on. (Just Search for it in the search field)
This worked for me, but I still don't understand why it is necessary.
The build and archive operation needs the debug symbols to generate the .dSY$$anonymous$$ file. Without the debug information you would not be able to symbolize a crash report as the dSY$$anonymous$$ file would not have been able to be created. $$anonymous$$ost of the time you will select the 'strip debug symbols on copy'. This will remove all the debug symbols in the distribution package.
Thanks! This helped me perfectly with this exact same issue.
Answer by TroyTegeder · Aug 07, 2010 at 09:12 AM
Petey and malcolmryan - thank you, Thank you, THANK YOU! Worked perfectly for me, after hours of frustration spent before finding your solution.
Answer by bernardfrancois · Jan 17, 2012 at 09:35 AM
Please note that there was an issue on Apple's side yesterday (January 16). It seems like some of the certificates that were created that day needed to be recreated. That's what we did today, and everything is working fine again now. Also see the corresponding page on Stackoverflow.
Your answer
Follow this Question
Related Questions
iPhone Build Errors 5 Answers
xCode Errors 1 Answer
CFBundleExecutable of (null) error on Xcode build 2 Answers
Building for iPad 1 Answer