I\'m using Xcode 7.3 but my project is in Swift 2.1. I don\'t want to update my codes right now. So how can I choose or download older version of Swift compiler? Many thanks
If you're following the answers involving a .xctoolchain combined with Xcode 9 beta you'll encounter an error similar to this:
The reason is that Apple has added a new feature/argument, which hasn't made its way to open source Swift yet. You can get around this issue by launching Xcode from the command line with the feature disabled like this:
/path/to/Xcode-beta.app/Contents/MacOS/Xcode -IDEIndexEnableBoltIndex NO
Thanks to the Swift team