Cocoa: command / usr / bin / ditto failed with exit code 1

I am trying to create my project, but it is not being created.

I get the following error:

The command / usr / bin / ditto failed with exit code 1

enter image description here

I cleaned my project, but the problem remains.

Xcode Details:

enter image description here

EDIT Solution tried

I went to ~/Library/Developer/Xcode/DerivedData and deleted everything inside the folder, and then went back to Xcode and tried to build the solution. Getting the same error back Command /usr/bin/ditto failed with exit code 1

+5
source share
4 answers

clean your project and see if it helps or not

Command-Shift K

or

Product> Cleaning

Or check this link, it can help you: http://codica.pl/2015/12/25/taming-swift-compiler-bugs/

+17
source

For Mac OS Sierra, this work for me:

cd / Users / YOUR_USER_NAME / Library / Developer / Xcode / DerivedData p>

then

xattr -dr com.apple.FinderInfo *

and then rebuild the project ..

and fix the error!

+3
source

Suddenly, this happens to my Mac app project today in Xcode 7.3.1.

What I did: Clear> Clear build folder> Close Xcode> Open Finder, then go to

~ / Library / Developer / Xcode / DerivedData p>

then deleted everything inside> Open Xcode> Build> Run

I think this happens when something is wrong, adding a file to Xcode. I did not encounter reading the myApp.help file without the option "Purpose: copy elements if necessary."

+2
source

Look at the error messages and find out which files are affected. Delete these files (remove the links), and then add them back to your project goal. Now it should work.

0
source

All Articles