Can't convert to Swift 2

I spent 4 hours last night attempting to solve these two errors that I get when trying to convert my swift 1.2 project to swift 2. I have tried a variety of answers that I came across while googeling involving duplicate certificates, bitcode settings, compiler optimization level's etc. I'm still having no luck converting my project. Any help would be much appreciated.


Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1

ditto: can't get real path for source '/Users/tracepomplun/Library/Developer/Xcode/DerivedData/joann-abcfteuqtvsfmjbkykjrgrttcxsq/Build/Intermediates/SwiftMigration/joann/Intermediates/joann.build/Debug-iphonesimulator/joann.build/Objects-normal/i386/joann-Swift.h'

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

Did you try Clean, Clean Build Folder, and deleting the project's derived data?

I appreciate the response but Yea, tried that. no dice

I had a similar problem and found a solution:

Open Console (not terminal) and choose All Messages. Then try to build you xCode project and when it fails take a look in the list there with any message that could be related to xCode.


I found a message like this:

01/10/15 10.24.17,808 Xcode[53145]: DVTAssertions: Warning in

/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-8228/IDEFoundation/Playgrounds/IDEPlaygroundAuxiliarySourceCompilerOperation.m:311

Details: Unable to read diagnostics from file

"/Users/username/Library/Developer/Xcode/DerivedData/OurProject-diexylwajzhwgtfqdwiphjgzdwcy/Build/Intermediates/OurProject.build/Debug-iphoneos/OurProject.build/Objects-normal/armv7/CheckoutUserDataAdapter.dia"

(Invalid File): Invalid diagnostics signature Function: void

XCGenerateDiagnosticsFromFile(NSString *__strong, NSString *__strong,

NSDictionary *__strong, NSDictionary *__strong,

IDEActivityLogSectionRecorder *__strong, BOOL

(^__strong)(IDEActivityLogMessage *__strong)) Thread: <NSThread:

0x7f9cd32dbfc0>{number = 250, name = (null)} Please file a bug at

http://bugreport.apple.com with this warning message and any useful

information you can provide.


This gave us info that the error was in CheckoutUserDataAdapter.swift.

After trial and error we found that the problem was it was calling a method from its super class that it overrides from its super class. Somehow it could not find the correct method. <br/>We fixed it by adding super.methodCall() in CheckoutUserDataAdapter.swift - but that of cause should not be needed. I have filed a bug report.

Can't convert to Swift 2
 
 
Q