Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 430
Vikas Bansal Avatar asked Jul 25 '16 06:07

Vikas Bansal


2 Answers

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/

like image 82
Sangram Shivankar Avatar answered Sep 20 '22 13:09

Sangram Shivankar


For Mac OS Sierra, this work for me:

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

then

xattr -dr com.apple.FinderInfo *

and then rebuild your project..

and fix the error!

like image 25
AlbertoBay Avatar answered Sep 17 '22 13:09

AlbertoBay