Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 6 GM - Build error when copying generated "MyAppName-Swift" header file?

Below is the error I'm getting when building my application. Does anyone have experience with this error?

ditto: can't get real path for source '/Users/MyUsername/Library/Developer/Xcode/DerivedData/MyAppName-fwxrneawhopjkqcpeoykduytrgwv/Build/Intermediates/MyAppName.build/Debug-iphoneos/MyAppName.build/Objects-normal/arm64/MyAppName-Swift.h'

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

Any help would be great!

If more info is needed, please ask. :)

like image 892
aleclarson Avatar asked Sep 11 '14 12:09

aleclarson


2 Answers

I had this problem too. I realized that by commenting out most of my swift code it would build properly. Gradually, line by line, I uncommented code until I found an error in my swift code that was masked by this error. Now the app builds just fine.

like image 43
Michael Wilson Avatar answered Nov 10 '22 03:11

Michael Wilson


Crazy right? Did the super clean, Command - Option - Shift. Cleared it up. Was stunned that it worked.

like image 111
Edward Potter Avatar answered Nov 10 '22 02:11

Edward Potter