Vikas Bansal Vikas Bansal - 1 month ago 19
iOS Question

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

I am trying to build my project but it is not getting build.

I am getting the following error:


Command /usr/bin/ditto failed with exit code 1


enter image description here

I have cleaned my project but still is issue is persisting.

Xcode Details:

enter image description here

EDIT Solution tried

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

S.S S.S
Answer

clean your project and see whether it help or not

Command-Shift K

or

Product > Clean

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