I downloaded Xcode 7 beta 5, and I tried to compile my project with Xcode 7, and it worked. So, after that, I used Xcode 7 to develop my application, but now, I want to back
The xctoolchain error can sometimes be caused by Xcode not finding the location of source files in a project that was moved or started by someone else who had a different project location in their own Finder.
If you're working on another project started by someone else such as a GitHub open source project, Xcode can mistake the location of the source files.
Xcode may think ViewController.swift is still in the project folder on the creator's desktop when it's actually on your own desktop. In this case some of your source files may be red because Xcode cannot find them.
Go to the Xcode Identity Inspector on the right side and in the Identity and Type section you'll see the Location pulldown.
Select a red missing file in the Project Navigator on the left.
Make sure the Identity Inspector pulldown is set to 'Relative To Group'.
Click the folder icon underneath to navigate to the real file location, select your file and click Choose. The Full Path will now reflect the correct location.
Clean and rebuild.