Retired Document
Important: This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.
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.


Document Revision History
Date | Notes |
---|---|
2010-08-31 | New document that describes how to resolve the "Operation could not be completed. No such file or directory" message in Xcode. |
Copyright © 2010 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2010-08-31