Technical Q&A QA1711

Operation could not be completed. No such file or directory

Q:  Xcode displays an "Operation could not be completed. No such file or directory" error message when I try to archive my application. How do I resolve this error?

A: When you run the Build and Archive command, Xcode 3.2.2 or later fetches your application binary and its associated .dSYM file and saves them in your home folder. The .dSYM, which contains symbol information that are useful for debugging and symbolizing crash reports, is created by setting the "Debug Information Format" build setting to DWARF with dSYM File and enabling the "Generate Debug Symbols" build setting in Xcode. You are getting the "Operation could not be completed. No such file or directory" error message because Xcode cannot find the .dSYM associated with your application. You may have set "Debug Information Format" to Stabs or DWARF or unwittingly unchecked "Generate Debug Symbols" in your project. As a result, Xcode did not create the .dSYM, which is one of the requirements for archiving your application.

Be sure to set "Debug Information Format" to DWARF with dSYM File and turn on "Generate Debug Symbols" in the Build pane of your Target as respectively shown in Figure 1 and Figure 2 to resolve this issue.

Figure 1  Debug Information Format set to DWARF with dSYM File in the Build pane of your Target.
Figure 2  Generate Debug Symbols turned on in the Build pane of your Target.


Document Revision History


DateNotes
2010-08-31

New document that describes how to resolve the "Operation could not be completed. No such file or directory" message in Xcode.