I have an Xcode project which was downloaded from the internet so I don\'t know which Xcode version was used to write it but the language is Swift 2. I opened it in Xcode 7.
If you have this type of error in your project then follow these steps:
This will successfully resolve the error.