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

4.8k views Asked by At

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. :)

5

There are 5 answers

0
Igor Palaguta On

I had this issue, when I accidentally removed some swift file from disk.

1
Michael Wilson On

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.

1
Edward Potter On

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

0
Kouder On

Do a "Super Clean"

  1. Clear derived data folder Xcode, Preferences, Locations, Click First Arrow

  2. Clean build folder Command + Alt + Shift + K

  3. Clean Project Command + Shift + K

Restart Xcode for good measure. MAGIC

0
Gopinath Manickam On

Just Clean and build the code, it will work fine. clean -> shift + command + K.