After installing Xcode 7 Xcode 6.3 shows errors in conversion in Swift 2

After installing Xcode 7 to play with Swift 2 in playgrounds, I have a strange problem:

when I open an existing Xcode 6.3 project with Xcode 6.3 it throws a lot of errors about conversions in Swift 2.

This project was just cloned from the repository and hasn't been opened yet with Xcode 7.

So my guess is that the Xcode 7 installation messed up the installed Xcode 6.3 tools or something, but I have no idea how I could fix this.

I certainly don't want to open and update this large project in Xcode 7 at the moment, but I need to open it in Xcode 6.3 and Swift 1.2 to continue working on it.

+3


source to share


2 answers


Thanks to Leo's comment, I was able to clear the caches and received data and these errors went away.

But then Xcode refused to build the project of the included frameworks (SQLite.swift and SwiftHTTP) even after clearing everything and rebooting.



I had to delete them manually, clear the "build phase" and "target" fields where they appeared, and then use CocoaPods to reinstall them.

After that my app compiled correctly again in Xcode 6.3.

+1


source


  • Click on the product in the menu
  • Click "Clear"
  • Then try the reBuild project by clicking the play botton button.


it works for me

0


source







All Articles