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

5

12

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

Indefinable answered 11/9, 2014 at 12:14 Comment(2)
Here's a thread I made on Apple's developer forums about my problem.Indefinable
Check out #24063118Chop
C
11

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

Commutate answered 21/2, 2015 at 4:44 Comment(1)
Did for me too. I also had an error stating: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed". Both disappeared. This all happened to me when upgrading to Xcode 7.2.Oligoclase
N
2

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.

Novgorod answered 16/9, 2014 at 3:15 Comment(1)
I only had this problem with my Swift framework. Once I decided to just add the framework's source code to my project directly (rather than building it as a a framework) did it work properly. Quite strange.Indefinable
K
0

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

Kovrov answered 30/7, 2015 at 14:48 Comment(0)
E
0

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

Enure answered 12/9, 2016 at 9:40 Comment(0)
V
0

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

Valenti answered 15/2, 2018 at 2:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.