A Swift compiler error

I got this Command /var/folders/wg/jvw1wq6j3zn9qcpr5vdgct440000gn/T/AppTranslocation/30499FAD-FBAE-4C09-AA4F-92DFF03694F6/d/Xcode .app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1


I built two app which have the same name. Actually, I moved the older one from Desktop to Documents. And I add the Swift files and Cocoa files from the old app to the new app one by one. But the new one is in Desktop. Please help. Thanks.

New Updates:

Now all the files is in Desktop. I moved them just now. I 've also checked the path. But still got the error. But I got more infomation

<unknown>:0: error: filename "ViewController.swift" used twice: '/Users/joshuahiizhenhua/Desktop/Hobby School/Hobby School/ViewController.swift' and '/Users/joshuahiizhenhua/Documents/Hobby School/Hobby School/ViewController.swift'

<unknown>:0: note: filenames are used to distinguish private declarations with the same name

Command /var/folders/wg/jvw1wq6j3zn9qcpr5vdgct440000gn/T/AppTranslocation/30499FAD-FBAE-4C09-AA4F-92DFF03694F6/d/Xcode .app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1

Anyone please help ?

Did you try to do a clean build ?


If that doesn't work, I would do the following :

- delete one swift file in the second project

- recreate a file with the same name (with New File command)

- copy and paste from older project the content o the file


- Repeat to other files (I hope you have not tens of them) until message disappear.

Great ideas. Thank you. But my can't create files and Xcode created erSwift folder. Any suggestions?

More info: I have Xcode 7.3.1 and Xcode 8.3.3. The two Xcodes are in Applications not in Downloads.

A Swift compiler error
 
 
Q